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.7.8 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-1.7.7 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-2.0.0 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-2.0.0.rc2 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-1.7.6 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-1.7.5 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-1.7.4 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-1.7.3 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-1.7.2 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-2.0.0.rc1 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-1.7.1 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-1.7.0 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-1.7.0.beta1 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-1.6.3 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-1.6.2 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-1.6.1 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-1.6.0 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-1.5.0 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-1.4.0 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-1.3.3 app/views/curation_concerns/base/_form_permission.html.erb