aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/time_tables
diff options
context:
space:
mode:
authorXinhui2017-05-22 15:22:52 +0200
committerXinhui2017-05-22 15:22:59 +0200
commit897bc5fb10b1867970367ede388feac0ac1a5791 (patch)
tree0f62692076d035a470033bc43082b96228162df3 /app/views/time_tables
parent7b498a92d79a0305b98418774b65cf9fcb1ce237 (diff)
downloadchouette-core-897bc5fb10b1867970367ede388feac0ac1a5791.tar.bz2
TimeTables#actualize retrieve dates & periods from calendar
Refs #3445
Diffstat (limited to 'app/views/time_tables')
-rw-r--r--app/views/time_tables/show.html.slim4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/time_tables/show.html.slim b/app/views/time_tables/show.html.slim
index 9c40a13a2..46c32f4b0 100644
--- a/app/views/time_tables/show.html.slim
+++ b/app/views/time_tables/show.html.slim
@@ -11,9 +11,11 @@
.col-lg-12.text-right
/ - if policy(@time_table).create? && @referential.organisation == current_organisation
/ = link_to t('time_tables.actions.new'), new_referential_time_table_path(@referential), class: 'btn btn-primary'
+ - if @time_table.calendar
+ = link_to t('actions.actualize'), actualize_referential_time_table_path(@referential, @time_table), method: :post, class: 'btn btn-primary'
/- if policy(@time_table).create? && @referential.organisation == current_organisation
- = link_to t('actions.combine'), new_referential_time_table_time_table_combination_path(@referential, @time_table), {remote: true, 'data-toggle' => "modal", 'data-target' => '#modal_combine', class: 'btn btn-primary' }
+ = link_to t('actions.combine'), new_referential_time_table_time_table_combination_path(@referential, @time_table), class: 'btn btn-primary'
- if policy(@time_table).create? && @referential.organisation == current_organisation
= link_to t('actions.clone'), duplicate_referential_time_table_path(@referential, @time_table), class: 'btn btn-primary'