Sha256: 0e839e258f562f7ebb2d134210de1a84eafd4cb6c2fc99cf4276d804b0423935

Contents?: true

Size: 710 Bytes

Versions: 7

Compression:

Stored size: 710 Bytes

Contents

<%= simple_form_for [main_app, curation_concern], html: { multipart: true } do |f| %>
  <fieldset class="required">
    <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', required: true %>
  </fieldset>

  <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

7 entries across 7 versions & 1 rubygems

Version Path
hyrax-2.1.0 app/views/hyrax/file_sets/_form.html.erb
hyrax-2.1.0.rc4 app/views/hyrax/file_sets/_form.html.erb
hyrax-2.1.0.rc3 app/views/hyrax/file_sets/_form.html.erb
hyrax-2.1.0.rc2 app/views/hyrax/file_sets/_form.html.erb
hyrax-2.1.0.rc1 app/views/hyrax/file_sets/_form.html.erb
hyrax-2.1.0.beta2 app/views/hyrax/file_sets/_form.html.erb
hyrax-2.1.0.beta1 app/views/hyrax/file_sets/_form.html.erb