import { html } from '@skhemata/skhemata-base'; import { SkhemataCrowdfundingManagerSection } from './SkhemataCrowdfundingManagerSection'; export class SkhemataCrowdfundingManagerProfile extends SkhemataCrowdfundingManagerSection{ profileTypeId = this.campaign.profile_type_id; advancedView = this.settings['toggle_profile_type_view_advance']; constructor(){ super(); this.translations = { description: 'Do not worry if you cannot think of anything to say you can change your bio later on.' } } updateSettings(data) { if(data['profile_type_id']) { this.profileTypeId = data['profile_type_id']; } else { this.profileTypeId = this.campaign['profile_type_id']; } this.advancedView = data['toggle_profile_type_view_advance']; this.requestUpdate(); } render(){ const repeatedFields = [ { type: 'textbox', attributes: { name: "uri", label: 'Url', placeholder: "Url", required: "true" } }, { type: 'textbox', attributes: { name: "uri_text", placeholder: "Link Text", label: 'Text', required: "true" } } ]; let companyImageUrl = ''; if(this.campaign?.business_organizations) { if(this.campaign?.business_organizations[0]?.business_files) { companyImageUrl = this.api['base'] + '/image/campaign_profile/' + this.campaign?.business_organizations[0]?.business_files[0]?.path_external; } } return html` this.updateSettings(e.detail.data)} > Profile Settings Individual User Profile Business Organization Profile Show Both Individual User and Business Organization Profile on Campaign Only Show Business Organization Profile on Campaign Only Show Individual User Profile on Campaign Individual Profile Company Profile `; } }
Profile Settings
Individual Profile
Company Profile