Sha256: daf285554d98427c0b40375285ab33429ee155718c6f41aa2863420b0ca0df78

Contents?: true

Size: 1.63 KB

Versions: 27

Compression:

Stored size: 1.63 KB

Contents

<% # This is used by works and by FileSet and the layout (col-6 vs col-12) is different for both %>
<% if f.object.embargo_release_date %>
  <%= render 'form_permission_under_embargo', f: f %>
<% elsif f.object.lease_expiration_date %>
  <%= render 'form_permission_under_lease', f: f %>
<% else %>
  <fieldset class="set-access-controls">
    <legend>
      Visibility
      <small>Who should be able to view or download this content?</small>
    </legend>

    <div class="form-group">
      <label class="radio">
        <%= f.radio_button :visibility, Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_PUBLIC %>
        <%= t('curation_concerns.visibility.open.label_html', type: 'work') %>
      </label>
      <label class="radio">
        <%= f.radio_button :visibility, Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_AUTHENTICATED %>
        <%= t('curation_concerns.visibility.authenticated.label_html', institution: t('curation_concerns.institution.name')) %>
      </label>
      <label class="radio">
        <%= f.radio_button :visibility, Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_EMBARGO %>
        <%= render "form_permission_embargo", f: f %>
      </label>
      <label class="radio">
        <%= f.radio_button :visibility, Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_LEASE %>
        <%= render "form_permission_lease", f: f %>
      </label>
      <label class="radio">
        <%= f.radio_button :visibility, Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_PRIVATE %>
        <%= t('curation_concerns.visibility.private.label_html') %>
      </label>
    </div>
  </fieldset>
<% end %>

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
curation_concerns-1.3.2 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-1.3.1 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-1.3.0 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-1.2.0 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-1.1.2 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-1.1.1 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-1.1.0 app/views/curation_concerns/base/_form_permission.html.erb