aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/line_footnotes/edit.html.slim
blob: 4a0fbb93143b709e3debf87dad4514f2f461321a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/ PageHeader
= pageheader 'ligne',
             "Notes sur la ligne #{@line.name}",
             'Lorem ipsum dolor sit amet',
             (@line.footnotes.any? ? t('last_update', time: l(@line.footnotes.last.updated_at, format: :short)) : '')

/ PageContent
.page_content
  .container-fluid
    .row
      .col-lg-12
        .row
          = simple_form_for [@referential, @line], url: referential_line_footnotes_path, html: {id: 'notes_form'} do |form|


            = form.simple_fields_for :footnotes do |f|
              = render 'footnote_fields', f: f

            .links.nested-linker
              = link_to_add_association t('footnotes.actions.add_footnote'), form, :footnotes, class: 'btn btn-outline-primary'

            = form.button :submit, t('actions.submit'), class: 'btn btn-default formSubmitr', form: 'notes_form'