Sha256: 160893f6b44cb411f60a53563b3ea43416044db97def79537f548df4f884c843

Contents?: true

Size: 1.74 KB

Versions: 13

Compression:

Stored size: 1.74 KB

Contents

<% cc_type = curation_concern.human_readable_type %>

<% provide :page_header do %>
  <h1><%= t('.manage_embargoes_html', cc: curation_concern, cc_type: cc_type) %></h1>
<% end %>

<h2><%= t('.header.current') %></h2>
<%= simple_form_for [main_app, curation_concern] do |f| %>
  <fieldset class="set-access-controls">
    <section class="help-block">
      <p>
        <% if curation_concern.embargo_release_date %>
          <%= t('.embargo_true_html',  cc: cc_type) %>
        <% else %>
          <%= t('.embargo_false_html', cc: cc_type) %>
        <% end %>
      </p>
    </section>

    <div class="form-group">
      <input type="hidden" name="<%= f.object_name %>[visibility]" value="<%= Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_EMBARGO %>" />
      <%= render 'hyrax/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 t('.embargo_update'), class: 'btn btn-primary' %>
        <%= link_to t('.embargo_deactivate'), embargo_path(curation_concern), method: :delete, class: 'btn btn-danger' %>
      <% else %>
        <%= f.submit t('.embargo_apply'), class: 'btn btn-primary' %>
      <% end %>
      <%= link_to t('.embargo_cancel'), embargoes_path, class: 'btn btn-default' %>
      <%= link_to t('.embargo_return', cc: cc_type), edit_polymorphic_path([main_app, curation_concern]), class: 'btn btn-default' %>
    </div>
  </div>
<% end %>

<h2><%= t('.header.past') %></h2>
<% if curation_concern.embargo_history.empty? %>
  <%= t('.history_empty', cc: cc_type) %>
<% else %>
  <%= render partial: "embargo_history", object: curation_concern.embargo_history %>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
hyrax-2.0.3 app/views/hyrax/embargoes/edit.html.erb
hyrax-2.0.2 app/views/hyrax/embargoes/edit.html.erb
hyrax-2.1.0.beta1 app/views/hyrax/embargoes/edit.html.erb
hyrax-2.0.1 app/views/hyrax/embargoes/edit.html.erb
hyrax-2.0.0 app/views/hyrax/embargoes/edit.html.erb
hyrax-2.0.0.rc3 app/views/hyrax/embargoes/edit.html.erb
hyrax-2.0.0.rc2 app/views/hyrax/embargoes/edit.html.erb
hyrax-2.0.0.rc1 app/views/hyrax/embargoes/edit.html.erb
hyrax-2.0.0.beta5 app/views/hyrax/embargoes/edit.html.erb
hyrax-2.0.0.beta4 app/views/hyrax/embargoes/edit.html.erb
hyrax-2.0.0.beta3 app/views/hyrax/embargoes/edit.html.erb
hyrax-2.0.0.beta2 app/views/hyrax/embargoes/edit.html.erb
hyrax-2.0.0.beta1 app/views/hyrax/embargoes/edit.html.erb