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