scube-server/app/views/tracks/_form.html.haml
Thibault Jouan 5e1757aff9 Improve tracks CRUD
* Add index, edit and update action;
* Add _form partial;
* Add link to tracks/index in nav;
* Refactor specs.
2015-05-01 12:09:29 +00:00

14 lines
301 B
Plaintext

= form_for @track, html: { multipart: true } do |t|
%table
%tbody
%tr
%th= t.label :name
%td= t.text_field :name
- if @track.new_record?
%tr
%th= t.label :file
%td= t.file_field :file
%tfoot
%tr
%td= t.submit submit_text