Skip to content

Commit

Permalink
Fixed form group typo from erb template
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishank Gupta committed Sep 4, 2014
1 parent 7e2fd27 commit 2c06ad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/generators/bootstrap/themed/templates/_form.html.erb
@@ -1,6 +1,6 @@
<%%= form_for @<%= resource_name %>, :html => { :class => "form-horizontal <%= resource_name %>" } do |f| %>

<%% if @<%= resource_name %>.errors.any? %>
<%% if @<%= resource_name %>.errors.any? %>
<div id="error_expl" class="panel panel-danger">
<div class="panel-heading">
<h3 class="panel-title"><%%= pluralize(@<%= resource_name %>.errors.count, "error") %> prohibited this <%= resource_name %> from being saved:</h3>
Expand All @@ -16,7 +16,7 @@
<%% end %>

<%- columns.each do |column| -%>
<div class="control-group">
<div class="form-group">
<%%= f.label :<%= column.name %>, :class => 'control-label col-lg-2' %>
<div class="col-lg-10">
<%%= f.<%= column.field_type %> :<%= column.name %>, :class => 'form-control' %>
Expand Down

0 comments on commit 2c06ad0

Please sign in to comment.