diff options
| author | Xinhui | 2016-11-28 12:05:45 +0100 |
|---|---|---|
| committer | Xinhui | 2016-11-28 12:05:50 +0100 |
| commit | 61653806b8d977eef4d565040cc7ea86cb9fa9c9 (patch) | |
| tree | 8207d82f01e077a2e3c1b83164a463680fcdfd97 /app/views/line_footnotes | |
| parent | 9fb08c0de8278d4a72103e760350d76adb7a406f (diff) | |
| download | chouette-core-61653806b8d977eef4d565040cc7ea86cb9fa9c9.tar.bz2 | |
LineFootnotesController
Refs #2036
Diffstat (limited to 'app/views/line_footnotes')
| -rw-r--r-- | app/views/line_footnotes/_form.html.slim | 15 | ||||
| -rw-r--r-- | app/views/line_footnotes/edit.html.slim | 3 |
2 files changed, 18 insertions, 0 deletions
diff --git a/app/views/line_footnotes/_form.html.slim b/app/views/line_footnotes/_form.html.slim new file mode 100644 index 000000000..9eb4e1a70 --- /dev/null +++ b/app/views/line_footnotes/_form.html.slim @@ -0,0 +1,15 @@ += semantic_form_for [@referential, @line], url: referential_line_footnotes_path do |form| + = form.inputs do + .footnotes_block + h3 = t("footnotes.index.title") + + #footnotes + = form.semantic_fields_for :footnotes do |f| + = render "footnotes/footnote_fields", f: f + + .add_footnote + = link_to_add_association t("footnotes.actions.add_footnote"), form, :footnotes , :partial => "footnotes/footnote_fields", :"data-association-insertion-method" => "append", :"data-association-insertion-node" => "div#footnotes", class: 'add' + + = form.actions do + = form.action :submit, as: :button + = form.action :cancel, as: :link diff --git a/app/views/line_footnotes/edit.html.slim b/app/views/line_footnotes/edit.html.slim new file mode 100644 index 000000000..f09d99e6d --- /dev/null +++ b/app/views/line_footnotes/edit.html.slim @@ -0,0 +1,3 @@ += title_tag t('lines.edit.title', line: @line.name) + += render 'form' |
