aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/workbenches
diff options
context:
space:
mode:
authorcedricnjanga2017-09-06 01:06:47 +0200
committercedricnjanga2017-09-06 09:47:25 +0200
commit53804667d4ba62e29ff687995dfa6d2566139075 (patch)
tree2a1ca835d7d7abccc2e905c6872333ff4916fbb5 /app/views/workbenches
parentbcea52e515f1eef544da5cfcbfb5e900c69b1081 (diff)
downloadchouette-core-53804667d4ba62e29ff687995dfa6d2566139075.tar.bz2
Updated imports#index date filter : used the same logic for the Calendar#index date filter (ransackable scope)
I realized that we could submit the form with incomplete date which caused an 500 error. So I added a small JS script to prevent user from subnitting filter form with incomplete dates Since it was really similar with previous work I added two folders : /helpers & /filters to be more DRY The JS files are loaded in 4 views for the moment, hence the update in the assets.rb file
Diffstat (limited to 'app/views/workbenches')
-rw-r--r--app/views/workbenches/show.html.slim2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/workbenches/show.html.slim b/app/views/workbenches/show.html.slim
index 80451ec34..50c719d12 100644
--- a/app/views/workbenches/show.html.slim
+++ b/app/views/workbenches/show.html.slim
@@ -77,3 +77,5 @@
= javascript_tag do
| window.I18n = #{(I18n.backend.send(:translations).to_json).html_safe};
+
+= javascript_include_tag 'filters/workbench.js'