Sha256: df87c517ae3970f9fedddfb851d50d0942bf9ab3f1135f16e71a99f2611e6206

Contents?: true

Size: 1.59 KB

Versions: 12

Compression:

Stored size: 1.59 KB

Contents

<%= alchemy_form_for [:admin, @page], class: 'edit_page' do |f| %>
  <%= f.input :page_layout,
    collection: @page_layouts,
    label: page_layout_label(@page),
    include_blank: Alchemy.t('Please choose'),
    input_html: {class: 'alchemy_selectbox'} %>

  <div class="input check_boxes">
    <label class="control-label"><%= Alchemy.t(:page_status) %></label>
    <div class="control_group">
      <%= render 'alchemy/admin/pages/publication_fields' %>
      <%= page_status_checkbox(@page, :visible) %>
      <%= page_status_checkbox(@page, :restricted) %>
      <% if configuration(:sitemap)['show_flag'] %>
        <%= page_status_checkbox(@page, :sitemap) %>
      <% end %>
    </div>
  </div>

  <%= 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} %>

  <div class="input check_boxes">
    <label class="control-label"><%= Alchemy.t(:search_engines) %></label>
    <div class="control_group">
      <%= page_status_checkbox(@page, :robot_index) %>
      <%= page_status_checkbox(@page, :robot_follow) %>
    </div>
  </div>

  <%= f.input :meta_description,
    as: 'text',
    input_html: {'data-alchemy-char-counter' => 160} %>
  <%= f.input :meta_keywords,
    as: 'text',
    hint: Alchemy.t('pages.update.comma_seperated') %>

  <% if @page.taggable? %>
    <div class="input string autocomplete_tag_list">
      <%= f.label :tag_list %>
      <%= render 'alchemy/admin/partials/autocomplete_tag_list', f: f %>
    </div>
  <% end %>

  <%= f.submit Alchemy.t(:save) %>
<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
alchemy_cms-4.3.2 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-4.2.4 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-4.3.1 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-4.2.3 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-4.3.0 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-4.2.2 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-4.1.2 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-4.1.1 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-4.2.1 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-4.2.0 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-4.2.0.rc1 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-4.1.0 app/views/alchemy/admin/pages/_form.html.erb