bootstrap and simpleform

This commit is contained in:
Min Zeya Phyo
2017-04-04 02:00:34 +06:30
parent c10db71cbc
commit efd0398baa
15 changed files with 527 additions and 17 deletions

View File

@@ -0,0 +1,13 @@
<%%= simple_form_for(@<%= singular_table_name %>) do |f| %>
<%%= f.error_notification %>
<div class="form-inputs">
<%- attributes.each do |attribute| -%>
<%%= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> %>
<%- end -%>
</div>
<div class="form-actions">
<%%= f.button :submit %>
</div>
<%% end %>