Sha256: 1fec9832284b775e39c3e9c0810e2223560e3c4fd613707e453138da02ef1324

Contents?: true

Size: 1.8 KB

Versions: 19

Compression:

Stored size: 1.8 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 id="set-access-controls">
    <legend>
      Visibility
      <small>Who should be able to view or download this content?</small>
      <span id="visibility_tooltip" class="h5">
        <%= help_link 'visibility', 'Visibility', 'Usage information for visibility' %>
      </span>
    </legend>

    <%= render "form_permission_note" %>

    <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') %>
      </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

19 entries across 19 versions & 1 rubygems

Version Path
curation_concerns-1.0.0.beta3 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-1.0.0.beta2 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-1.0.0.beta1 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-0.14.0 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-0.14.0.pre4 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-0.14.0.pre3 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-0.14.0.pre2 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-0.14.0.pre1 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-0.13.1 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-0.13.0 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-0.12.0 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-0.12.0.pre9 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-0.12.0.pre8 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-0.12.0.pre7 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-0.12.0.pre6 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-0.12.0.pre5 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-0.12.0.pre4 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-0.12.0.pre3 app/views/curation_concerns/base/_form_permission.html.erb
curation_concerns-0.12.0.pre2 app/views/curation_concerns/base/_form_permission.html.erb