aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/timebands
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/timebands')
-rw-r--r--app/views/timebands/_form.html.slim9
-rw-r--r--app/views/timebands/_sidebar.html.slim9
-rw-r--r--app/views/timebands/edit.html.slim4
-rw-r--r--app/views/timebands/index.html.slim23
-rw-r--r--app/views/timebands/new.html.slim4
-rw-r--r--app/views/timebands/show.html.slim9
6 files changed, 0 insertions, 58 deletions
diff --git a/app/views/timebands/_form.html.slim b/app/views/timebands/_form.html.slim
deleted file mode 100644
index 433d777dc..000000000
--- a/app/views/timebands/_form.html.slim
+++ /dev/null
@@ -1,9 +0,0 @@
-= semantic_form_for [@referential, @timeband] do |form|
- = form.inputs do
- = form.input :name
- = form.input :start_time
- = form.input :end_time
-
- = form.actions do
- = form.action :submit, as: :button
- = form.action :cancel, as: :link \ No newline at end of file
diff --git a/app/views/timebands/_sidebar.html.slim b/app/views/timebands/_sidebar.html.slim
deleted file mode 100644
index 07dcebdad..000000000
--- a/app/views/timebands/_sidebar.html.slim
+++ /dev/null
@@ -1,9 +0,0 @@
-- content_for :sidebar do
- ul.actions
- li = link_to t('timebands.actions.new'), new_referential_timeband_path(@referential), class: "add"
-
- - if @timeband
- li
- = link_to t('timebands.actions.edit'), edit_referential_timeband_path(@referential, @timeband), class: "edit"
- li
- = link_to t('timebands.actions.destroy'), referential_timeband_path(@referential, @timeband), :method => :delete, :data => {:confirm => t('timebands.actions.destroy_confirm')}, class: "remove" \ No newline at end of file
diff --git a/app/views/timebands/edit.html.slim b/app/views/timebands/edit.html.slim
deleted file mode 100644
index c70de82ef..000000000
--- a/app/views/timebands/edit.html.slim
+++ /dev/null
@@ -1,4 +0,0 @@
-- breadcrumb :timeband, @referential, @timeband
-= title_tag t('timebands.edit.title', timeband: @timeband.name)
-
-= render 'form'
diff --git a/app/views/timebands/index.html.slim b/app/views/timebands/index.html.slim
deleted file mode 100644
index 6dcf348f9..000000000
--- a/app/views/timebands/index.html.slim
+++ /dev/null
@@ -1,23 +0,0 @@
-- breadcrumb :timebands, @referential
-= title_tag t('timebands.index.title')
-
-- if @timebands.any?
- table.table.table-striped.table-condensed
- thead
- tr
- th = t('activerecord.attributes.timeband.name')
- th = t('activerecord.attributes.timeband.start_time')
- th = t('activerecord.attributes.timeband.end_time')
- th
-
- tbody
- - @timebands.each do |timeband|
- tr
- td = link_to timeband.name, referential_timeband_path(@referential, timeband)
- td = l(timeband.start_time, format: :hour)
- td = l(timeband.end_time, format: :hour)
- td
- = link_to '', edit_referential_timeband_path(@referential, timeband), class: "edit"
- = link_to '', referential_timeband_path(@referential, timeband), :method => :delete, :data => {:confirm => t('timebands.actions.destroy_confirm')}, class: "remove"
-
-== render 'sidebar'
diff --git a/app/views/timebands/new.html.slim b/app/views/timebands/new.html.slim
deleted file mode 100644
index d9fc27823..000000000
--- a/app/views/timebands/new.html.slim
+++ /dev/null
@@ -1,4 +0,0 @@
-- breadcrumb :timebands, @referential
-= title_tag t('timebands.new.title')
-
-== render 'form'
diff --git a/app/views/timebands/show.html.slim b/app/views/timebands/show.html.slim
deleted file mode 100644
index d45611c56..000000000
--- a/app/views/timebands/show.html.slim
+++ /dev/null
@@ -1,9 +0,0 @@
-- breadcrumb :timeband, @referential, @timeband
-= title_tag t( 'timebands.show.title', timeband: @timeband.name )
-
-.summary
- p
- label = "#{@timeband.name} : "
- = "#{l(@timeband.start_time, format: :hour)} - #{l(@timeband.end_time, format: :hour)}"
-
-== render 'sidebar'