<%%= @<%= singular_name %>.new_record? ? 'New' : 'Editing' %> <%= singular_name.titleize %>

<%% form_for([:admin, @<%= singular_name %>]) do |f| %> <%%= f.error_messages %> <% for attribute in attributes -%>

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

<% end -%>

<%%= f.submit @<%= singular_name %>.new_record? ? 'Create' : 'Update', :disable_with => 'Submitting...' %> or <%%= link_to 'Back', admin_<%= plural_name %>_path %>

<%% end %>