lib/padrino-admin/generators/templates/slim/page/new.slim.tt in padrino-admin-0.10.7 vs lib/padrino-admin/generators/templates/slim/page/new.slim.tt in padrino-admin-0.11.0
- old
+ new
@@ -1,15 +1,7 @@
-.block
- .secondary-navigation
- ul.wat-cf
- li.first == link_to pat(:list), url(:<%= @orm.name_plural %>, :index)
- li.active == link_to pat(:new), url(:<%= @orm.name_plural %>, :new)
- .content
- h2.title
- = pat(:new)
- == ' '
- = mt(:<%= @orm.name_singular %>)
- .inner
- - form_for :<%= @orm.name_singular %>, url(:<%= @orm.name_plural %>, :create), :class => :form do |f|
- == partial "<%= @orm.name_plural %>/form", :locals => { :f => f }
+ul class="nav nav-tabs"
+ li = link_to tag_icon(:list, pat(:list)), url(:<%= @orm.name_plural %>, :index)
+ li class="active" = link_to tag_icon(:plus, pat(:new)), url(:<%= @orm.name_plural %>, :new)
-- content_for :sidebar, partial("base/sidebar")
+div class="tabs-content"
+ - form_for :<%= @orm.name_singular %>, url(:<%= @orm.name_plural %>, :create), :class => 'form-horizontal' do |f|
+ = partial '<%= @orm.name_plural %>/form', :locals => { :f => f }