Sha256: 5e7eddda8fb1a13de3c55bc934b281aa01b537edbd4a1c33763963229482b3f6

Contents?: true

Size: 1.85 KB

Versions: 16

Compression:

Stored size: 1.85 KB

Contents

<%= alchemy_form_for [:admin, @page], class: 'edit_page' do |f| %>
  <% unless @page.language_root? || @page.layoutpage %>
    <%= render Alchemy::Admin::PageSelect.new(@page.parent) do %>
      <%= f.input :parent_id, required: true %>
    <% end %>
  <% end %>

  <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, :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}, label: Alchemy::Page.human_attribute_name(:slug) %>
  <alchemy-char-counter max-chars="60">
    <%= f.input :title %>
  </alchemy-char-counter>

  <% if Alchemy.enable_searchable %>
    <div class="input check_boxes">
      <label class="control-label"><%= Alchemy.t(:fulltext_search) %></label>
      <div class="control_group">
        <%= page_status_checkbox(@page, :searchable) %>
      </div>
    </div>
  <% end %>

  <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>

  <alchemy-char-counter max-chars="160">
    <%= f.input :meta_description, as: 'text' %>
  </alchemy-char-counter>

  <%= f.input :meta_keywords,
    as: 'text',
    hint: Alchemy.t('pages.update.comma_seperated') %>

  <div class="input string autocomplete_tag_list">
    <%= f.label :tag_list %>
    <%= render 'alchemy/admin/partials/autocomplete_tag_list', f: f %>
  </div>

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
alchemy_cms-7.1.12 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-7.1.11 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-7.1.10 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-7.1.9 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-7.1.8 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-7.1.7 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-7.1.6 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-7.1.5 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-7.1.4 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-7.1.3 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-7.1.2 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-7.1.1 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-7.1.0 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-7.1.0.pre.rc1 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-7.1.0.pre.b2 app/views/alchemy/admin/pages/_form.html.erb
alchemy_cms-7.1.0.pre.b1 app/views/alchemy/admin/pages/_form.html.erb