Sha256: 8db6e139303ee1e4e773fb3aa86f43352be6c6adda5b594238776c62b8985ad7

Contents?: true

Size: 1.51 KB

Versions: 45

Compression:

Stored size: 1.51 KB

Contents

<div id="versioning_display" class="tab-pane">
  <h2>Versions</h2>
  <%= simple_form_for [main_app, curation_concern], html: { multipart: true } do |f| %>
    <%= hidden_field_tag('redirect_tab', 'versions') %>
    <h3>Upload New Version</h3>
    <%= f.input :files, as: :multifile, wrapper: :vertical_file_input, required: true %>
    <%= f.button :button, name: "update_versioning", id: "upload_submit", onclick: "confirmation_needed = false;", class: "btn btn-primary" do %>
<i class="glyphicon glyphicon-upload"></i> Upload New Version
<% end %>
  <% end %>

  <%= form_for [main_app, curation_concern],
               html: { class: 'edit_file_set_previous_version' } do |f| %>
    <h3>Restore Previous Version</h3>
    <% @version_list.each do |version| %>
      <div class="radio">
        <label class="radio <%= version.current? ? 'disabled' : '' %>">
          <%= radio_button_tag(:revision, version.label, false, disabled: version.current?, required: 'required') %>
          <%= version.current? ? 'Current version:' : 'Restore from' %>
          <%= version.created %> [by <%= version.committer %>]
        </label>
      </div>
    <% end %>
    <div id="save_version_note" class="alert hide">You must click &quot;Save Revision&quot; to revert a previous version of this file</div>
    <%= f.button '<i class="glyphicon glyphicon-save"></i> Save Revision'.html_safe, type: 'submit', class: 'btn btn-primary', onclick: "confirmation_needed = false;", name: "revert_submit", id: "revert_submit" %>
  <% end %>
</div> <!-- /row -->

Version data entries

45 entries across 45 versions & 3 rubygems

Version Path
hyrax-1.1.1 app/views/hyrax/file_sets/_versioning.html.erb
hyrax-2.0.3 app/views/hyrax/file_sets/_versioning.html.erb
hyrax-2.1.0 app/views/hyrax/file_sets/_versioning.html.erb
hyrax-2.1.0.rc4 app/views/hyrax/file_sets/_versioning.html.erb
hyrax-2.1.0.rc3 app/views/hyrax/file_sets/_versioning.html.erb
hyrax-2.1.0.rc2 app/views/hyrax/file_sets/_versioning.html.erb
hyrax-2.1.0.rc1 app/views/hyrax/file_sets/_versioning.html.erb
hyrax-1.1.0 app/views/hyrax/file_sets/_versioning.html.erb
hyrax-2.1.0.beta2 app/views/hyrax/file_sets/_versioning.html.erb
hyrax-2.0.2 app/views/hyrax/file_sets/_versioning.html.erb
hyrax-2.1.0.beta1 app/views/hyrax/file_sets/_versioning.html.erb
hyrax-2.0.1 app/views/hyrax/file_sets/_versioning.html.erb
hyrax-2.0.0 app/views/hyrax/file_sets/_versioning.html.erb
hyrax-2.0.0.rc3 app/views/hyrax/file_sets/_versioning.html.erb
hyrax-2.0.0.rc2 app/views/hyrax/file_sets/_versioning.html.erb
hyrax-2.0.0.rc1 app/views/hyrax/file_sets/_versioning.html.erb
sufia-7.4.1 app/views/curation_concerns/file_sets/_versioning.html.erb
hyrax-1.0.5 app/views/hyrax/file_sets/_versioning.html.erb
hyrax-2.0.0.beta5 app/views/hyrax/file_sets/_versioning.html.erb
hyrax-2.0.0.beta4 app/views/hyrax/file_sets/_versioning.html.erb