13 lines
526 B
Text
13 lines
526 B
Text
<%%= 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 %>
|