Skip to content

Commit bdaf843

Browse files
authored
feature-8832: Add option "Not sure yet" to attendee Form Yes/No quest… (#8852)
* feature-8832: Add option "Not sure yet" to attendee Form Yes/No questions * feature-8832: Add option "Not sure yet" to attendee Form Yes/No questions format code
1 parent 639f1b0 commit bdaf843

File tree

23 files changed

+120
-14
lines changed

23 files changed

+120
-14
lines changed

app/components/forms/orders/order-form.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { countries } from 'open-event-frontend/utils/dictionary/demography';
1616
import { years } from 'open-event-frontend/utils/dictionary/year-list';
1717
import { languageForms } from 'open-event-frontend/utils/dictionary/language-form';
1818
import { homeWikis } from 'open-event-frontend/utils/dictionary/home-wikis';
19+
import { booleanComplex } from 'open-event-frontend/utils/dictionary/boolean_complex';
1920
import { wikiScholarship } from 'open-event-frontend/utils/dictionary/wiki-scholarship';
2021

2122
export default Component.extend(FormMixin, {
@@ -682,6 +683,7 @@ export default Component.extend(FormMixin, {
682683
languageForms : orderBy(languageForms, 'name'),
683684
homeWikis : orderBy(homeWikis, 'item'),
684685
wikiScholarship : orderBy(wikiScholarship, 'position'),
686+
booleanComplex : orderBy(booleanComplex, 'position'),
685687

686688
currentLocale: computed('cookies.current_locale', function() {
687689
return this.cookies.read('current_locale');

app/templates/components/forms/orders/attendee-list.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
{{/if}}
7070
{{/if}}
7171
{{#if field.isComplex}}
72-
<span class="word-break">{{get holder.complexFieldValues field.fieldIdentifier}}</span>
72+
<span class="word-break">{{t (get holder.complexFieldValues field.fieldIdentifier)}}</span>
7373
{{/if}}
7474
</div>
7575
{{/if}}

app/templates/components/forms/orders/order-form.hbs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,14 @@
8686
@name={{if field.isRequired (concat field.fieldIdentifier "_required_" index) (concat field.fieldIdentifier "_" index)}} />
8787
{{/if}}
8888
{{#if (eq field.type 'boolean')}}
89+
{{#each this.booleanComplex as |item|}}
8990
<div class="ui radio checkbox mr-radio">
9091
<Widgets::Forms::RadioButton
9192
@name={{if field.isRequired (concat field.fieldIdentifier "_required_" index) (concat field.fieldIdentifier "_" index)}}
92-
@value={{true}} @checked={{mut (get holder field.identifierPath)}}/>
93-
<label for="yes_include">{{t 'Yes'}}</label>
94-
</div>
95-
<div class="ui radio checkbox mr-radio">
96-
<Widgets::Forms::RadioButton @name={{if field.isRequired (concat field.fieldIdentifier "_required_" index) (concat field.fieldIdentifier "_" index)}}
97-
@value={{false}} @checked={{mut (get holder field.identifierPath)}}/>
98-
<label for="no_include">{{t 'No'}}</label>
93+
@value={{item.name}} @checked={{mut (get holder field.identifierPath)}}/>
94+
<label for="yes_include">{{t item.name}}</label>
9995
</div>
96+
{{/each}}
10097
{{/if}}
10198
{{#if (or (is-input-field field.type) (eq field.type 'richtextlink'))}}
10299
{{#if (or field.isLongText (eq field.type 'richtextlink')) }}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { tn } from '../text';
2+
3+
export const booleanComplex = [
4+
{
5+
name : tn.t('Yes'),
6+
position : 1
7+
},
8+
{
9+
name : tn.t('No'),
10+
position : 2
11+
},
12+
{
13+
name : tn.t('Not sure yet'),
14+
position : 3
15+
}
16+
];

translations/bn.po

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7034,13 +7034,15 @@ msgstr ""
70347034
#: app/templates/components/modals/edit-user-modal.hbs:11:40
70357035
#: app/templates/components/modals/publish-unpublish-modal.hbs:31:4
70367036
#: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:3:4
7037+
#: app/utils/dictionary/boolean-complex.ts:5:15
70377038
msgid "Yes"
70387039
msgstr ""
70397040

70407041
#: app/templates/components/forms/orders/attendee-list.hbs:51:26
70417042
#: app/templates/components/modals/confirm-modal.hbs:32:75
70427043
#: app/templates/components/modals/edit-user-modal.hbs:10:40
70437044
#: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:5:4
7045+
#: app/utils/dictionary/boolean-complex.ts:9:15
70447046
msgid "No"
70457047
msgstr ""
70467048

@@ -11684,6 +11686,10 @@ msgstr "বন্ধুত্বপূর্ণ মহাকাশ নীতি"
1168411686
msgid "Consent form field"
1168511687
msgstr "সম্মতি ফর্ম ক্ষেত্র"
1168611688

11689+
#: app/utils/dictionary/boolean-complex.ts:13:15
11690+
msgid "Not sure yet"
11691+
msgstr "এখনো নিশ্চিত না"
11692+
1168711693
#: app/components/forms/orders/order-form.js:256:19
1168811694
msgid "Please enter your wiki scholarship."
1168911695
msgstr "আপনার উইকি বৃত্তি লিখুন."

translations/de.po

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7044,13 +7044,15 @@ msgstr "Ticket herunterladen"
70447044
#: app/templates/components/modals/edit-user-modal.hbs:11:40
70457045
#: app/templates/components/modals/publish-unpublish-modal.hbs:31:4
70467046
#: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:3:4
7047+
#: app/utils/dictionary/boolean-complex.ts:5:15
70477048
msgid "Yes"
70487049
msgstr "Ja"
70497050

70507051
#: app/templates/components/forms/orders/attendee-list.hbs:51:26
70517052
#: app/templates/components/modals/confirm-modal.hbs:32:75
70527053
#: app/templates/components/modals/edit-user-modal.hbs:10:40
70537054
#: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:5:4
7055+
#: app/utils/dictionary/boolean-complex.ts:9:15
70547056
msgid "No"
70557057
msgstr "Nein"
70567058

@@ -11699,6 +11701,10 @@ msgstr "Freundliche Weltraumpolitik"
1169911701
msgid "Consent form field"
1170011702
msgstr "Feld „Einwilligungsformular“."
1170111703

11704+
#: app/utils/dictionary/boolean-complex.ts:13:15
11705+
msgid "Not sure yet"
11706+
msgstr "Noch nicht sicher"
11707+
1170211708
#: app/components/forms/orders/order-form.js:256:19
1170311709
msgid "Please enter your wiki scholarship."
1170411710
msgstr "Bitte geben Sie Ihr Wiki-Stipendium ein."

translations/de_DIVEO.po

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7035,13 +7035,15 @@ msgstr ""
70357035
#: app/templates/components/modals/edit-user-modal.hbs:11:40
70367036
#: app/templates/components/modals/publish-unpublish-modal.hbs:31:4
70377037
#: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:3:4
7038+
#: app/utils/dictionary/boolean-complex.ts:5:15
70387039
msgid "Yes"
70397040
msgstr ""
70407041

70417042
#: app/templates/components/forms/orders/attendee-list.hbs:51:26
70427043
#: app/templates/components/modals/confirm-modal.hbs:32:75
70437044
#: app/templates/components/modals/edit-user-modal.hbs:10:40
70447045
#: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:5:4
7046+
#: app/utils/dictionary/boolean-complex.ts:9:15
70457047
msgid "No"
70467048
msgstr ""
70477049

@@ -11685,6 +11687,10 @@ msgstr ""
1168511687
msgid "Consent form field"
1168611688
msgstr ""
1168711689

11690+
#: app/utils/dictionary/boolean-complex.ts:13:15
11691+
msgid "Not sure yet"
11692+
msgstr ""
11693+
1168811694
#: app/components/forms/orders/order-form.js:256:19
1168911695
msgid "Please enter your wiki scholarship."
1169011696
msgstr ""

translations/en.po

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7040,13 +7040,15 @@ msgstr "Download Ticket"
70407040
#: app/templates/components/modals/edit-user-modal.hbs:11:40
70417041
#: app/templates/components/modals/publish-unpublish-modal.hbs:31:4
70427042
#: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:3:4
7043+
#: app/utils/dictionary/boolean-complex.ts:5:15
70437044
msgid "Yes"
70447045
msgstr "Yes"
70457046

70467047
#: app/templates/components/forms/orders/attendee-list.hbs:51:26
70477048
#: app/templates/components/modals/confirm-modal.hbs:32:75
70487049
#: app/templates/components/modals/edit-user-modal.hbs:10:40
70497050
#: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:5:4
7051+
#: app/utils/dictionary/boolean-complex.ts:9:15
70507052
msgid "No"
70517053
msgstr "No"
70527054

@@ -11694,6 +11696,10 @@ msgstr "Friendly Space Policy"
1169411696
msgid "Consent form field"
1169511697
msgstr "Consent form field"
1169611698

11699+
#: app/utils/dictionary/boolean-complex.ts:13:15
11700+
msgid "Not sure yet"
11701+
msgstr "Not sure yet"
11702+
1169711703
#: app/components/forms/orders/order-form.js:256:19
1169811704
msgid "Please enter your wiki scholarship."
1169911705
msgstr "Please enter your wiki scholarship."

translations/es.po

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12043,6 +12043,10 @@ msgstr "Política de espacios amigables"
1204312043
msgid "Consent form field"
1204412044
msgstr "campo del formulario de consentimiento"
1204512045

12046+
#: app/utils/dictionary/boolean-complex.ts:13:15
12047+
msgid "Not sure yet"
12048+
msgstr "No estoy seguro todavía"
12049+
1204612050
#: app/components/forms/orders/order-form.js:256:19
1204712051
msgid "Please enter your wiki scholarship."
1204812052
msgstr "Por favor ingrese su beca wiki."

translations/fr.po

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12331,6 +12331,10 @@ msgstr "Politique de l'Espace Convivial"
1233112331
msgid "Consent form field"
1233212332
msgstr "Champ du formulaire de consentement"
1233312333

12334+
#: app/utils/dictionary/boolean-complex.ts:13:15
12335+
msgid "Not sure yet"
12336+
msgstr "Pas encore sûr"
12337+
1233412338
#: app/components/forms/orders/order-form.js:256:19
1233512339
msgid "Please enter your wiki scholarship."
1233612340
msgstr "Veuillez entrer votre bourse wiki."

0 commit comments

Comments
 (0)