<%%= form_for @<%= resource_name %>, :html => { :class => 'form-horizontal' } do |f| %> <%- columns.each do |column| -%>
<%%= f.label :<%= column.name %>, :class => 'control-label col-md-2' %>
<%%= f.<%= column.field_type %> :<%= column.name %>, :class => '<%= column.field_type %> form-control' %>
<%- end -%>
<%%= f.submit nil, :class => 'btn btn-primary' %> <%%= link_to t('.cancel', :default => t("helpers.links.cancel")), <%= controller_routing_path %>_path, :class => 'btn btn-default' %>
<%% end %>