Sha256: d08e6ad0410b10d24d0ab70038e6855bc7f7bd0b3aa2f372c5e21f53b9d63640
Contents?: true
Size: 1.63 KB
Versions: 5
Compression:
Stored size: 1.63 KB
Contents
%ul.nav.nav-tabs.js-tabs %li{ :class => metadata_tab_active(@page) } = link_to t('.tab_metadata'), '#page-metadata', 'data-toggle' => :tab - unless @page.redirect? %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' - unless @page.redirect? #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
5 entries across 5 versions & 1 rubygems