blob: 8138c13837cd8b844635421f576b36deca1252e8 (
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
  | 
/ PageHeader
= pageheader 'ligne',
             "Notes sur la ligne #{@line.name}",
             'Lorem ipsum dolor sit amet',
             '',
             (policy(@line).update_footnote? ? link_to(t('actions.edit'), edit_referential_line_footnotes_path(@referential, @line), class: 'btn btn-primary') : '')
/ PageContent
.page_content
  .container-fluid
    .row
      - if @line.footnotes.any?
        - @line.footnotes.each do |footnote|
          .col-lg-4.col-md-4.col-sm-6.col-xs-12
            .panel.panel-default
              .panel-heading = footnote.code
              .panel-body
                p = footnote.label
              .panel-footer.text-right
                p.text-muted
                  em.small = "Dernière mise à jour le #{l(footnote.updated_at, format: :short)}"
      - else
        = replacement_msg 'Aucune note ne correspond à votre recherche'
      
  |