%%= labelled_form_for(@<%= singular_table_name %><%= maybe_remote %>) do |f| %> <%%= error_messages_for "<%= singular_table_name %>" %>
<%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
<%%= f.submit %> <%%= submit_tag l(:button_cancel), <%= key_value :onclick, '"hideModal(this);"' %>, <%= key_value :type, '"button"' %> %>