Sha256: 07250265f5544fb822207a2a73dd0dd5375e85a61204050f538a718537d3b24a
Contents?: true
Size: 640 Bytes
Versions: 17
Compression:
Stored size: 640 Bytes
Contents
= form_for @<%= singular_table_name %>, local: true do |f| - if @<%= singular_table_name %>.errors.any? = errors_for(@<%= singular_table_name %>) <% attributes.each do |attribute| -%> <%- if attribute.field_type == :check_box %> .form-group.form-check = f.<%= attribute.field_type %> :<%= attribute.name %>, class: 'form-check-input' = f.label :<%= attribute.name %>, class: 'form-check-label' <%- else -%> .form-group = f.label :<%= attribute.name %> = f.<%= attribute.field_type %> :<%= attribute.name %>, class: 'form-control' <% end -%> <% end -%> .form-group = f.submit class: 'btn btn-primary btn-sm'
Version data entries
17 entries across 17 versions & 1 rubygems