aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/referentials/_clean.html.slim4
-rw-r--r--app/views/workbenches/_referential.html.slim34
-rw-r--r--config/locales/clean_ups.en.yml6
-rw-r--r--config/locales/clean_ups.fr.yml6
4 files changed, 14 insertions, 36 deletions
diff --git a/app/views/referentials/_clean.html.slim b/app/views/referentials/_clean.html.slim
index a962d5417..4064d77ae 100644
--- a/app/views/referentials/_clean.html.slim
+++ b/app/views/referentials/_clean.html.slim
@@ -1,7 +1,7 @@
#clean_up
= semantic_form_for [@referential, CleanUp.new] do |form|
= form.inputs do
- = form.input :begin_date, as: :date_picker, :wrapper_html => { class: 'date', title: t('titles.clean_up.begin_date') }
- = form.input :end_date, as: :date_picker, :wrapper_html => { class: 'date', title: t('titles.clean_up.end_date') }
+ = form.input :begin_date, as: :date_picker, label: t('titles.clean_up.begin_date'),:wrapper_html => { class: 'date', title: t('titles.clean_up.begin_date') }
+ = form.input :end_date, as: :date_picker, label: t('titles.clean_up.end_date'), :wrapper_html => { class: 'date', title: t('titles.clean_up.end_date') }
= form.actions do
= form.action :submit, as: :button, label: t('clean_ups.actions.clean_up') , :button_html => { data: { confirm: t('clean_ups.actions.confirm') } }
diff --git a/app/views/workbenches/_referential.html.slim b/app/views/workbenches/_referential.html.slim
deleted file mode 100644
index 7ea9c26f4..000000000
--- a/app/views/workbenches/_referential.html.slim
+++ /dev/null
@@ -1,34 +0,0 @@
-#index_item.panel.panel-default.referential
- .panel-heading
- .panel-title.clearfix
- span.pull-right
- .btn-group.btn-group-sm
- = link_to edit_referential_path(referential), class: 'btn btn-default' do
- span.fa.fa-pencil
-
- = link_to referential_path(referential), method: :delete, :data => {:confirm => t('referentials.actions.destroy_confirm')}, class: 'btn btn-danger' do
- span.fa.fa-trash-o
-
- h5
- = link_to [@referential, referential], class: 'preview', title: "#{Referential.model_name.human.capitalize} #{referential.name}" do
- span.name
- = truncate(referential.name, :length => 30)
-
- div.panel-body id="referential_#{referential.id}"
- p
- = "#{referential.human_attribute_name('lines')} : "
- span.lines_count
-
- p
- = "#{referential.human_attribute_name('networks')} : "
- span.networks_count
-
- p
- = "#{referential.human_attribute_name('vehicle_journeys')} : "
- span.vehicle_journeys_count
-
- p
- = "#{referential.human_attribute_name('time_tables')} : "
- span.time_tables_count
-
-= javascript_include_tag referential_path(referential, format: :js)
diff --git a/config/locales/clean_ups.en.yml b/config/locales/clean_ups.en.yml
index 77b11fec1..148362c35 100644
--- a/config/locales/clean_ups.en.yml
+++ b/config/locales/clean_ups.en.yml
@@ -16,3 +16,9 @@ en:
clean_up:
begin_date: "Begin date of clean up"
end_date: "End date of clean up"
+
+ formtastic:
+ titles:
+ clean_up:
+ begin_date: "Begin date of clean up"
+ end_date: "End date of clean up"
diff --git a/config/locales/clean_ups.fr.yml b/config/locales/clean_ups.fr.yml
index 096b78c89..cb0ce3f1a 100644
--- a/config/locales/clean_ups.fr.yml
+++ b/config/locales/clean_ups.fr.yml
@@ -16,3 +16,9 @@ fr:
clean_up:
begin_date: "Début date de la purge"
end_date: "Fin date de la purge"
+
+ formtastic:
+ titles:
+ clean_up:
+ begin_date: "Début date de la purge"
+ end_date: "Fin date de la purge"