Basic feature implemented, very basic poc
This commit is contained in:
parent
216089a3e7
commit
48c0067076
118 changed files with 2113 additions and 20 deletions
13
lib/templates/erb/scaffold/_form.html.erb.tt
Normal file
13
lib/templates/erb/scaffold/_form.html.erb.tt
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<%%= bootstrap_form_with(model: <%= model_resource_name %>) do |form| %>
|
||||
<% attributes.each do |attribute| -%>
|
||||
<% if attribute.password_digest? -%>
|
||||
<%%= form.password_field :password %>
|
||||
<%%= form.password_field :password_confirmation %>
|
||||
<% elsif attribute.attachments? -%>
|
||||
<%%= form.<%= attribute.field_type %> :<%= attribute.column_name %>, multiple: true %>
|
||||
<% else -%>
|
||||
<%%= form.<%= attribute.field_type %> :<%= attribute.column_name %> %>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
<%%= form.submit %>
|
||||
<%% end %>
|
||||
Loading…
Add table
Add a link
Reference in a new issue