Module: Backend::DropdownHelper

Defined in:
app/helpers/backend/dropdown_helper.rb

Instance Method Summary collapse

Instance Method Details

#options_for_column_widthsObject



9
10
11
12
13
# File 'app/helpers/backend/dropdown_helper.rb', line 9

def options_for_column_widths
  (1..12).to_a.reverse.map do |i|
    ["#{i}/12", i]
  end
end

#options_for_content_typesObject



3
4
5
6
7
# File 'app/helpers/backend/dropdown_helper.rb', line 3

def options_for_content_types
  Udongo.config.flexible_content.types.map do |content_type|
    [I18n.t("b.msg.content_types.#{content_type}"), "Content#{content_type.to_s.camelcase}"]
  end
end