<% provide :page_header do %>

Manage Embargoes for <%= curation_concern %>(<%= curation_concern.human_readable_type %>)

<% end %>

Current Embargo

<%= simple_form_for [:curation_concerns, curation_concern] do |f| %>

<% if curation_concern.embargo_release_date %> This work is under embargo. <% else %> This work is not currently under embargo. If you would like to apply and embargo, provide the information here. <% end %>

<%= render "curation_concerns/base/form_permission_embargo", curation_concern: curation_concern, f: f %>
<% 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_polymorphic_path([:curation_concerns, curation_concern]), class: 'btn btn-default' %>
<% end %>

Past Embargoes

<% 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 %>