From b92d1ee38c935484e29b7095cbe82e0a23d7a4ad Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Sun, 7 Jul 2024 19:55:56 +0300 Subject: [PATCH] adjust payment step --- app/javascript/submission_form/i18n.js | 25 +++++++++++++++++++ .../submission_form/payment_step.vue | 20 ++++++++++++--- app/javascript/template_builder/field.vue | 1 + .../template_builder/payment_settings.vue | 18 +++++++++++-- 4 files changed, 59 insertions(+), 5 deletions(-) diff --git a/app/javascript/submission_form/i18n.js b/app/javascript/submission_form/i18n.js index 3da091a9f..ba4b10d93 100644 --- a/app/javascript/submission_form/i18n.js +++ b/app/javascript/submission_form/i18n.js @@ -9,7 +9,9 @@ const en = { scan_the_qr_code_with_the_camera_app_to_open_the_form_on_mobile_and_draw_your_signature: 'Scan the QR code with the camera app to open the form on mobile and draw your signature', date: 'Date', number: 'Number', + already_paid: 'Already paid', image: 'Image', + pay: 'Pay', take_photo: 'Take photo', number_phone_is_invalid: '{number} phone is invalid', file: 'File', @@ -76,9 +78,11 @@ const es = { by_clicking_you_agree_to_the: 'Al hacer clic en "{button}", usted acepta el', electronic_signature_disclosure: 'Divulgación de Firma Electrónica', esignature_disclosure: 'Divulgación de eFirma', + already_paid: 'Ya pagado', minimize: 'Minimizar', text: 'Texto', signature: 'Firma', + pay: 'Pagar', initials: 'Iniciales', date: 'Fecha', number: 'Número', @@ -148,12 +152,14 @@ const it = { electronic_signature_disclosure: 'Divulgazione della Firma Elettronica', esignature_disclosure: 'Divulgazione della eFirma', minimize: 'Minimizza', + already_paid: 'Pagato', text: 'Testo', signature: 'Firma', initials: 'Iniziali', date: 'Data', number: 'Numero', image: 'Immagine', + pay: 'Pagamento', file: 'File', select: 'Seleziona', checkbox: 'Casella di controllo', @@ -218,6 +224,7 @@ const de = { by_clicking_you_agree_to_the: 'Durch Klicken auf "{button}" stimmen Sie zu, dass Sie die', electronic_signature_disclosure: 'Elektronische Unterschriftenoffenlegung', esignature_disclosure: 'eSignatur Offenlegung', + already_paid: 'Bereits bezahlt', minimize: 'Minimieren', text: 'Text', signature: 'Unterschrift', @@ -225,6 +232,7 @@ const de = { date: 'Datum', number: 'Nummer', image: 'Bild', + pay: 'Bezahlen', file: 'Datei', select: 'Auswählen', checkbox: 'Checkbox', @@ -291,8 +299,10 @@ const fr = { esignature_disclosure: 'Divulgation de la eSignature', minimize: 'Réduire', text: 'Texte', + already_paid: 'Déjà payé', signature: 'Signature', initials: 'Initiales', + pay: 'Payer', date: 'Date', number: 'Numéro', image: 'Image', @@ -362,12 +372,14 @@ const pl = { esignature_disclosure: 'Ujawnienie ePodpisu', minimize: 'Zminimalizuj', text: 'Tekst', + already_paid: 'Już zapłacono', signature: 'Podpis', initials: 'Inicjały', date: 'Data', number: 'Numer', image: 'Obraz', file: 'Plik', + pay: 'Zapłać', select: 'Wybierz', checkbox: 'Pole wyboru', multiple: 'Wielokrotne', @@ -433,11 +445,13 @@ const uk = { esignature_disclosure: 'Розголошення еПідпису', minimize: 'Зменшити', text: 'Текст', + already_paid: 'Вже оплачено', signature: 'Підпис', initials: 'Ініціали', date: 'Дата', number: 'Число', image: 'Зображення', + pay: 'Оплатити', file: 'Файл', select: 'Вибрати', checkbox: 'Прапорець', @@ -502,6 +516,7 @@ const cs = { by_clicking_you_agree_to_the: 'Kliknutím na "{button}" souhlasíte s', electronic_signature_disclosure: 'Zveřejněním Elektronického Podpisu', esignature_disclosure: 'Zveřejnění ePodpisu', + already_paid: 'Už zaplaceno', minimize: 'Minimalizovat', text: 'Text', signature: 'Podpis', @@ -509,6 +524,7 @@ const cs = { date: 'Datum', number: 'Číslo', image: 'Obrázek', + pay: 'Zaplatit', file: 'Soubor', select: 'Vybrat', checkbox: 'Zaškrtávací políčko', @@ -573,6 +589,7 @@ const pt = { by_clicking_you_agree_to_the: 'Ao clicar em "{button}", você concorda com o', electronic_signature_disclosure: 'Divulgação de Assinatura Eletrônica', esignature_disclosure: 'Divulgação da eAssinatura', + already_paid: 'Já pago', minimize: 'Minimizar', text: 'Texto', signature: 'Assinatura', @@ -580,6 +597,7 @@ const pt = { date: 'Data', number: 'Número', image: 'Imagem', + pay: 'Pagar', file: 'Arquivo', select: 'Selecionar', checkbox: 'Caixa', @@ -646,12 +664,14 @@ const he = { esignature_disclosure: 'חשיפת ה-eחתימה', minimize: 'לקטן', text: 'טקסט', + already_paid: 'כבר שולם', signature: 'חתימה', initials: 'ראשי תיבות', date: 'תאריך', number: 'מספר', image: 'תמונה', file: 'קובץ', + pay: 'תשלום', select: 'בחר', checkbox: 'תיק בחירה', multiple: 'רב ערכים', @@ -718,6 +738,7 @@ const nl = { esignature_disclosure: 'Openbaarmaking van eHandtekening', minimize: 'Minimaliseren', text: 'Tekst', + already_paid: 'Al betaald', signature: 'Handtekening', initials: 'Initialen', date: 'Datum', @@ -728,6 +749,7 @@ const nl = { select: 'Selecteer', checkbox: 'Aankruisvakje', multiple: 'Meerdere', + pay: 'Betaal', radio: 'Radio', cells: 'Cellen', stamp: 'Stempel', @@ -795,6 +817,7 @@ const ar = { number: 'رقم', image: 'صورة', take_photo: 'التقاط صورة', + pay: 'دفع', file: 'ملف', select: 'اختيار', checkbox: 'خانة اختيار', @@ -860,11 +883,13 @@ const ko = { by_clicking_you_agree_to_the: '"{button}"를 클릭함으로써, 다음에 동의하게 됩니다', electronic_signature_disclosure: '전자 서명 공개', esignature_disclosure: '전자 서명 공개', + already_paid: '이미 지불됨', text: '텍스트', signature: '서명', 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..48df42f55 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 }} + > + + +
+ +
- Already paid + {{ t('already_paid') }}

+
  • + +