Sha256: 305fc9bc22f61dd83229b5a076b365c5003870c2d6d5f23b3526a49422e26f98

Contents?: true

Size: 1.14 KB

Versions: 64

Compression:

Stored size: 1.14 KB

Contents

<%= simple_form_for [main_app, curation_concern],
                    html: { multipart: true },
                    wrapper_mappings: { multifile: :horizontal_file_input } do |f| %>
  <div class="row">
    <div class="col-md-6">
      <fieldset class="required">
        <legend>Your File&#8217;s Title</legend>
        <span class="control-label">
          <%= label_tag 'file_set[title][]', 'Title',  class: "string optional" %>
        </span>
        <%= text_field_tag 'file_set[title][]', curation_concern.title.first, class: 'form-control' %>
      </fieldset>
      <fieldset class="required">
        <legend>
          Attach Your File
        </legend>
        <%= f.input :files, as: :multifile %>
      </fieldset>
    </div>

    <div class="col-md-6">
      <%= render "form_permission", f: f %>
    </div>
  </div>

  <div class="row">
    <div class="col-md-12 form-actions">
      <%= f.submit(
        (curation_concern.persisted? ? "Update Attached File" : %(Attach to #{parent.human_readable_type})),
        class: 'btn btn-primary'
      ) %>
      <%= link_to 'Cancel', parent_path(parent), class: 'btn btn-link' %>
    </div>
  </div>
<% end %>

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
curation_concerns-0.7.0 app/views/curation_concerns/file_sets/_form.html.erb
curation_concerns-0.6.0 app/views/curation_concerns/file_sets/_form.html.erb
curation_concerns-0.5.0 app/views/curation_concerns/file_sets/_form.html.erb
curation_concerns-0.4.0 app/views/curation_concerns/file_sets/_form.html.erb