Sha256: 4eb521b92f346573c1787f2aac740c66c2d036a791d6def34b0978a7f796b7cb
Contents?: true
Size: 1.05 KB
Versions: 8
Compression:
Stored size: 1.05 KB
Contents
<%%= form_for(@<%= singular_table_name %>) do |f| %> <%%= errors_bar @<%= singular_table_name %> %> <div class="row"> <div class="col-sm-8"> <% attributes.each do |attribute| -%> <div class="form-group"> <% if attribute.password_digest? -%> <%%= f.label :password %> <%%= f.password_field :password, class: 'form-control' %> </div> <div> <%%= f.label :password_confirmation %> <%%= f.password_field :password_confirmation, class: 'form-control' %> <% else -%> <%- if attribute.reference? -%> <%%= f.label :<%= attribute.column_name %> %> <%%= f.<%= attribute.field_type %> :<%= attribute.column_name %>, class: 'form-control' %> <%- else -%> <%%= f.label :<%= attribute.name %> %> <%%= f.<%= attribute.field_type %> :<%= attribute.name %>, class: 'form-control' %> <%- end -%> <% end -%> </div> <% end -%> </div> </div> <%%= f.submit 'Save', class: 'btn btn-primary' %> <%%= link_to 'Cancel', <%= index_helper %>_path, class: 'btn btn-default' %> <%% end %>
Version data entries
8 entries across 8 versions & 1 rubygems