<% form_for(@database, :url => { :action => :create, :tablename => @tablename }, :html => { :method => :post }) do |f| %> <%#= menu %>
<%#= submenu %>
<%= message %> <%= pagetitle :title => "database [" + @tablename + "]" %>
<%= f.error_messages %> <%= flash_tag %> <% content_for :button do %>
<%= submit_button_tag(f, :value => '/images/btn_create.png') %> <%= index_button_tag %>
<% end %> <%#= yield :button %> <%= pagesubtitle %> <%= required_notice_tag %> <% @columns.each do |column| %> <% end %>
<%= f.label column.name %><%#=hlabel @tablename.singularize, column.name %> <% if ["id","created_at","updated_at"].include?(column.name) -%> <% if column.type.to_s == "datetime" -%> <%=hdate @database[column.name] -%> <% else -%> <%=h @database[column.name] -%> <% end -%> <% else -%> <%= f.text_field column.name -%> <% end -%>
<%= yield :button %>
<% end %>