Sha256: dea6dffd3424075a8c4db88c98ecd704f30bcbed76eb61338641e4a8a98dbf7b
Contents?: true
Size: 1.72 KB
Versions: 8
Compression:
Stored size: 1.72 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 :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 @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
8 entries across 8 versions & 1 rubygems