aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/referential_group_of_lines/show.html.slim
blob: 61a762350fc2d714bf2eff457e765c817fb8fdb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
- breadcrumb :referential_group_of_line, @referential, @group_of_line
= title_tag t('group_of_lines.show.title', :group_of_line => @group_of_line.name )

.group_of_line_show
  .summary
    p
      label = "#{@group_of_line.human_attribute_name('registration_number')} : "
      = @group_of_line.registration_number

    p
      label = "#{@group_of_line.human_attribute_name('comment')} : "
      = @group_of_line.comment

  p.after_map

  h3.group_of_line_lines = t('.lines')
  .lines_detail
    == render partial: "lines_detail"

- content_for :sidebar do
  ul.actions
    li
      = link_to t('group_of_lines.actions.new'), new_referential_group_of_line_path(@referential), class: 'add'
    li
      = link_to t('group_of_lines.actions.edit'), edit_referential_group_of_line_path(@referential, @group_of_line), class: 'edit'
    li
      = link_to  t('group_of_lines.actions.destroy'), referential_group_of_line_path(@referential, @group_of_line), :method => :delete, :data => {:confirm =>  t('group_of_lines.actions.destroy_confirm')} , class: 'remove'
    br

  = creation_tag(@group_of_line)