Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/components/forms/orders/order-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion app/templates/components/forms/orders/attendee-list.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
{{/if}}
{{/if}}
{{#if field.isComplex}}
<span class="word-break">{{get holder.complexFieldValues field.fieldIdentifier}}</span>
<span class="word-break">{{t (get holder.complexFieldValues field.fieldIdentifier)}}</span>
{{/if}}
</div>
{{/if}}
Expand Down
11 changes: 4 additions & 7 deletions app/templates/components/forms/orders/order-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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|}}
<div class="ui radio checkbox mr-radio">
<Widgets::Forms::RadioButton
@name={{if field.isRequired (concat field.fieldIdentifier "_required_" index) (concat field.fieldIdentifier "_" index)}}
@value={{true}} @checked={{mut (get holder field.identifierPath)}}/>
<label for="yes_include">{{t 'Yes'}}</label>
</div>
<div class="ui radio checkbox mr-radio">
<Widgets::Forms::RadioButton @name={{if field.isRequired (concat field.fieldIdentifier "_required_" index) (concat field.fieldIdentifier "_" index)}}
@value={{false}} @checked={{mut (get holder field.identifierPath)}}/>
<label for="no_include">{{t 'No'}}</label>
@value={{item.name}} @checked={{mut (get holder field.identifierPath)}}/>
<label for="yes_include">{{t item.name}}</label>
</div>
{{/each}}
{{/if}}
{{#if (or (is-input-field field.type) (eq field.type 'richtextlink'))}}
{{#if (or field.isLongText (eq field.type 'richtextlink')) }}
Expand Down
16 changes: 16 additions & 0 deletions app/utils/dictionary/boolean_complex.ts
Original file line number Diff line number Diff line change
@@ -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
}
];
6 changes: 6 additions & 0 deletions translations/bn.po
Original file line number Diff line number Diff line change
Expand Up @@ -7034,13 +7034,15 @@ 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 ""

#: app/templates/components/forms/orders/attendee-list.hbs:51:26
#: 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 ""

Expand Down Expand Up @@ -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 "আপনার উইকি বৃত্তি লিখুন."
Expand Down
6 changes: 6 additions & 0 deletions translations/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -7044,13 +7044,15 @@ 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"

#: app/templates/components/forms/orders/attendee-list.hbs:51:26
#: 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"

Expand Down Expand Up @@ -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."
Expand Down
6 changes: 6 additions & 0 deletions translations/de_DIVEO.po
Original file line number Diff line number Diff line change
Expand Up @@ -7035,13 +7035,15 @@ 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 ""

#: app/templates/components/forms/orders/attendee-list.hbs:51:26
#: 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 ""

Expand Down Expand Up @@ -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 ""
Expand Down
6 changes: 6 additions & 0 deletions translations/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -7040,13 +7040,15 @@ 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"

#: app/templates/components/forms/orders/attendee-list.hbs:51:26
#: 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"

Expand Down Expand Up @@ -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."
Expand Down
4 changes: 4 additions & 0 deletions translations/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
4 changes: 4 additions & 0 deletions translations/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
6 changes: 6 additions & 0 deletions translations/hi.po
Original file line number Diff line number Diff line change
Expand Up @@ -7036,13 +7036,15 @@ 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 ""

#: app/templates/components/forms/orders/attendee-list.hbs:51:26
#: 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 ""

Expand Down Expand Up @@ -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 "कृपया अपनी विकि छात्रवृत्ति दर्ज करें।"
Expand Down
4 changes: 4 additions & 0 deletions translations/id.po
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
4 changes: 4 additions & 0 deletions translations/ja.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 奨学金を入力してください。"
Expand Down
4 changes: 4 additions & 0 deletions translations/ko.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 "위키 장학금을 입력하세요."
Expand Down
5 changes: 5 additions & 0 deletions translations/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -7035,13 +7035,15 @@ 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 ""

#: app/templates/components/forms/orders/attendee-list.hbs:51:26
#: 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 ""

Expand Down Expand Up @@ -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 ""
Expand Down
6 changes: 6 additions & 0 deletions translations/nb_NO.po
Original file line number Diff line number Diff line change
Expand Up @@ -7037,13 +7037,15 @@ 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 ""

#: app/templates/components/forms/orders/attendee-list.hbs:51:26
#: 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 ""

Expand Down Expand Up @@ -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 ""
Expand Down
6 changes: 6 additions & 0 deletions translations/pl.po
Original file line number Diff line number Diff line change
Expand Up @@ -7033,13 +7033,15 @@ 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 ""

#: app/templates/components/forms/orders/attendee-list.hbs:51:26
#: 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 ""

Expand Down Expand Up @@ -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."
Expand Down
4 changes: 4 additions & 0 deletions translations/ru.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 "Пожалуйста, введите свою вики-стипендию."
Expand Down
6 changes: 6 additions & 0 deletions translations/sv.po
Original file line number Diff line number Diff line change
Expand Up @@ -7038,13 +7038,15 @@ 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 ""

#: app/templates/components/forms/orders/attendee-list.hbs:51:26
#: 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 ""

Expand Down Expand Up @@ -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."
Expand Down
4 changes: 4 additions & 0 deletions translations/th.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 ของคุณ"
Expand Down
4 changes: 4 additions & 0 deletions translations/vi.po
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
Loading