Sha256: a1dc4f42ea60722ef3c09c1c453d19328465e214c09eb16557c6eff727042c9f

Contents?: true

Size: 1000 Bytes

Versions: 28

Compression:

Stored size: 1000 Bytes

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 %>
  <% end %>
  <%= f.input :frontpage_name %>
  <%= f.input :page_layout,
    collection: Alchemy::PageLayout.all,
    label_method: ->(p) { Alchemy::Page.human_layout_name(p['name']) },
    value_method: ->(p) { p['name'] },
    input_html: {is: 'alchemy-select'} %>
  <%= f.input :public %>
  <%= f.input :default %>
  <%= f.hidden_field :site_id %>
  <%= f.submit Alchemy.t(:save) %>
<% end %>

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
alchemy_cms-7.3.4 app/views/alchemy/admin/languages/_form.html.erb
alchemy_cms-7.3.3 app/views/alchemy/admin/languages/_form.html.erb
alchemy_cms-7.3.2 app/views/alchemy/admin/languages/_form.html.erb
alchemy_cms-7.2.7 app/views/alchemy/admin/languages/_form.html.erb
alchemy_cms-7.3.1 app/views/alchemy/admin/languages/_form.html.erb
alchemy_cms-7.3.0 app/views/alchemy/admin/languages/_form.html.erb
alchemy_cms-7.2.6 app/views/alchemy/admin/languages/_form.html.erb
alchemy_cms-7.2.5 app/views/alchemy/admin/languages/_form.html.erb
alchemy_cms-7.1.12 app/views/alchemy/admin/languages/_form.html.erb
alchemy_cms-7.2.4 app/views/alchemy/admin/languages/_form.html.erb
alchemy_cms-7.1.11 app/views/alchemy/admin/languages/_form.html.erb
alchemy_cms-7.2.3 app/views/alchemy/admin/languages/_form.html.erb
alchemy_cms-7.1.10 app/views/alchemy/admin/languages/_form.html.erb
alchemy_cms-7.2.2 app/views/alchemy/admin/languages/_form.html.erb
alchemy_cms-7.1.9 app/views/alchemy/admin/languages/_form.html.erb
alchemy_cms-7.2.1 app/views/alchemy/admin/languages/_form.html.erb
alchemy_cms-7.1.8 app/views/alchemy/admin/languages/_form.html.erb
alchemy_cms-7.1.7 app/views/alchemy/admin/languages/_form.html.erb
alchemy_cms-7.1.6 app/views/alchemy/admin/languages/_form.html.erb
alchemy_cms-7.1.5 app/views/alchemy/admin/languages/_form.html.erb