Sha256: dcfdaed0ad115ce381cf26e452fe98736a15b0da8f66bb5e45eb0b3cc47978fb
Contents?: true
Size: 606 Bytes
Versions: 9
Compression:
Stored size: 606 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', required: true = 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 btn-default'
Version data entries
9 entries across 9 versions & 3 rubygems