Class: Decidim::Admin::OrganizationForm

Inherits:
Form
  • Object
show all
Includes:
TranslatableAttributes
Defined in:
app/forms/decidim/admin/organization_form.rb

Overview

A form object used to update the current organization from the admin dashboard.

Instance Method Summary collapse

Instance Method Details

#machine_translation_prioritiesObject



51
52
53
54
55
56
57
58
# File 'app/forms/decidim/admin/organization_form.rb', line 51

def machine_translation_priorities
  Decidim::Organization::AVAILABLE_MACHINE_TRANSLATION_DISPLAY_PRIORITIES.map do |priority|
    [
      priority,
      I18n.t("activemodel.attributes.organization.machine_translation_display_priority_#{priority}")
    ]
  end
end