parsley/app/views/notes/_form.html.erb

14 lines
404 B
Plaintext
Raw Normal View History

2016-10-14 12:19:00 -05:00
<%= form_for(note) do |f| %>
<%= render partial: 'shared/error_list', locals: {model: @note} %>
<div class="form-group">
<%= f.label :content, 'Note', class: 'control-label' %>
<%= f.text_field :content, class: 'form-control' %>
</div>
<div class="actions">
<%= f.submit class: 'btn btn-primary' %>
<%= link_to 'Back', notes_path, class: 'btn btn-default' %>
</div>
<% end %>