diff options
| author | Zog | 2018-05-29 10:18:16 +0200 | 
|---|---|---|
| committer | Johan Van Ryseghem | 2018-05-30 16:29:33 +0200 | 
| commit | 3e8d95ac8168205ac9526fb8663459d691d09c30 (patch) | |
| tree | fd2bc220473f4defe30a35668d6b9eead76f00fa /app/views/timebands | |
| parent | 971b267958c3bf78abea332e0af4c46a23679b61 (diff) | |
| download | chouette-core-3e8d95ac8168205ac9526fb8663459d691d09c30.tar.bz2 | |
Refs #6433; Fix specs
Diffstat (limited to 'app/views/timebands')
| -rw-r--r-- | app/views/timebands/_form.html.slim | 9 | ||||
| -rw-r--r-- | app/views/timebands/_sidebar.html.slim | 9 | ||||
| -rw-r--r-- | app/views/timebands/edit.html.slim | 4 | ||||
| -rw-r--r-- | app/views/timebands/index.html.slim | 23 | ||||
| -rw-r--r-- | app/views/timebands/new.html.slim | 4 | ||||
| -rw-r--r-- | app/views/timebands/show.html.slim | 9 | 
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' | 
