aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/calendars
diff options
context:
space:
mode:
authorXinhui2017-04-25 15:41:51 +0200
committerXinhui2017-04-25 15:41:51 +0200
commit219c856566cb861cee82288adeda02cf5b9ca751 (patch)
tree98e56d9d6e9ca83bce90633afc0727bdf682cfb9 /app/views/calendars
parent9399071affee50b3f92df0121374bec22cbc6e4c (diff)
downloadchouette-core-219c856566cb861cee82288adeda02cf5b9ca751.tar.bz2
Fix calendar ransack filter
Refs #3173
Diffstat (limited to 'app/views/calendars')
-rw-r--r--app/views/calendars/_filters.html.slim5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/views/calendars/_filters.html.slim b/app/views/calendars/_filters.html.slim
index 4fc11b5c7..d8707ba0f 100644
--- a/app/views/calendars/_filters.html.slim
+++ b/app/views/calendars/_filters.html.slim
@@ -9,12 +9,11 @@
.ffg-row
.form-group.has_switch style='width: 260px'
= f.label Calendar.human_attribute_name(:shared), class: 'col-sm-4 control-label'
- = f.input :shared, as: :boolean, checked_value: true, unchecked_value: false, label: content_tag(:span, '', class: 'switch-label', data: {checkedValue: t('true'), uncheckedValue: t('false')}), wrapper_html: { class: 'col-sm-8' }
+ = f.input :shared_true, as: :boolean, checked_value: true, unchecked_value: false, label: content_tag(:span, '', class: 'switch-label', data: {checkedValue: t('true'), uncheckedValue: t('false')}), wrapper_html: { class: 'col-sm-8' }
.form-group
= f.label Calendar.human_attribute_name(:date), class: 'control-label'
- = f.input :contains_date, as: :date, label: false, wrapper_html: { class: 'date' }, class: 'form-control'
-
+ = f.input :contains_date, as: :date, label: false, wrapper_html: { class: 'date' }, class: 'form-control', include_blank: true
.actions
= link_to 'Effacer', calendars_path, class: 'btn btn-link'
= f.submit 'Filtrer', id: 'filter_btn', class: 'btn btn-default'