Sha256: 502ee216bad59d5d1a8e5fa1f007584d76302d14f79f0ecb10168b915cc142dd
Contents?: true
Size: 1.43 KB
Versions: 1
Compression:
Stored size: 1.43 KB
Contents
<div class="row"> <div class="col-md-6"> <%= form_for package, html: { multipart: true } do |f| %> <% if package.errors.any? %> <div class="alert alert-danger"> <ul> <% package.errors.full_messages.each do |message| %> <li><%= message %></li> <% end %> </ul> </div> <% end %> <div class="form-group"> <%= f.label :name %> <%= f.text_field :name, class: 'form-control', placeholder: 'Choose a name' %> </div> <div class="form-group"> <%= f.label :icon_files, 'Icons' %> <div class="card"> <div class="card-block text-center pt-4 pb-4"> <div class="package-files"> <div class="in" id="package-files">No files selected</div> </div> <button class="btn btn-smt btn-custom btn-white btn-file"> Add files ... <%= f.file_field :icon_files, type: :file, multiple: true, class: 'form-control' %> </button> </div> </div> </div> <div class="actions mt-5"> <%= f.submit 'Save', class: 'btn btn-success' %> or <%= link_to 'Cancel', path_after_create_package, class: 'text-danger' %> </div> <% end %> </div> </div> <% content_for :script do %> <script> $(function() { iconly.Package.start('#package_icon_files', '#package-files'); }); </script> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
iconly-1.0.0 | app/views/iconly/packages/_form.html.erb |