Sha256: 434e5b5eec3c4ecdb00ddcd7ed083b2706707baf2982ea05c5555f955bdca5ac
Contents?: true
Size: 1.83 KB
Versions: 1
Compression:
Stored size: 1.83 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 hide_content_tab?(@page) %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 :page_title, :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 :redirect_url, :as => :string = form.input :url, :as => :string, :input_html => { :disabled => 'disabled' } = 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 hide_content_tab?(@page) #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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kuhsaft-2.1.1 | app/views/kuhsaft/cms/pages/_form.html.haml |