Sha256: 45f3cbab450e115364637b1da9c7d8659dfbd184ee57d4a459d8f3f346a29bc6

Contents?: true

Size: 1.75 KB

Versions: 28

Compression:

Stored size: 1.75 KB

Contents

<div class="panel">
  <%= render_message do %>
    <p><%= Alchemy.t(:homepage_does_not_exist) %></p>
  <% end %>

  <%- if @languages_with_page_tree.size >= 1 -%>
    <%= form_tag(alchemy.copy_language_tree_admin_pages_path) do %>
      <h3><%= Alchemy.t(:copy_language_tree_heading) %></h3>
      <p><%= Alchemy.t(:want_to_make_copy_of_existing_language) %></p>
      <div class="input select">
        <%= label_tag('languages[old_lang_id]', Alchemy.t('Language tree'), class: 'control-label') %>
        <%= select_tag("languages[old_lang_id]", options_for_select(@languages_with_page_tree.map{ |l| [l.name, l.id] }), is: "alchemy-select") %>
        <%= hidden_field_tag("languages[new_lang_id]", @language.id) %>
      </div>
      <div class="submit">
        <%= button_tag Alchemy.t(:copy) %>
      </div>
    <% end %>
  <%- end -%>

  <%= alchemy_form_for([:admin, Alchemy::Page.new], id: 'create_language_tree') do |form| %>
    <% if @languages_with_page_tree.size >= 1 %>
      <h3><%= Alchemy.t(:create_language_tree_heading) %></h3>
      <p><%= Alchemy.t(:want_to_create_new_language) %></p>
    <% end %>
    <%= form.input :name, input_html: {value: @language.frontpage_name} %>
    <%= form.input :page_layout,
      collection: @page_layouts,
      selected: @language.page_layout,
      label: Alchemy.t(:page_type),
      include_blank: Alchemy.t('Please choose'),
      required: true,
      input_html: {is: 'alchemy-select'} %>
    <%= form.hidden_field :language_id, value: @language.id %>
    <%= form.hidden_field :language_code, value: @language.code %>
    <%= form.hidden_field :language_root, value: true %>
    <%= form.hidden_field :public, value: Alchemy::Language.all.size == 1 %>
    <%= form.submit Alchemy.t(:create), autofocus: true %>
  <% end %>
</div>

Version data entries

28 entries across 28 versions & 1 rubygems

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