aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcedricnjanga2018-02-21 15:04:03 -0800
committerJohan Van Ryseghem2018-02-22 09:06:40 +0100
commitaf5c4beea69b913719f0481f99194044e81227ee (patch)
tree0d8c3c53074724e69b76436fc8b1162e6df5a814
parent70396ae000bfc5c2b792c17198efc2a8d87d9ebf (diff)
downloadchouette-core-af5c4beea69b913719f0481f99194044e81227ee.tar.bz2
Refs #5999 Update workgroup call in TimeTable#new
-rw-r--r--app/views/time_tables/_form.html.slim2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/time_tables/_form.html.slim b/app/views/time_tables/_form.html.slim
index 007044e65..000da870e 100644
--- a/app/views/time_tables/_form.html.slim
+++ b/app/views/time_tables/_form.html.slim
@@ -5,7 +5,7 @@
= form.input :comment, :input_html => { :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.time_table.comment")}
- if @time_table.new_record? && !@time_table.created_from
- = form.input :calendar_id, as: :select, input_html: { class: 'tt_target', style: "width: 100%", data: { 'select2-ajax': 'true', 'select2ed-placeholder': 'Indiquez un modèle de calendrier...', term: 'name_cont', url: autocomplete_workgroup_calendars_path(current_workgroup)}}
+ = form.input :calendar_id, as: :select, input_html: { class: 'tt_target', style: "width: 100%", data: { 'select2-ajax': 'true', 'select2ed-placeholder': 'Indiquez un modèle de calendrier...', term: 'name_cont', url: autocomplete_workgroup_calendars_path(@referential.workgroup)}}
- if @time_table.created_from
= form.input :created_from, disabled: true, input_html: { value: @time_table.created_from.comment }