Sha256: f3f162225ade15bbba35c951ab0d0964cd641ca079f1640fd9432e4aac495c28

Contents?: true

Size: 1.25 KB

Versions: 13

Compression:

Stored size: 1.25 KB

Contents

<%= simple_form_for [:curation_concern, curation_concern] do |f| %>
  <div class="row">
    <div class="span6">
      <fieldset class="required">
        <legend>Your File&#8217;s Title</legend>
        <span class="control-label">
          <label class="string optional" for="generic_file_title">Title</label>
        </span>
        <%= text_field_tag 'generic_file[title]', curation_concern.title.first,
                    input_html: { class: 'input-xlarge' }
        %>
      </fieldset>
      <fieldset class="required">
        <legend>
          Attach Your File
          <small>A PDF copy is preferred.</small>
        </legend>
          <%= f.input :file,
                      as: :file,
                      label: 'Upload a file'
          %>
      </fieldset>
    </div>

    <div class="span6">
      <%= render "form_permission", curation_concern: curation_concern, f: f %>
    </div>
  </div>

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
curate-0.6.6 app/views/curation_concern/generic_files/_form.html.erb
curate-0.6.5 app/views/curation_concern/generic_files/_form.html.erb
curate-0.6.4 app/views/curation_concern/generic_files/_form.html.erb
curate-0.6.3 app/views/curation_concern/generic_files/_form.html.erb
curate-0.6.1 app/views/curation_concern/generic_files/_form.html.erb
curate-0.6.0 app/views/curation_concern/generic_files/_form.html.erb
curate-0.5.6 app/views/curation_concern/generic_files/_form.html.erb
curate-0.5.5 app/views/curation_concern/generic_files/_form.html.erb
curate-0.5.4 app/views/curation_concern/generic_files/_form.html.erb
curate-0.5.2 app/views/curation_concern/generic_files/_form.html.erb
curate-0.5.1 app/views/curation_concern/generic_files/_form.html.erb
curate-0.5.0 app/views/curation_concern/generic_files/_form.html.erb
curate-0.4.2 app/views/curation_concern/generic_files/_form.html.erb