Sha256: c9a3d2f3f63cd8d411af2e8362f0207e9f6460ad5daf4242083717ced0a55b46

Contents?: true

Size: 1.56 KB

Versions: 12

Compression:

Stored size: 1.56 KB

Contents

%ul.nav.nav-tabs.js-tabs
  %li{ :class => metadata_tab_active(@page) }
    = link_to t('.tab_metadata'), '#page-metadata', 'data-toggle' => :tab
  %li{ :class => content_tab_active(@page) }
    = link_to t('.tab_content'), '#page-content', 'data-toggle' => :tab

.tab-content
  #page-metadata.tab-pane{ :class => metadata_tab_active(@page) }
    = simple_form_for @page, :url => url, :html => { :class => 'form-horizontal' } do |form|
      = form.input :title, :required => false, :input_html => { :class => :span5 }
      = form.input :slug, :required => false, :input_html => { :class => :span5 }
      = form.input :parent_id, :collection => Kuhsaft::Page.flat_tree, :label_method => :nesting_name, :selected => params[:parent_id].presence || @page.parent_id.presence, :prompt => 'None', :input_html => { :class => :span3 }
      = form.input :page_type, :collection => Kuhsaft::PageType.all, :prompt => false, :input_html => { :class => :span3 }
      = form.input :url, :as => :string
      = form.input :keywords, :input_html => { :class => :span5 }
      = form.input :description, :as => :text, :input_html => { :class => :span5, :rows => 4 }
      = form.input :published, :as => :boolean

      .form-actions
        = form.button :submit, :class => 'btn btn-primary'

  #page-content.tab-pane{ :class => content_tab_active(@page) }
    - if @page.persisted?
      .clearfix
        .actions
          .btn-group
            = render 'brick_type_dropdown', :brick_list => @page
      = render 'kuhsaft/cms/bricks/brick_list', :brick_list => @page

= render 'kuhsaft/cms/bricks/sort_form'

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
kuhsaft-1.3.1 app/views/kuhsaft/cms/pages/_form.html.haml
kuhsaft-1.2.15 app/views/kuhsaft/cms/pages/_form.html.haml
kuhsaft-1.2.14 app/views/kuhsaft/cms/pages/_form.html.haml
kuhsaft-1.2.13 app/views/kuhsaft/cms/pages/_form.html.haml
kuhsaft-1.2.12 app/views/kuhsaft/cms/pages/_form.html.haml
kuhsaft-1.2.11 app/views/kuhsaft/cms/pages/_form.html.haml
kuhsaft-1.2.10 app/views/kuhsaft/cms/pages/_form.html.haml
kuhsaft-1.2.9 app/views/kuhsaft/cms/pages/_form.html.haml
kuhsaft-1.2.8 app/views/kuhsaft/cms/pages/_form.html.haml
kuhsaft-1.2.7 app/views/kuhsaft/cms/pages/_form.html.haml
kuhsaft-1.2.6 app/views/kuhsaft/cms/pages/_form.html.haml
kuhsaft-1.2.5 app/views/kuhsaft/cms/pages/_form.html.haml