diff --git a/app/javascript/submission_form/i18n.js b/app/javascript/submission_form/i18n.js index 3da091a9f..e96b38427 100644 --- a/app/javascript/submission_form/i18n.js +++ b/app/javascript/submission_form/i18n.js @@ -10,6 +10,7 @@ const en = { date: 'Date', number: 'Number', image: 'Image', + pay: 'Pay', take_photo: 'Take photo', number_phone_is_invalid: '{number} phone is invalid', file: 'File', @@ -79,6 +80,7 @@ const es = { minimize: 'Minimizar', text: 'Texto', signature: 'Firma', + pay: 'Pagar', initials: 'Iniciales', date: 'Fecha', number: 'Número', @@ -154,6 +156,7 @@ const it = { date: 'Data', number: 'Numero', image: 'Immagine', + pay: 'Pagamento', file: 'File', select: 'Seleziona', checkbox: 'Casella di controllo', @@ -225,6 +228,7 @@ const de = { date: 'Datum', number: 'Nummer', image: 'Bild', + pay: 'Bezahlen', file: 'Datei', select: 'Auswählen', checkbox: 'Checkbox', @@ -293,6 +297,7 @@ const fr = { text: 'Texte', signature: 'Signature', initials: 'Initiales', + pay: 'Payer', date: 'Date', number: 'Numéro', image: 'Image', @@ -368,6 +373,7 @@ const pl = { number: 'Numer', image: 'Obraz', file: 'Plik', + pay: 'Zapłać', select: 'Wybierz', checkbox: 'Pole wyboru', multiple: 'Wielokrotne', @@ -438,6 +444,7 @@ const uk = { date: 'Дата', number: 'Число', image: 'Зображення', + pay: 'Оплата', file: 'Файл', select: 'Вибрати', checkbox: 'Прапорець', @@ -509,6 +516,7 @@ const cs = { date: 'Datum', number: 'Číslo', image: 'Obrázek', + pay: 'Zaplatit', file: 'Soubor', select: 'Vybrat', checkbox: 'Zaškrtávací políčko', @@ -580,6 +588,7 @@ const pt = { date: 'Data', number: 'Número', image: 'Imagem', + pay: 'Pagar', file: 'Arquivo', select: 'Selecionar', checkbox: 'Caixa', @@ -652,6 +661,7 @@ const he = { number: 'מספר', image: 'תמונה', file: 'קובץ', + pay: 'תשלום', select: 'בחר', checkbox: 'תיק בחירה', multiple: 'רב ערכים', @@ -728,6 +738,7 @@ const nl = { select: 'Selecteer', checkbox: 'Aankruisvakje', multiple: 'Meerdere', + pay: 'Betaal', radio: 'Radio', cells: 'Cellen', stamp: 'Stempel', @@ -795,6 +806,7 @@ const ar = { number: 'رقم', image: 'صورة', take_photo: 'التقاط صورة', + pay: 'دفع', file: 'ملف', select: 'اختيار', checkbox: 'خانة اختيار', @@ -865,6 +877,7 @@ const ko = { initials: '이니셜', date: '날짜', number: '숫자', + pay: '급여', image: '이미지', take_photo: '사진 찍기', file: '파일', diff --git a/app/javascript/submission_form/payment_step.vue b/app/javascript/submission_form/payment_step.vue index e6b41f382..2fe255f97 100644 --- a/app/javascript/submission_form/payment_step.vue +++ b/app/javascript/submission_form/payment_step.vue @@ -3,8 +3,20 @@ v-if="!modelValue && !sessionId" :for="field.uuid" class="label text-2xl mb-2" - >{{ field.name || defaultName }} + > + + +
+ +
import { IconBrandStripe, IconInnerShadowTop, IconLoader } from '@tabler/icons-vue' +import MarkdownContent from './markdown_content' export default { name: 'PaymentStep', components: { IconBrandStripe, + MarkdownContent, IconInnerShadowTop, IconLoader }, @@ -105,7 +119,7 @@ export default { currency }).format(price) - return `Pay ${formattedPrice}` + return this.t('pay') + ' ' + formattedPrice } }, mounted () { diff --git a/app/javascript/template_builder/field.vue b/app/javascript/template_builder/field.vue index e171cbd1c..f27c6abd5 100644 --- a/app/javascript/template_builder/field.vue +++ b/app/javascript/template_builder/field.vue @@ -93,6 +93,7 @@ v-if="field.type === 'payment'" :field="field" @click-condition="isShowConditionsModal = true" + @click-description="isShowDescriptionModal = true" /> Learn more

+
  • + +