diff options
| author | cedricnjanga | 2017-10-02 17:34:49 +0200 |
|---|---|---|
| committer | cedricnjanga | 2017-10-02 17:36:41 +0200 |
| commit | cba31dc411ceb47f80202c1d3a32a2e031630b13 (patch) | |
| tree | 429718a617260f5013bb9d07b828e3d1bd26c738 /app/views/workbenches | |
| parent | 466dde61ed0cdf32c06cb3738e32f38c50c4558e (diff) | |
| download | chouette-core-cba31dc411ceb47f80202c1d3a32a2e031630b13.tar.bz2 | |
Refs #4665
Add a controller concern to deal with date filters
Diffstat (limited to 'app/views/workbenches')
| -rw-r--r-- | app/views/workbenches/_filters.html.slim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/workbenches/_filters.html.slim b/app/views/workbenches/_filters.html.slim index 8da629e9c..4d9e0066c 100644 --- a/app/views/workbenches/_filters.html.slim +++ b/app/views/workbenches/_filters.html.slim @@ -25,8 +25,8 @@ = f.label Referential.human_attribute_name(:validity_period), required: false, class: 'control-label' .filter_menu = f.simple_fields_for :validity_period do |p| - = p.input :begin_gteq, as: :date, label: t('simple_form.from'), wrapper_html: { class: 'date smart_date filter_menu-item' }, default: @begin_range, include_blank: @begin_range ? false : true - = p.input :end_lteq, as: :date, label: t('simple_form.to'), wrapper_html: { class: 'date smart_date filter_menu-item' }, default: @end_range, include_blank: @end_range ? false : true + = p.input :start_date, as: :date, label: t('simple_form.from'), wrapper_html: { class: 'date smart_date filter_menu-item' }, default: @begin_range, include_blank: @begin_range ? false : true + = p.input :end_date, as: :date, label: t('simple_form.to'), wrapper_html: { class: 'date smart_date filter_menu-item' }, default: @end_range, include_blank: @end_range ? false : true .actions = link_to t('actions.erase'), @workbench, class: 'btn btn-link' |
