Sha256: 3c79242d11356868d99b7df944a68be07ac3a02d77575dcd937bffef86b600f5

Contents?: true

Size: 1.83 KB

Versions: 29

Compression:

Stored size: 1.83 KB

Contents

<% provide :page_header do %>
  <h1>Manage Embargoes for  <%= curation_concern %><span class="human_readable_type">(<%= curation_concern.human_readable_type %>)</span></h1>
<% end %>

<h2>Current Embargo</h2>
<%= simple_form_for [main_app, curation_concern] do |f| %>
  <fieldset id="set-access-controls">
    <section class="help-block">
      <p>
        <% if curation_concern.embargo_release_date %>
          <strong>This work is under embargo.</strong>
        <% else %>
          <strong>This work is not currently under embargo.</strong> If you would like to apply and embargo, provide the information here.
        <% end %>
      </p>
    </section>

    <div class="form-group">
      <input type="hidden" name="<%= f.object_name %>[visibility]" value="<%= Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_EMBARGO %>" />
      <%= render "curation_concerns/base/form_permission_embargo", curation_concern: curation_concern, f: f  %>
    </div>
  </fieldset>

  <div class="row">
    <div class="col-md-12 form-actions">
      <% if curation_concern.embargo_release_date %>
        <%= f.submit "Update Embargo", class: 'btn btn-primary' %>
        <%= link_to "Deactivate Embargo", embargo_path(curation_concern), method: :delete, class: 'btn btn-danger' %>
      <% else %>
        <%= f.submit "Apply Embargo", class: 'btn btn-primary' %>
      <% end %>
      <%= link_to 'Cancel and manage all embargoes', embargoes_path, class: 'btn btn-default' %>
      <%= link_to "Return to editing this #{curation_concern.human_readable_type}", [:edit, curation_concern], class: 'btn btn-default' %>
    </div>
  </div>
<% end %>

<h2>Past Embargoes</h2>
<% if curation_concern.embargo_history.empty? %>
  This <%= curation_concern.human_readable_type %> has never had embargoes applied to it.
<% else %>
  <%= render partial: "embargo_history" %>
<% end %>

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
curation_concerns-1.0.0.beta3 app/views/embargoes/edit.html.erb
curation_concerns-1.0.0.beta2 app/views/embargoes/edit.html.erb
curation_concerns-1.0.0.beta1 app/views/embargoes/edit.html.erb
curation_concerns-0.14.0 app/views/embargoes/edit.html.erb
curation_concerns-0.14.0.pre4 app/views/embargoes/edit.html.erb
curation_concerns-0.14.0.pre3 app/views/embargoes/edit.html.erb
curation_concerns-0.14.0.pre2 app/views/embargoes/edit.html.erb
curation_concerns-0.14.0.pre1 app/views/embargoes/edit.html.erb
curation_concerns-0.13.1 app/views/embargoes/edit.html.erb
curation_concerns-0.13.0 app/views/embargoes/edit.html.erb
curation_concerns-0.12.0 app/views/embargoes/edit.html.erb
curation_concerns-0.12.0.pre9 app/views/embargoes/edit.html.erb
curation_concerns-0.12.0.pre8 app/views/embargoes/edit.html.erb
curation_concerns-0.12.0.pre7 app/views/embargoes/edit.html.erb
curation_concerns-0.12.0.pre6 app/views/embargoes/edit.html.erb
curation_concerns-0.12.0.pre5 app/views/embargoes/edit.html.erb
curation_concerns-0.12.0.pre4 app/views/embargoes/edit.html.erb
curation_concerns-0.12.0.pre3 app/views/embargoes/edit.html.erb
curation_concerns-0.12.0.pre2 app/views/embargoes/edit.html.erb
curation_concerns-0.12.0.pre1 app/views/embargoes/edit.html.erb