<%% form_for(@<%= singular_name %>) do |f| %> <%%= menu %>
<%%= submenu %>
<%%= message %> <%%= pagetitle :title => "<%= name %>" %>
<%%= flash_tag %> <%% content_for :button do %>
<%%= submit_button_tag(f) %> <%%= back_button_tag %> <%%= index_button_tag %>
<%% end %> <%%#= yield :button %> <%%= pagesubtitle %> <% for attribute in attributes -%> <% end -%>
<%%= f.label :<%= attribute.name %> %> <% if attribute.reference? -%> <%%= hname @<%= singular_name %>.<%= attribute.name %> %> <%%= f.hidden_field :<%= attribute.name %>_id %> <% elsif attribute.field_type == :date_select -%> <%%= hdate @<%= singular_name %>.<%= attribute.name %> %> <%%= f.hidden_field :<%= attribute.name %> %> <% elsif attribute.field_type == :text_area -%> <%%= hbr @<%= singular_name %>.<%= attribute.name %> %> <%%= f.hidden_field :<%= attribute.name %> %> <% else -%> <%%= h @<%= singular_name %>.<%= attribute.name %> %> <%%= f.hidden_field :<%= attribute.name %> %> <% end -%>
<%%= yield :button %>
<%% end %>