%%= form_for(@<%= singular_table_name %>) do |f| %>
<%% if @<%= singular_table_name %>.errors.any? %>
<%%= pluralize(@<%= singular_table_name %>.errors.count, "error") %> prohibited this <%= singular_table_name %> from being saved:
<%% @<%= singular_table_name %>.errors.full_messages.each do |msg| %>
- <%%= msg %>
<%% end %>
<%% end %>
<% goma_config.authentication_keys.each do |key| -%>
<%%= f.label :<%= key %> %>
<%%= f.text_field :<%= key %> %>
<% end -%>
<%%= f.label :<%= goma_config.password_attribute_name %> %>
<%%= f.password_field :<%= goma_config.password_attribute_name %> %>
<%%= f.label :<%= goma_config.password_confirmation_attribute_name %> %>
<%%= f.password_field :<%= goma_config.password_confirmation_attribute_name %> %>
<% attributes.each do |attribute| -%>
<%- if attribute.reference? -%>
<%%= f.label :<%= attribute.column_name %> %>
<%%= f.<%= attribute.field_type %> :<%= attribute.column_name %> %>
<%- else -%>
<%%= f.label :<%= attribute.name %> %>
<%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
<%- end -%>
<% end -%>
<%%= f.submit %>
<%% end %>