lib/generators/bootstrap/themed/templates/_form.html.erb in twitter-bootstrap-rails-2.0.5 vs lib/generators/bootstrap/themed/templates/_form.html.erb in twitter-bootstrap-rails-2.0.6
- old
+ new
@@ -1,19 +1,16 @@
<%%= form_for @<%= resource_name %>, :html => { :class => 'form-horizontal' } do |f| %>
- <fieldset>
- <legend><%%= controller.action_name.capitalize %> <%= model_name.titleize %></legend>
-
- <%- columns.each do |column| -%>
- <div class="control-group">
- <%%= f.label :<%= column.name %>, :class => 'control-label' %>
- <div class="controls">
- <%%= f.<%= column.field_type %> :<%= column.name %>, :class => '<%= column.field_type %>' %>
- </div>
+ <%- columns.each do |column| -%>
+ <div class="control-group">
+ <%%= f.label :<%= column.name %>, :class => 'control-label' %>
+ <div class="controls">
+ <%%= f.<%= column.field_type %> :<%= column.name %>, :class => '<%= column.field_type %>' %>
</div>
+ </div>
+ <%- end -%>
- <%- end -%>
- <div class="form-actions">
- <%%= f.submit nil, :class => 'btn btn-primary' %>
- <%%= link_to 'Cancel', <%= controller_routing_path %>_path, :class => 'btn' %>
- </div>
- </fieldset>
+ <div class="form-actions">
+ <%%= f.submit nil, :class => 'btn btn-primary' %>
+ <%%= link_to t('.cancel', :default => t("helpers.links.cancel")),
+ <%= controller_routing_path %>_path, :class => 'btn' %>
+ </div>
<%% end %>