<%= form_for package, html: { multipart: true } do |f| %>
<% if package.errors.any? %>
<% package.errors.full_messages.each do |message| %>
- <%= message %>
<% end %>
<% end %>
<%= f.label :name %>
<%= f.text_field :name, class: 'form-control', placeholder: 'Choose a name' %>
<%= f.submit 'Save', class: 'btn btn-success' %> or
<%= link_to 'Cancel', path_after_create_package, class: 'text-danger' %>
<% end %>