Class: Hyrax::Forms::Widgets::AdminSetEmbargoPeriod

Inherits:
Object
  • Object
show all
Defined in:
app/forms/hyrax/forms/widgets/admin_set_embargo_period.rb

Instance Method Summary collapse

Instance Method Details

#optionsObject

Visibility options for permission templates



6
7
8
9
10
11
12
# File 'app/forms/hyrax/forms/widgets/admin_set_embargo_period.rb', line 6

def options
  i18n_prefix = "hyrax.admin.admin_sets.form_visibility.release.varies.embargo"
  [[Hyrax::PermissionTemplate::RELEASE_TEXT_VALUE_6_MONTHS, I18n.t('.6mos', scope: i18n_prefix)],
   [Hyrax::PermissionTemplate::RELEASE_TEXT_VALUE_1_YEAR, I18n.t('.1yr', scope: i18n_prefix)],
   [Hyrax::PermissionTemplate::RELEASE_TEXT_VALUE_2_YEARS, I18n.t('.2yrs', scope: i18n_prefix)],
   [Hyrax::PermissionTemplate::RELEASE_TEXT_VALUE_3_YEARS, I18n.t('.3yrs', scope: i18n_prefix)]]
end