Sha256: 48cc8395913cc357186f313e385682fd4c1e32cd7822fb375958028a0c7ee77d

Contents?: true

Size: 1.83 KB

Versions: 16

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

16 entries across 16 versions & 1 rubygems

Version Path
tenon-1.0.45 app/views/tenon/pages/_form.html.haml
tenon-1.0.44 app/views/tenon/pages/_form.html.haml
tenon-1.0.43 app/views/tenon/pages/_form.html.haml
tenon-1.0.42 app/views/tenon/pages/_form.html.haml
tenon-1.0.41 app/views/tenon/pages/_form.html.haml
tenon-1.0.40 app/views/tenon/pages/_form.html.haml
tenon-1.0.39 app/views/tenon/pages/_form.html.haml
tenon-1.0.38 app/views/tenon/pages/_form.html.haml
tenon-1.0.37 app/views/tenon/pages/_form.html.haml
tenon-1.0.36 app/views/tenon/pages/_form.html.haml
tenon-1.0.35 app/views/tenon/pages/_form.html.haml
tenon-1.0.33 app/views/tenon/pages/_form.html.haml
tenon-1.0.32 app/views/tenon/pages/_form.html.haml
tenon-1.0.31 app/views/tenon/pages/_form.html.haml
tenon-1.0.30 app/views/tenon/pages/_form.html.haml
tenon-1.0.29 app/views/tenon/pages/_form.html.haml