From cc51a399eca2ca0c1a46ee9b3365f46dfd31750a Mon Sep 17 00:00:00 2001 From: sundaram Date: Tue, 13 Oct 2020 18:43:25 +0530 Subject: [PATCH 1/2] make CFS like adding org info wizard step 1 --- .../forms/wizard/sessions-speakers-step.js | 4 + .../forms/wizard/sessions-speakers-step.hbs | 131 ++++++++++-------- 2 files changed, 75 insertions(+), 60 deletions(-) diff --git a/app/components/forms/wizard/sessions-speakers-step.js b/app/components/forms/wizard/sessions-speakers-step.js index 8029f9efb03..80d2082cca3 100644 --- a/app/components/forms/wizard/sessions-speakers-step.js +++ b/app/components/forms/wizard/sessions-speakers-step.js @@ -126,6 +126,10 @@ export default Component.extend(EventWizardMixin, FormMixin, { return this.data.sessionTypes.filterBy('isDeleted', false); }), + hasCallForSpeaker: computed('data.speakersCall.announcement', function() { + return !!this.data.speakersCall.announcement; + }), + customForm: computed('data.customForms.[]', function() { const grouped = groupBy(this.data.customForms.toArray(), customForm => customForm.get('form')); diff --git a/app/templates/components/forms/wizard/sessions-speakers-step.hbs b/app/templates/components/forms/wizard/sessions-speakers-step.hbs index 8d6a816d3d7..4ce9655ba43 100644 --- a/app/templates/components/forms/wizard/sessions-speakers-step.hbs +++ b/app/templates/components/forms/wizard/sessions-speakers-step.hbs @@ -104,75 +104,86 @@
-

- -
- {{t 'Call for speakers'}} -
-

+
- - -
-
-
- - -
-
- - -
-
- - -
-
- - -
-
- - +
+ +
-
- -
- - - - - {{t 'Copy'}} - - -
- - {{t 'Share this link to get private submission independently of open/closed Call for Speakers at any time. (the link will be active once the event is saved)'}} - -
-
- + {{#if this.hasCallForSpeaker}} +

+ +
+ {{t 'Call for speakers'}} +
+

-
- {{widgets/forms/radio-button this.value name='privacy' id='privacy_public' value='public' checked=this.data.speakersCall.privacy}} - + + +
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
-
- {{widgets/forms/radio-button this.value name='privacy' id='privacy_private' value='private' checked=this.data.speakersCall.privacy}} - + +
+ + + + + {{t 'Copy'}} + +
+ + {{t 'Share this link to get private submission independently of open/closed Call for Speakers at any time. (the link will be active once the event is saved)'}} +
-
- +
+ +
+
+ {{widgets/forms/radio-button this.value name='privacy' id='privacy_public' value='public' checked=this.data.speakersCall.privacy}} + +
+
+
+
+ {{widgets/forms/radio-button this.value name='privacy' id='privacy_private' value='private' checked=this.data.speakersCall.privacy}} + +
+
+
+ {{/if}}

From 23ba7c6f7c8304c1d0133b6c5c2cd81833fadd75 Mon Sep 17 00:00:00 2001 From: sundaram Date: Wed, 14 Oct 2020 18:18:26 +0530 Subject: [PATCH 2/2] hiding cfs from side menu --- app/components/forms/wizard/sessions-speakers-step.js | 3 +++ .../components/forms/wizard/sessions-speakers-step.hbs | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/components/forms/wizard/sessions-speakers-step.js b/app/components/forms/wizard/sessions-speakers-step.js index 80d2082cca3..b43491ce569 100644 --- a/app/components/forms/wizard/sessions-speakers-step.js +++ b/app/components/forms/wizard/sessions-speakers-step.js @@ -194,6 +194,9 @@ export default Component.extend(EventWizardMixin, FormMixin, { isComplex : true })); }, + resetCFS() { + this.set('data.speakersCall.announcement', ''); + }, onChange() { this.onValid(() => {}); } diff --git a/app/templates/components/forms/wizard/sessions-speakers-step.hbs b/app/templates/components/forms/wizard/sessions-speakers-step.hbs index 4ce9655ba43..5c839b73c73 100644 --- a/app/templates/components/forms/wizard/sessions-speakers-step.hbs +++ b/app/templates/components/forms/wizard/sessions-speakers-step.hbs @@ -110,7 +110,9 @@ + @id="add_call_for_speaker" + {{action "resetCFS" on="change"}} + />