Sha256: af7bfbc64d946f5b74a3e0c654670c51fe78adc12ff788a022e9273fe0daeaf8

Contents?: true

Size: 1.65 KB

Versions: 55

Compression:

Stored size: 1.65 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 %>
        <%= visibility_badge(Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_PUBLIC) %>
      </label>
      <label class="radio">
        <%= f.radio_button :visibility, Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_AUTHENTICATED %>
        <%= visibility_badge(Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_AUTHENTICATED) %>
      </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 %>
        <%= visibility_badge(Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_PRIVATE) %>
      </label>
    </div>
  </fieldset>
<% end %>

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
hyrax-2.9.6 app/views/hyrax/base/_form_permission.html.erb
hyrax-2.9.5 app/views/hyrax/base/_form_permission.html.erb
hyrax-2.9.4 app/views/hyrax/base/_form_permission.html.erb
hyrax-2.9.3 app/views/hyrax/base/_form_permission.html.erb
hyrax-2.9.2 app/views/hyrax/base/_form_permission.html.erb
hyrax-2.9.1 app/views/hyrax/base/_form_permission.html.erb
hyrax-2.9.0 app/views/hyrax/base/_form_permission.html.erb
hyrax-2.8.0 app/views/hyrax/base/_form_permission.html.erb
hyrax-2.7.2 app/views/hyrax/base/_form_permission.html.erb
hyrax-2.7.1 app/views/hyrax/base/_form_permission.html.erb
hyrax-2.7.0 app/views/hyrax/base/_form_permission.html.erb
hyrax-2.6.0 app/views/hyrax/base/_form_permission.html.erb
hyrax-2.5.1 app/views/hyrax/base/_form_permission.html.erb
hyrax-2.5.0 app/views/hyrax/base/_form_permission.html.erb
hyrax-3.0.0.pre.beta2 app/views/hyrax/base/_form_permission.html.erb
hyrax-2.4.1 app/views/hyrax/base/_form_permission.html.erb
hyrax-3.0.0.pre.beta1 app/views/hyrax/base/_form_permission.html.erb
hyrax-2.4.0 app/views/hyrax/base/_form_permission.html.erb
hyrax-2.3.3 app/views/hyrax/base/_form_permission.html.erb
hyrax-2.3.2 app/views/hyrax/base/_form_permission.html.erb