<%= alchemy_form_for [:admin, @page], class: 'edit_page' do |f| %> <%= f.input :page_layout, collection: @page_layouts, label: @page.layout_description.blank? ? (%( ) + _t(:page_type)).html_safe : _t(:page_type), include_blank: false, input_html: {class: 'alchemy_selectbox'} %>
<% if configuration(:sitemap)['show_flag'] %> <% end %>

<%= _t(:names) %>

<%= f.input :name, autofocus: true %> <%= f.input :urlname, as: 'string', input_html: {value: @page.slug} %> <%= f.input :title, input_html: {'data-alchemy-char-counter' => 60} %>

<%= _t(:meta_data) %>

<%= f.input :meta_description, as: 'text', input_html: {'data-alchemy-char-counter' => 160} %> <%= f.input :meta_keywords, as: 'text', hint: _t('pages.update.comma_seperated') %> <% if @page.taggable? %>
<%= f.label :tag_list %> <%= render 'alchemy/admin/partials/autocomplete_tag_list', f: f %>
<% end %> <%= f.submit _t(:save) %> <% end %>