diff --git a/app/components/forms/orders/order-form.js b/app/components/forms/orders/order-form.js index a3b5c001565..09c0934d125 100644 --- a/app/components/forms/orders/order-form.js +++ b/app/components/forms/orders/order-form.js @@ -16,6 +16,7 @@ import { countries } from 'open-event-frontend/utils/dictionary/demography'; import { years } from 'open-event-frontend/utils/dictionary/year-list'; import { languageForms } from 'open-event-frontend/utils/dictionary/language-form'; import { homeWikis } from 'open-event-frontend/utils/dictionary/home-wikis'; +import { booleanComplex } from 'open-event-frontend/utils/dictionary/boolean_complex'; import { wikiScholarship } from 'open-event-frontend/utils/dictionary/wiki-scholarship'; export default Component.extend(FormMixin, { @@ -682,6 +683,7 @@ export default Component.extend(FormMixin, { languageForms : orderBy(languageForms, 'name'), homeWikis : orderBy(homeWikis, 'item'), wikiScholarship : orderBy(wikiScholarship, 'position'), + booleanComplex : orderBy(booleanComplex, 'position'), currentLocale: computed('cookies.current_locale', function() { return this.cookies.read('current_locale'); diff --git a/app/templates/components/forms/orders/attendee-list.hbs b/app/templates/components/forms/orders/attendee-list.hbs index b1a45c4a8e0..43ffcf77b1e 100644 --- a/app/templates/components/forms/orders/attendee-list.hbs +++ b/app/templates/components/forms/orders/attendee-list.hbs @@ -69,7 +69,7 @@ {{/if}} {{/if}} {{#if field.isComplex}} - {{get holder.complexFieldValues field.fieldIdentifier}} + {{t (get holder.complexFieldValues field.fieldIdentifier)}} {{/if}} {{/if}} diff --git a/app/templates/components/forms/orders/order-form.hbs b/app/templates/components/forms/orders/order-form.hbs index db8fd66f7d4..21f147d182c 100644 --- a/app/templates/components/forms/orders/order-form.hbs +++ b/app/templates/components/forms/orders/order-form.hbs @@ -86,17 +86,14 @@ @name={{if field.isRequired (concat field.fieldIdentifier "_required_" index) (concat field.fieldIdentifier "_" index)}} /> {{/if}} {{#if (eq field.type 'boolean')}} + {{#each this.booleanComplex as |item|}}
- -
-
- - + @value={{item.name}} @checked={{mut (get holder field.identifierPath)}}/> +
+ {{/each}} {{/if}} {{#if (or (is-input-field field.type) (eq field.type 'richtextlink'))}} {{#if (or field.isLongText (eq field.type 'richtextlink')) }} diff --git a/app/utils/dictionary/boolean_complex.ts b/app/utils/dictionary/boolean_complex.ts new file mode 100644 index 00000000000..5e3ef963b30 --- /dev/null +++ b/app/utils/dictionary/boolean_complex.ts @@ -0,0 +1,16 @@ +import { tn } from '../text'; + +export const booleanComplex = [ + { + name : tn.t('Yes'), + position : 1 + }, + { + name : tn.t('No'), + position : 2 + }, + { + name : tn.t('Not sure yet'), + position : 3 + } +]; diff --git a/translations/bn.po b/translations/bn.po index d261053fbed..eae7c24a98a 100644 --- a/translations/bn.po +++ b/translations/bn.po @@ -7034,6 +7034,7 @@ msgstr "" #: app/templates/components/modals/edit-user-modal.hbs:11:40 #: app/templates/components/modals/publish-unpublish-modal.hbs:31:4 #: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:3:4 +#: app/utils/dictionary/boolean-complex.ts:5:15 msgid "Yes" msgstr "" @@ -7041,6 +7042,7 @@ msgstr "" #: app/templates/components/modals/confirm-modal.hbs:32:75 #: app/templates/components/modals/edit-user-modal.hbs:10:40 #: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:5:4 +#: app/utils/dictionary/boolean-complex.ts:9:15 msgid "No" msgstr "" @@ -11684,6 +11686,10 @@ msgstr "বন্ধুত্বপূর্ণ মহাকাশ নীতি" msgid "Consent form field" msgstr "সম্মতি ফর্ম ক্ষেত্র" +#: app/utils/dictionary/boolean-complex.ts:13:15 +msgid "Not sure yet" +msgstr "এখনো নিশ্চিত না" + #: app/components/forms/orders/order-form.js:256:19 msgid "Please enter your wiki scholarship." msgstr "আপনার উইকি বৃত্তি লিখুন." diff --git a/translations/de.po b/translations/de.po index 65530317f84..43c9a0fbf80 100644 --- a/translations/de.po +++ b/translations/de.po @@ -7044,6 +7044,7 @@ msgstr "Ticket herunterladen" #: app/templates/components/modals/edit-user-modal.hbs:11:40 #: app/templates/components/modals/publish-unpublish-modal.hbs:31:4 #: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:3:4 +#: app/utils/dictionary/boolean-complex.ts:5:15 msgid "Yes" msgstr "Ja" @@ -7051,6 +7052,7 @@ msgstr "Ja" #: app/templates/components/modals/confirm-modal.hbs:32:75 #: app/templates/components/modals/edit-user-modal.hbs:10:40 #: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:5:4 +#: app/utils/dictionary/boolean-complex.ts:9:15 msgid "No" msgstr "Nein" @@ -11699,6 +11701,10 @@ msgstr "Freundliche Weltraumpolitik" msgid "Consent form field" msgstr "Feld „Einwilligungsformular“." +#: app/utils/dictionary/boolean-complex.ts:13:15 +msgid "Not sure yet" +msgstr "Noch nicht sicher" + #: app/components/forms/orders/order-form.js:256:19 msgid "Please enter your wiki scholarship." msgstr "Bitte geben Sie Ihr Wiki-Stipendium ein." diff --git a/translations/de_DIVEO.po b/translations/de_DIVEO.po index 6bb4ab4fc82..5812021690f 100644 --- a/translations/de_DIVEO.po +++ b/translations/de_DIVEO.po @@ -7035,6 +7035,7 @@ msgstr "" #: app/templates/components/modals/edit-user-modal.hbs:11:40 #: app/templates/components/modals/publish-unpublish-modal.hbs:31:4 #: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:3:4 +#: app/utils/dictionary/boolean-complex.ts:5:15 msgid "Yes" msgstr "" @@ -7042,6 +7043,7 @@ msgstr "" #: app/templates/components/modals/confirm-modal.hbs:32:75 #: app/templates/components/modals/edit-user-modal.hbs:10:40 #: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:5:4 +#: app/utils/dictionary/boolean-complex.ts:9:15 msgid "No" msgstr "" @@ -11685,6 +11687,10 @@ msgstr "" msgid "Consent form field" msgstr "" +#: app/utils/dictionary/boolean-complex.ts:13:15 +msgid "Not sure yet" +msgstr "" + #: app/components/forms/orders/order-form.js:256:19 msgid "Please enter your wiki scholarship." msgstr "" diff --git a/translations/en.po b/translations/en.po index 875d48f476e..66ee75d0e18 100644 --- a/translations/en.po +++ b/translations/en.po @@ -7040,6 +7040,7 @@ msgstr "Download Ticket" #: app/templates/components/modals/edit-user-modal.hbs:11:40 #: app/templates/components/modals/publish-unpublish-modal.hbs:31:4 #: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:3:4 +#: app/utils/dictionary/boolean-complex.ts:5:15 msgid "Yes" msgstr "Yes" @@ -7047,6 +7048,7 @@ msgstr "Yes" #: app/templates/components/modals/confirm-modal.hbs:32:75 #: app/templates/components/modals/edit-user-modal.hbs:10:40 #: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:5:4 +#: app/utils/dictionary/boolean-complex.ts:9:15 msgid "No" msgstr "No" @@ -11694,6 +11696,10 @@ msgstr "Friendly Space Policy" msgid "Consent form field" msgstr "Consent form field" +#: app/utils/dictionary/boolean-complex.ts:13:15 +msgid "Not sure yet" +msgstr "Not sure yet" + #: app/components/forms/orders/order-form.js:256:19 msgid "Please enter your wiki scholarship." msgstr "Please enter your wiki scholarship." diff --git a/translations/es.po b/translations/es.po index 9ad447d5c87..d42dc27a798 100644 --- a/translations/es.po +++ b/translations/es.po @@ -12043,6 +12043,10 @@ msgstr "Política de espacios amigables" msgid "Consent form field" msgstr "campo del formulario de consentimiento" +#: app/utils/dictionary/boolean-complex.ts:13:15 +msgid "Not sure yet" +msgstr "No estoy seguro todavía" + #: app/components/forms/orders/order-form.js:256:19 msgid "Please enter your wiki scholarship." msgstr "Por favor ingrese su beca wiki." diff --git a/translations/fr.po b/translations/fr.po index 51cb1bbd77c..a0156b455c4 100644 --- a/translations/fr.po +++ b/translations/fr.po @@ -12331,6 +12331,10 @@ msgstr "Politique de l'Espace Convivial" msgid "Consent form field" msgstr "Champ du formulaire de consentement" +#: app/utils/dictionary/boolean-complex.ts:13:15 +msgid "Not sure yet" +msgstr "Pas encore sûr" + #: app/components/forms/orders/order-form.js:256:19 msgid "Please enter your wiki scholarship." msgstr "Veuillez entrer votre bourse wiki." diff --git a/translations/hi.po b/translations/hi.po index 2294b3c9a58..a4ff78b1f30 100644 --- a/translations/hi.po +++ b/translations/hi.po @@ -7036,6 +7036,7 @@ msgstr "" #: app/templates/components/modals/edit-user-modal.hbs:11:40 #: app/templates/components/modals/publish-unpublish-modal.hbs:31:4 #: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:3:4 +#: app/utils/dictionary/boolean-complex.ts:5:15 msgid "Yes" msgstr "" @@ -7043,6 +7044,7 @@ msgstr "" #: app/templates/components/modals/confirm-modal.hbs:32:75 #: app/templates/components/modals/edit-user-modal.hbs:10:40 #: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:5:4 +#: app/utils/dictionary/boolean-complex.ts:9:15 msgid "No" msgstr "" @@ -11686,6 +11688,10 @@ msgstr "अनुकूल अंतरिक्ष नीति" msgid "Consent form field" msgstr "सहमति प्रपत्र फ़ील्ड" +#: app/utils/dictionary/boolean-complex.ts:13:15 +msgid "Not sure yet" +msgstr "अभी तक यकीन नहीं" + #: app/components/forms/orders/order-form.js:256:19 msgid "Please enter your wiki scholarship." msgstr "कृपया अपनी विकि छात्रवृत्ति दर्ज करें।" diff --git a/translations/id.po b/translations/id.po index e8a775f9b19..9718b90eadd 100644 --- a/translations/id.po +++ b/translations/id.po @@ -12003,6 +12003,10 @@ msgstr "Kebijakan Ruang Ramah" msgid "Consent form field" msgstr "Bidang formulir persetujuan" +#: app/utils/dictionary/boolean-complex.ts:13:15 +msgid "Not sure yet" +msgstr "Belum yakin" + #: app/components/forms/orders/order-form.js:256:19 msgid "Please enter your wiki scholarship." msgstr "Silakan masukkan beasiswa wiki Anda." diff --git a/translations/ja.po b/translations/ja.po index 28f8f84cfc1..fa26e538a63 100644 --- a/translations/ja.po +++ b/translations/ja.po @@ -11846,6 +11846,10 @@ msgstr "フレンドリースペースポリシー" msgid "Consent form field" msgstr "同意フォーム欄" +#: app/utils/dictionary/boolean-complex.ts:13:15 +msgid "Not sure yet" +msgstr "まだ分​​からない" + #: app/components/forms/orders/order-form.js:256:19 msgid "Please enter your wiki scholarship." msgstr "Wiki 奨学金を入力してください。" diff --git a/translations/ko.po b/translations/ko.po index 6fd20bbc09a..b706a1ad6a9 100644 --- a/translations/ko.po +++ b/translations/ko.po @@ -11812,6 +11812,10 @@ msgstr "친근한 공간정책" msgid "Consent form field" msgstr "동의 양식 필드" +#: app/utils/dictionary/boolean-complex.ts:13:15 +msgid "Not sure yet" +msgstr "아직 확실하지 않음" + #: app/components/forms/orders/order-form.js:256:19 msgid "Please enter your wiki scholarship." msgstr "위키 장학금을 입력하세요." diff --git a/translations/messages.pot b/translations/messages.pot index 71a222ed88e..478cab4fd37 100644 --- a/translations/messages.pot +++ b/translations/messages.pot @@ -7035,6 +7035,7 @@ msgstr "" #: app/templates/components/modals/edit-user-modal.hbs:11:40 #: app/templates/components/modals/publish-unpublish-modal.hbs:31:4 #: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:3:4 +#: app/utils/dictionary/boolean-complex.ts:5:15 msgid "Yes" msgstr "" @@ -7042,6 +7043,7 @@ msgstr "" #: app/templates/components/modals/confirm-modal.hbs:32:75 #: app/templates/components/modals/edit-user-modal.hbs:10:40 #: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:5:4 +#: app/utils/dictionary/boolean-complex.ts:9:15 msgid "No" msgstr "" @@ -11685,6 +11687,9 @@ msgstr "" msgid "Consent form field" msgstr "" +#: app/utils/dictionary/boolean-complex.ts:13:15 +msgid "Not sure yet" + #: app/components/forms/orders/order-form.js:256:19 msgid "Please enter your wiki scholarship." msgstr "" diff --git a/translations/nb_NO.po b/translations/nb_NO.po index d759fac1815..dc955c8b59f 100644 --- a/translations/nb_NO.po +++ b/translations/nb_NO.po @@ -7037,6 +7037,7 @@ msgstr "" #: app/templates/components/modals/edit-user-modal.hbs:11:40 #: app/templates/components/modals/publish-unpublish-modal.hbs:31:4 #: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:3:4 +#: app/utils/dictionary/boolean-complex.ts:5:15 msgid "Yes" msgstr "" @@ -7044,6 +7045,7 @@ msgstr "" #: app/templates/components/modals/confirm-modal.hbs:32:75 #: app/templates/components/modals/edit-user-modal.hbs:10:40 #: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:5:4 +#: app/utils/dictionary/boolean-complex.ts:9:15 msgid "No" msgstr "" @@ -11687,6 +11689,10 @@ msgstr "" msgid "Consent form field" msgstr "" +#: app/utils/dictionary/boolean-complex.ts:13:15 +msgid "Not sure yet" +msgstr "" + #: app/components/forms/orders/order-form.js:256:19 msgid "Please enter your wiki scholarship." msgstr "" diff --git a/translations/pl.po b/translations/pl.po index aa94e564e46..c6ecfa30958 100644 --- a/translations/pl.po +++ b/translations/pl.po @@ -7033,6 +7033,7 @@ msgstr "" #: app/templates/components/modals/edit-user-modal.hbs:11:40 #: app/templates/components/modals/publish-unpublish-modal.hbs:31:4 #: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:3:4 +#: app/utils/dictionary/boolean-complex.ts:5:15 msgid "Yes" msgstr "" @@ -7040,6 +7041,7 @@ msgstr "" #: app/templates/components/modals/confirm-modal.hbs:32:75 #: app/templates/components/modals/edit-user-modal.hbs:10:40 #: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:5:4 +#: app/utils/dictionary/boolean-complex.ts:9:15 msgid "No" msgstr "" @@ -11683,6 +11685,10 @@ msgstr "Polityka Przyjaznej Przestrzeni" msgid "Consent form field" msgstr "Pole formularza zgody" +#: app/utils/dictionary/boolean-complex.ts:13:15 +msgid "Not sure yet" +msgstr "Nie wiem jeszcze" + #: app/components/forms/orders/order-form.js:256:19 msgid "Please enter your wiki scholarship." msgstr "Wprowadź stypendium wiki." diff --git a/translations/ru.po b/translations/ru.po index 483ab2a17a6..1f5d7e504f6 100644 --- a/translations/ru.po +++ b/translations/ru.po @@ -12027,6 +12027,10 @@ msgstr "Дружественная космическая политика" msgid "Consent form field" msgstr "Поле формы согласия" +#: app/utils/dictionary/boolean-complex.ts:13:15 +msgid "Not sure yet" +msgstr "Пока не уверен" + #: app/components/forms/orders/order-form.js:256:19 msgid "Please enter your wiki scholarship." msgstr "Пожалуйста, введите свою вики-стипендию." diff --git a/translations/sv.po b/translations/sv.po index acdc3bb1620..25df6ea6de8 100644 --- a/translations/sv.po +++ b/translations/sv.po @@ -7038,6 +7038,7 @@ msgstr "" #: app/templates/components/modals/edit-user-modal.hbs:11:40 #: app/templates/components/modals/publish-unpublish-modal.hbs:31:4 #: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:3:4 +#: app/utils/dictionary/boolean-complex.ts:5:15 msgid "Yes" msgstr "" @@ -7045,6 +7046,7 @@ msgstr "" #: app/templates/components/modals/confirm-modal.hbs:32:75 #: app/templates/components/modals/edit-user-modal.hbs:10:40 #: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:5:4 +#: app/utils/dictionary/boolean-complex.ts:9:15 msgid "No" msgstr "" @@ -11688,6 +11690,10 @@ msgstr "Friendly Space Policy" msgid "Consent form field" msgstr "Fält för samtyckesformulär" +#: app/utils/dictionary/boolean-complex.ts:13:15 +msgid "Not sure yet" +msgstr "Inte säker än" + #: app/components/forms/orders/order-form.js:256:19 msgid "Please enter your wiki scholarship." msgstr "Ange ditt wiki-stipendium." diff --git a/translations/th.po b/translations/th.po index 72abe27e980..65c330a3f4e 100644 --- a/translations/th.po +++ b/translations/th.po @@ -11882,6 +11882,10 @@ msgstr "นโยบายอวกาศที่เป็นมิตร" msgid "Consent form field" msgstr "ฟิลด์แบบฟอร์มยินยอม" +#: app/utils/dictionary/boolean-complex.ts:13:15 +msgid "Not sure yet" +msgstr "ยังไม่แน่ใจ" + #: app/components/forms/orders/order-form.js:256:19 msgid "Please enter your wiki scholarship." msgstr "โปรดป้อนทุนการศึกษา wiki ของคุณ" diff --git a/translations/vi.po b/translations/vi.po index d6ee8a96618..c3168c093ba 100644 --- a/translations/vi.po +++ b/translations/vi.po @@ -11984,6 +11984,10 @@ msgstr "Chính sách không gian thân thiện" msgid "Consent form field" msgstr "trường biểu mẫu đồng ý" +#: app/utils/dictionary/boolean-complex.ts:13:15 +msgid "Not sure yet" +msgstr "Chưa chắc chắn" + #: app/components/forms/orders/order-form.js:256:19 msgid "Please enter your wiki scholarship." msgstr "Vui lòng nhập học bổng wiki của bạn." diff --git a/translations/zh_Hans.po b/translations/zh_Hans.po index 6f317c888bf..6e084406d9d 100644 --- a/translations/zh_Hans.po +++ b/translations/zh_Hans.po @@ -7041,6 +7041,7 @@ msgstr "" #: app/templates/components/modals/edit-user-modal.hbs:11:40 #: app/templates/components/modals/publish-unpublish-modal.hbs:31:4 #: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:3:4 +#: app/utils/dictionary/boolean-complex.ts:5:15 msgid "Yes" msgstr "" @@ -7048,6 +7049,7 @@ msgstr "" #: app/templates/components/modals/confirm-modal.hbs:32:75 #: app/templates/components/modals/edit-user-modal.hbs:10:40 #: app/templates/components/ui-table/cell/events/view/sessions/cell-is-mail-sent.hbs:5:4 +#: app/utils/dictionary/boolean-complex.ts:9:15 msgid "No" msgstr "" @@ -9230,8 +9232,7 @@ msgstr "虚拟活动室" #: app/templates/events/view/videoroom/list.hbs:27:7 msgid "This category is especially suitable for welcome, support, discussion or social video rooms. Virtual event video rooms do not require dedicated sessions and do not need a schedule setup." -msgstr "此类别特别适用于欢迎、支持、讨论或社交视频室。虚拟活动视频室不需要专门的会话" -",也不需要设置时间表。" +msgstr "此类别特别适用于欢迎、支持、讨论或社交视频室。虚拟活动视频室不需要专门的会话,也不需要设置时间表。" #: app/templates/events/view/videoroom/list.hbs:40:29 msgid "Microlocation Video Rooms" @@ -9243,10 +9244,7 @@ msgstr "添加微分配" #: app/templates/events/view/videoroom/list.hbs:47:11 msgid "Microlocation video rooms are suitable for events with different tracks, rooms and sessions that are listed in a schedule. All microlocations are listed on the event schedule. Note: Microlocation rooms require a session in order to be visible to attendees.They are only listed on the video channel list on side panels of online events, if sessions have been added into the location in the schedule." -msgstr "" -"微定位视频室适用于日程表中列出的具有不同轨道、房间和会话的活动。所有微地点都" -"列在活动时间表上。注意:微定位房间需要会话才能对与会者可见。如果会话已添加到" -"日程中的位置,则它们仅列在在线活动侧面板的视频频道列表中。" +msgstr "微定位视频室适用于日程表中列出的具有不同轨道、房间和会话的活动。所有微地点都列在活动时间表上。注意:微定位房间需要会话才能对与会者可见。如果会话已添加到日程中的位置,则它们仅列在在线活动侧面板的视频频道列表中。" #: app/templates/explore/events.hbs:12:25 msgid "Enter Event Name" @@ -11695,6 +11693,10 @@ msgstr "友好空间政策" msgid "Consent form field" msgstr "同意书字段" +#: app/utils/dictionary/boolean-complex.ts:13:15 +msgid "Not sure yet" +msgstr "尚未确定" + #: app/components/forms/orders/order-form.js:256:19 msgid "Please enter your wiki scholarship." msgstr "请输入您的维基奖学金。" diff --git a/translations/zh_Hant.po b/translations/zh_Hant.po index dd8c3a55fc2..b94c2191969 100644 --- a/translations/zh_Hant.po +++ b/translations/zh_Hant.po @@ -11747,6 +11747,10 @@ msgstr "友好空間政策" msgid "Consent form field" msgstr "同意書字段" +#: app/utils/dictionary/boolean-complex.ts:13:15 +msgid "Not sure yet" +msgstr "尚未確定" + #: app/components/forms/orders/order-form.js:256:19 msgid "Please enter your wiki scholarship." msgstr "請輸入您的維基獎學金。"