Sha256: 3d8af3aa8151803a0f561ee2eac50941d79ec2b61b8339fde93e0bc68089589d

Contents?: true

Size: 1.83 KB

Versions: 27

Compression:

Stored size: 1.83 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'}

    = i18n_language_nav(:'tenon/pages')

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

27 entries across 27 versions & 1 rubygems

Version Path
tenon-1.0.74 app/views/tenon/pages/_form.html.haml
tenon-1.0.73 app/views/tenon/pages/_form.html.haml
tenon-1.0.72 app/views/tenon/pages/_form.html.haml
tenon-1.0.71 app/views/tenon/pages/_form.html.haml
tenon-1.0.70 app/views/tenon/pages/_form.html.haml
tenon-1.0.69 app/views/tenon/pages/_form.html.haml
tenon-1.0.68 app/views/tenon/pages/_form.html.haml
tenon-1.0.67 app/views/tenon/pages/_form.html.haml
tenon-1.0.66 app/views/tenon/pages/_form.html.haml
tenon-1.0.65 app/views/tenon/pages/_form.html.haml
tenon-1.0.64 app/views/tenon/pages/_form.html.haml
tenon-1.0.63 app/views/tenon/pages/_form.html.haml
tenon-1.0.62 app/views/tenon/pages/_form.html.haml
tenon-1.0.61 app/views/tenon/pages/_form.html.haml
tenon-1.0.60 app/views/tenon/pages/_form.html.haml
tenon-1.0.59 app/views/tenon/pages/_form.html.haml
tenon-1.0.57 app/views/tenon/pages/_form.html.haml
tenon-1.0.56 app/views/tenon/pages/_form.html.haml
tenon-1.0.55 app/views/tenon/pages/_form.html.haml
tenon-1.0.54 app/views/tenon/pages/_form.html.haml