Sha256: ed22eec2ae6aa39afa588ad3b0337411ec53d943513618ccedc65e1f4640e6ef
Contents?: true
Size: 652 Bytes
Versions: 30
Compression:
Stored size: 652 Bytes
Contents
<%%= form_for(@<%= singular_table_name %>, html: { class: 'form-horizontal'}) do |f| %> <% attributes.each do |attribute| -%> <div class="form-group"> <%%= f.label :<%= attribute.name %>, class: 'col-md-2' %> <% colsize = 6 colsize = 2 if attribute.type == :integer %> <div class="col-md-<%= colsize %>"> <%%= f.<%= attribute.field_type %> :<%= attribute.name %><%= "?" if attribute.type == :boolean %>, class: 'form-control' %> </div> </div> <% end -%> <div class="form-group"> <div class="col-md-offset-2 col-md-6"> <%%= f.submit nil, class: 'btn btn-primary' %> </div> </div> <%% end %>
Version data entries
30 entries across 30 versions & 2 rubygems