Skip to content
Permalink
Browse files

We should use `=` instead of `-` in slim.

  • Loading branch information...
namusyaka committed Oct 9, 2013
1 parent 28d436f commit d30d4b1945466bf592fae5a68fee2dfbdbbaea35
@@ -12,7 +12,7 @@ html lang="en" xmlns="http://www.w3.org/1999/xhtml"
= stylesheet_link_tag 'bootstrap', 'application'

body
- form_tag url(:sessions, :create), :class=>'login form-horizontal' do
= form_tag url(:sessions, :create), :class=>'login form-horizontal' do
div class="login-header modal-header"
div class="login-logo" = image_tag('logo.png', :alt => "Padrino's logo", :height => 250, :width => 193)
div class="login-body modal-body"
@@ -34,4 +34,4 @@ html lang="en" xmlns="http://www.w3.org/1999/xhtml"

div class="login-footer modal-footer"
= submit_tag(pat('login.sign_in'), :class => 'btn btn-primary pull-right')
= javascript_include_tag 'jquery-1.9.0.min', (Padrino.env == :production ? 'bootstrap/bootstrap.min' : %w[bootstrap/affix bootstrap/alert bootstrap/button bootstrap/carousel bootstrap/collapse bootstrap/dropdown bootstrap/tooltip bootstrap/transition bootstrap/modal bootstrap/popover bootstrap/scrollspy bootstrap/tab]), :application
= javascript_include_tag 'jquery-1.9.0.min', (Padrino.env == :production ? 'bootstrap/bootstrap.min' : %w[bootstrap/affix bootstrap/alert bootstrap/button bootstrap/carousel bootstrap/collapse bootstrap/dropdown bootstrap/tooltip bootstrap/transition bootstrap/modal bootstrap/popover bootstrap/scrollspy bootstrap/tab]), :application
@@ -4,5 +4,5 @@ ul class="nav nav-tabs"
li class="active" = link_to tag_icon(:edit, pat(:edit)), url(:<%= @orm.name_plural %>, :edit, :id => @<%= @orm.name_singular %>.id)

div class="tabs-content"
- form_for :<%= @orm.name_singular %>, url(:<%= @orm.name_plural %>, :update, :id => @<%= @orm.name_singular %>.id), :method => :put, :class => 'form-horizontal' do |f|
= form_for :<%= @orm.name_singular %>, url(:<%= @orm.name_plural %>, :update, :id => @<%= @orm.name_singular %>.id), :method => :put, :class => 'form-horizontal' do |f|
= partial '<%= @orm.name_plural %>/form', :locals => { :f => f }
@@ -21,7 +21,7 @@ div class="tabs-content"
div class='arrow'
h3 class='popover-title' = pat(:delete_selected_title)
div class='popover-content'
- form_tag url(:<%= @orm.name_plural %>, :destroy_many), :method => :delete do
= form_tag url(:<%= @orm.name_plural %>, :destroy_many), :method => :delete do
= hidden_field_tag :<%= @orm.name_singular %>_ids, :'data-delete-many-ids' => true
= submit_tag pat(:delete), :class =>'list-menu-popover-delete-selected-btn btn btn-danger btn-small'
div class='btn btn-default btn-small cancel' = pat(:cancel)
@@ -51,6 +51,6 @@ div class="tabs-content"
div class='arrow'
h3 class='popover-title' = pat(:delete, :model => "<%= @orm.name_singular %>")
div class='popover-content'
- form_tag url(:<%= @orm.name_plural %>, :destroy, :id => <%= @orm.name_singular %>.id), :method => :delete do
= form_tag url(:<%= @orm.name_plural %>, :destroy, :id => <%= @orm.name_singular %>.id), :method => :delete do
= submit_tag pat(:delete), :class =>'list-row-action-popover-delete-one-btn btn btn-danger btn-small'
div class='btn btn-default btn-small cancel' = pat(:cancel)
div class='btn btn-default btn-small cancel' = pat(:cancel)
@@ -3,5 +3,5 @@ ul class="nav nav-tabs"
li class="active" = link_to tag_icon(:plus, pat(:new)), url(:<%= @orm.name_plural %>, :new)

div class="tabs-content"
- form_for :<%= @orm.name_singular %>, url(:<%= @orm.name_plural %>, :create), :class => 'form-horizontal' do |f|
= form_for :<%= @orm.name_singular %>, url(:<%= @orm.name_plural %>, :create), :class => 'form-horizontal' do |f|
= partial '<%= @orm.name_plural %>/form', :locals => { :f => f }

0 comments on commit d30d4b1

Please sign in to comment.
You can’t perform that action at this time.