Sha256: 431cffbbf68f37d3ed1eadfcc527f6b2a1d80b0e12fb5846f8b4bd7dcf527ace
Contents?: true
Size: 1.07 KB
Versions: 55
Compression:
Stored size: 1.07 KB
Contents
<%= alchemy_form_for [alchemy, :admin, @language] do |f| %> <%= f.input :name, autofocus: true %> <%= f.input :language_code, placeholder: Alchemy.t(:language_code_placeholder) %> <%= f.input :country_code, as: 'string', placeholder: Alchemy.t(:country_code_placeholder), hint: Alchemy.t(:country_code_foot_note) %> <% if @language.errors[:locale].present? || @language.locale.present? %> <%= f.input :locale, collection: @language.matching_locales.presence || ::I18n.available_locales, selected: @language.locale || @language.language_code || ::I18n.default_locale.to_s, input_html: {class: 'alchemy_selectbox'} %> <% end %> <%= f.input :frontpage_name %> <%= f.input :page_layout, collection: Alchemy::PageLayout.all, label_method: ->(p) { Alchemy::PageLayout.human_layout_name(p['name']) }, value_method: ->(p) { p['name'] }, input_html: {class: 'alchemy_selectbox'} %> <%= f.input :public %> <%= f.input :default %> <%= f.hidden_field :site_id, value: Alchemy::Site.current.id %> <%= f.submit Alchemy.t(:save) %> <% end %>
Version data entries
55 entries across 55 versions & 1 rubygems