<%%= labelled_form_for(@<%= singular_table_name %><%= maybe_remote %>) do |f| %> <%%= error_messages_for "<%= singular_table_name %>" %>
<% attributes.each do |attribute| -%>

<%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>

<% end -%>

<%%= f.submit %> <%%= submit_tag l(:button_cancel), <%= key_value :onclick, '"hideModal(this);"' %>, <%= key_value :type, '"button"' %> %>

<%% end %>