<%= 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.label :icon_files, 'Icons' %>
No files selected
<%= f.submit 'Save', class: 'btn btn-success' %>  or <%= link_to 'Cancel', path_after_create_package, class: 'text-danger' %>
<% end %>
<% content_for :script do %> <% end %>