Sha256: 897ec828c58b0a985093fd3097f2495a2bad1ec98aed96ff82866c780914514a
Contents?: true
Size: 596 Bytes
Versions: 9
Compression:
Stored size: 596 Bytes
Contents
= form_for @<%= resource_name %>, html: { class: "form form-horizontal <%= resource_name %>" } do |f| <%- columns.each do |column| -%> .form-group = f.label :<%= column.name %>, :class => 'control-label col-lg-2' .col-lg-10 = f.<%= column.field_type %> :<%= column.name %>, :class => 'form-control' = f.error_span(:<%= column.name %>) <%- end -%> .form-group .col-lg-offset-2.col-lg-10 = f.submit nil, :class => 'btn btn-primary' ' = link_to t('.cancel', :default => t("helpers.links.cancel")), <%= controller_routing_path %>_path, :class => 'btn'
Version data entries
9 entries across 9 versions & 3 rubygems