Sha256: 87fc34035b3a150080bee4815626eb06fc0d4a05d63ef24db5d2536e4140bef7

Contents?: true

Size: 855 Bytes

Versions: 34

Compression:

Stored size: 855 Bytes

Contents

<%= alchemy_form_for([:admin, @page]) do |f| %>
  <% if @page.parent_id || @page.layoutpage %>
    <%= f.hidden_field(:parent_id) %>
  <% else %>
    <% @page.parent = @current_language.root_page %>
    <%= f.input :parent_id,
      collection: @current_language.pages.contentpages,
      label_method: :name,
      value_method: :id,
      input_html: { class: "alchemy_selectbox" } %>
  <% end %>
  <%= f.hidden_field(:language_id) %>
  <%= f.hidden_field(:layoutpage) %>
  <%= f.input :page_layout,
    collection: @page_layouts,
    label: Alchemy.t(:page_type),
    include_blank: @page_layouts.length == 1 ? nil : Alchemy.t('Please choose'),
    required: true,
    selected: @page_layouts.length == 1 ? @page_layouts.first : nil,
    input_html: {class: 'alchemy_selectbox'} %>
  <%= f.input :name %>
  <%= f.submit Alchemy.t(:create) %>
<% end %>

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
alchemy_cms-6.0.0.pre.rc6 app/views/alchemy/admin/pages/_new_page_form.html.erb
alchemy_cms-5.2.7 app/views/alchemy/admin/pages/_new_page_form.html.erb
alchemy_cms-5.2.6 app/views/alchemy/admin/pages/_new_page_form.html.erb
alchemy_cms-5.1.10 app/views/alchemy/admin/pages/_new_page_form.html.erb
alchemy_cms-6.0.0.pre.rc5 app/views/alchemy/admin/pages/_new_page_form.html.erb
alchemy_cms-6.0.0.pre.rc4 app/views/alchemy/admin/pages/_new_page_form.html.erb
alchemy_cms-6.0.0.pre.rc3 app/views/alchemy/admin/pages/_new_page_form.html.erb
alchemy_cms-5.2.5 app/views/alchemy/admin/pages/_new_page_form.html.erb
alchemy_cms-5.1.9 app/views/alchemy/admin/pages/_new_page_form.html.erb
alchemy_cms-5.2.4 app/views/alchemy/admin/pages/_new_page_form.html.erb
alchemy_cms-5.1.8 app/views/alchemy/admin/pages/_new_page_form.html.erb
alchemy_cms-5.1.7 app/views/alchemy/admin/pages/_new_page_form.html.erb
alchemy_cms-5.2.3 app/views/alchemy/admin/pages/_new_page_form.html.erb
alchemy_cms-6.0.0.pre.rc2 app/views/alchemy/admin/pages/_new_page_form.html.erb
alchemy_cms-5.1.6 app/views/alchemy/admin/pages/_new_page_form.html.erb
alchemy_cms-5.2.2 app/views/alchemy/admin/pages/_new_page_form.html.erb
alchemy_cms-5.1.5 app/views/alchemy/admin/pages/_new_page_form.html.erb
alchemy_cms-6.0.0.pre.rc1 app/views/alchemy/admin/pages/_new_page_form.html.erb
alchemy_cms-6.0.0.pre.b6 app/views/alchemy/admin/pages/_new_page_form.html.erb
alchemy_cms-6.0.0.pre.b5 app/views/alchemy/admin/pages/_new_page_form.html.erb