Sha256: 1ed0c10ca16b3097c1ef39bbb0942efd519129a4b9e874a8350c43408dbce92c
Contents?: true
Size: 506 Bytes
Versions: 2
Compression:
Stored size: 506 Bytes
Contents
<%%= form_for(@<%= singular_table_name %>) do |f| %> <%% if @<%= singular_table_name %>.errors.any? %> <%%= render 'shared/form_errors', obj: @category %> <%% end %> <% attributes.each do |attribute| -%> <div class="form-group"> <%%= f.label :<%= attribute.name %> %> <%%= f.<%= attribute.field_type %> :<%= attribute.name %>, class: 'form-control' %> </div> <% end -%> <div class="form-actions"> <%%= f.submit 'Save', class: 'btn btn-primary' %> </div> <%% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trireme-0.2.0 | lib/trireme/templates/lib/templates/erb/scaffold/_form.html.erb |
trireme-0.0.1 | lib/trireme/templates/lib/templates/erb/scaffold/_form.html.erb |