<%= alchemy_form_for([:admin, @page]) do |f| %>
  <%= f.hidden_field(:parent_id) %>
  <%= 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 %>
