Sha256: afc2eee171825d0b348c849217a3fdc4404b34c34bdb6f3050e3a61ec9714f3e

Contents?: true

Size: 1.72 KB

Versions: 13

Compression:

Stored size: 1.72 KB

Contents

<% cc_type = curation_concern.human_readable_type %>

<% provide :page_header do %>
    <h1><%= t('.manage_leases_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.lease_expiration_date %>
          <%= t('.lease_true_html',  cc: cc_type) %>
        <% else %>
          <%= t('.lease_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_LEASE %>" />
      <%= render 'hyrax/base/form_permission_lease', curation_concern: curation_concern, f: f  %>
    </div>
  </fieldset>

  <div class="row">
    <div class="col-md-12 form-actions">
      <% if curation_concern.lease_expiration_date %>
        <%= f.submit t('.lease_update'), class: 'btn btn-primary' %>
        <%= link_to t('.lease_deactivate'), lease_path(curation_concern), method: :delete, class: 'btn btn-danger' %>
      <% else %>
        <%= f.submit t('.lease_apply'), class: 'btn btn-primary' %>
      <% end %>
      <%= link_to t('.lease_cancel'), leases_path, class: 'btn btn-default' %>
      <%= link_to t('.lease_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.lease_history.empty? %>
  <%= t('.history_empty', cc: cc_type) %>
<% else %>
  <%= render partial: 'lease_history', object: curation_concern.lease_history %>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

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