feat(groupe instructeur): add a confirm modal before import
This commit is contained in:
parent
b245c3a8fa
commit
d516d2a3eb
3 changed files with 3 additions and 1 deletions
|
@ -35,7 +35,7 @@
|
|||
%p.mt-2.mb-2= link_to t('.csv_import.download_exemple'), sample_file_path
|
||||
- csv_params = procedure.routing_enabled? ? :group_csv_file : :instructeurs_csv_file
|
||||
= file_field_tag csv_params, required: true, accept: 'text/csv', size: "1"
|
||||
= submit_tag t('.csv_import.import_file'), class: 'button primary send', data: { disable_with: "Envoi..." }
|
||||
= submit_tag t('.csv_import.import_file'), class: 'button primary send', data: { disable_with: "Envoi...", confirm: t('.csv_import.import_file_alert') }
|
||||
- else
|
||||
%p.mt-4.form.font-weight-bold.mb-2.text-lg
|
||||
= t('.csv_import.title')
|
||||
|
|
|
@ -49,6 +49,7 @@ en:
|
|||
download_exemple: Download sample CSV file
|
||||
import_file: Import file
|
||||
import_file_procedure_not_published: The import of instructors by CSV file is available once the process has been published
|
||||
import_file_alert: Instructors added to the procedure will receive an email. Are you sure you want to continue ?"
|
||||
set_up: set up
|
||||
button:
|
||||
add_group: Add group
|
||||
|
|
|
@ -55,6 +55,7 @@ fr:
|
|||
download_exemple: Télécharger l’exemple de fichier CSV
|
||||
import_file: Importer le fichier
|
||||
import_file_procedure_not_published: L’import d’instructeurs par fichier CSV est disponible une fois la démarche publiée
|
||||
import_file_alert: Tous les instructeurs ajoutés à la procédure vont être notifiés par email. Voulez-vous continuer ?
|
||||
view: voir
|
||||
set_up: paramétrer
|
||||
button:
|
||||
|
|
Loading…
Reference in a new issue