aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Donnet2018-01-09 20:54:21 +0100
committerGitHub2018-01-09 20:54:21 +0100
commit2170df505bcf39b857077f2784c880d963ca83bb (patch)
tree775fe450663a9a748af944ef1ae1540a5b3f2700
parent730ef590b337fd4e005176e252299145b7404997 (diff)
parentf9bc7a661c2fb88aef1662bd60d8d6d8a3cff443 (diff)
downloadchouette-core-2170df505bcf39b857077f2784c880d963ca83bb.tar.bz2
Merge pull request #219 from af83/5524-referentials-new--disable-submit-button-on-submit
5524-referentials-new--disable-submit-button-on-submit
-rw-r--r--app/views/referentials/_form.html.slim6
-rw-r--r--config/locales/actions.en.yml1
-rw-r--r--config/locales/actions.fr.yml1
3 files changed, 7 insertions, 1 deletions
diff --git a/app/views/referentials/_form.html.slim b/app/views/referentials/_form.html.slim
index 1611ee6dd..9927f05bd 100644
--- a/app/views/referentials/_form.html.slim
+++ b/app/views/referentials/_form.html.slim
@@ -51,4 +51,8 @@
.hidden = form.input :workbench_id, as: :hidden
- = form.button :submit, t('actions.submit'), class: 'btn btn-default formSubmitr', form: 'referential_form'
+ = form.button :submit,
+ t('actions.submit'),
+ class: 'btn btn-default formSubmitr',
+ data: { disable_with: t('actions.processing') },
+ form: 'referential_form'
diff --git a/config/locales/actions.en.yml b/config/locales/actions.en.yml
index f5f48db22..08d505393 100644
--- a/config/locales/actions.en.yml
+++ b/config/locales/actions.en.yml
@@ -7,6 +7,7 @@ en:
delete: "Delete"
search: "Search"
submit: "Submit"
+ processing: "Processing…"
add: "Add new"
new: "Add new"
show: "See"
diff --git a/config/locales/actions.fr.yml b/config/locales/actions.fr.yml
index 4b3ac6901..4690c995a 100644
--- a/config/locales/actions.fr.yml
+++ b/config/locales/actions.fr.yml
@@ -7,6 +7,7 @@ fr:
delete: 'Supprimer'
search: "Chercher"
submit: "Valider"
+ processing: "En cours…"
add: 'Créer'
new: 'Créer'
show: 'Consulter'