Sha256: 7e9723d1ae2e5ae5ef836897c767e1effeb1bccf9824cd50f7878432ea7cba93

Contents?: true

Size: 1.79 KB

Versions: 23

Compression:

Stored size: 1.79 KB

Contents

- content_for :sidebar do
  .sidebar
    .content
      %h2 Pages

    %h4 Edit Options
    %nav
      %ul
        %li.active= link_to 'Page Content', '#details', data: {toggle: 'tab'}
        %li= link_to 'Search Optimization', '#seo', data: {toggle: 'tab'}

= autosaving_form_for @page do |f|
  = error_messages_for :page
  .fields.large.tabs
    .tab-pane.active#details
      .form-group
        = f.text_field :title, explanation: 'This is the title that shows up at the top of your page.'

      .form-group= f.tenon_content :content

    .tab-pane#seo= render 'tenon/shared/seo_fields', f: f

  .fields.small
    %h4.box-label Details
    .box
      .form-group.bordered
        = f.super_label :parent_id, 'Parent Page'
        = f.collection_select :parent_id, @potential_parents, :id, :option_title, {:include_blank => "(No Parent)"}

      .form-group.inline.bordered
        = f.check_box :show_in_menu, class: 'tn-checkbox-right'
        = f.super_label :show_in_menu, "Show in Menu?"

      .form-group.inline.bordered
        = f.check_box :show_contact_form, class: 'tn-checkbox-right'
        = f.super_label :show_contact_form, "Show in Contact Form?"

    %h4.box-label Publish Your Page
    .box
      .form-group
        = f.text_field :publish_at, label: "Publish Date", data: {behaviour: 'datetime-picker'}, placeholder: '--'

      .row.content
        - if can?(:publish, @page)
          %button.btn.btn-comp.btn-block.submit Save

        - if can?(:create, Tenon::ItemVersion)
          = save_draft_button(@page)
          .last-autosave

      %hr
      .content
        = clear_draft_link if params[:version]
        = load_draft_link(@page)
        - if @page.persisted?
          = link_to "Delete", @page, data: {method: :delete, confirm: 'Are you sure you want to delete this?'}, class: 'delete-link'

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
tenon-1.0.28 app/views/tenon/pages/_form.html.haml
tenon-1.0.27 app/views/tenon/pages/_form.html.haml
tenon-1.0.26 app/views/tenon/pages/_form.html.haml
tenon-1.0.25 app/views/tenon/pages/_form.html.haml
tenon-1.0.24 app/views/tenon/pages/_form.html.haml
tenon-1.0.23 app/views/tenon/pages/_form.html.haml
tenon-1.0.22 app/views/tenon/pages/_form.html.haml
tenon-1.0.21 app/views/tenon/pages/_form.html.haml
tenon-1.0.20 app/views/tenon/pages/_form.html.haml
tenon-1.0.19 app/views/tenon/pages/_form.html.haml
tenon-1.0.18 app/views/tenon/pages/_form.html.haml
tenon-1.0.17 app/views/tenon/pages/_form.html.haml
tenon-1.0.16 app/views/tenon/pages/_form.html.haml
tenon-1.0.15 app/views/tenon/pages/_form.html.haml
tenon-1.0.14 app/views/tenon/pages/_form.html.haml
tenon-1.0.13 app/views/tenon/pages/_form.html.haml
tenon-1.0.12 app/views/tenon/pages/_form.html.haml
tenon-1.0.11 app/views/tenon/pages/_form.html.haml
tenon-1.0.10 app/views/tenon/pages/_form.html.haml
tenon-1.0.9 app/views/tenon/pages/_form.html.haml