Class: Hyrax::Forms::Widgets::AdminSetEmbargoPeriod
- Inherits:
-
Object
- Object
- Hyrax::Forms::Widgets::AdminSetEmbargoPeriod
- Defined in:
- app/forms/hyrax/forms/widgets/admin_set_embargo_period.rb
Instance Method Summary collapse
-
#options ⇒ Object
Visibility options for permission templates.
Instance Method Details
#options ⇒ Object
Visibility options for permission templates
7 8 9 10 11 12 13 |
# File 'app/forms/hyrax/forms/widgets/admin_set_embargo_period.rb', line 7 def 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 |