Skip to content

Commit

Permalink
Put fix "Preserve spaces for text_area using admin/haml" on
Browse files Browse the repository at this point in the history
0048cef back.
Fixes #1207.
  • Loading branch information
Darío Javier Cravero committed Mar 30, 2013
1 parent 3af5d0f commit 81fc7fe
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -3,7 +3,7 @@
%fieldset.control-group{:class => error ? 'has-error' : ''}
=f.label :<%= column[:name] %>, :class => 'control-label'
.controls
=f.<%= column[:field_type] %> :<%= column[:name] %>, :class => 'input-xlarge input-with-feedback'<%- if (index == 0) -%>, :autofocus => true<%- end -%>
<% if column[:field_type] == :text_area %>~<% else %>=<% end %>f.<%= column[:field_type] %> :<%= column[:name] %>, :class => 'input-xlarge input-with-feedback'<%- if (index == 0) -%>, :autofocus => true<%- end -%>

%span.help-inline=error ? f.error_message_on(:<%= column[:name] %>, :class => 'text-error') : pat(:example)
<%- end -%>
Expand Down

0 comments on commit 81fc7fe

Please sign in to comment.