Sha256: 5d8ff2533aabdeedd41a97c7a67790f40b46adbbe658893372b0b448fc2fca37

Contents?: true

Size: 1.72 KB

Versions: 6

Compression:

Stored size: 1.72 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
        %button.btn.btn-comp.btn-block.submit Save
        = 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

6 entries across 6 versions & 1 rubygems

Version Path
tenon-1.0.5 app/views/tenon/pages/_form.html.haml
tenon-1.0.4 app/views/tenon/pages/_form.html.haml
tenon-1.0.3 app/views/tenon/pages/_form.html.haml
tenon-1.0.2 app/views/tenon/pages/_form.html.haml
tenon-1.0.1 app/views/tenon/pages/_form.html.haml
tenon-1.0 app/views/tenon/pages/_form.html.haml