New site
<%= error_messages_for :site %>
<% form_for(@site) do |f| %>
Pagename
<%= f.text_field :pagename %>
Metakeyword
<%= f.text_area :metakeyword %>
Meta Description
<%= f.text_area :keyworddescription %>
What is the parent page to this new page?
<%= collection_select 'site', 'parent_id', Site.find(:all), 'id', 'pagename', :include_blank => true %>
Which columns are on this page?
<% for column in Column.find(:all) %>
<%= check_box_tag "site[column_ids][]", column.id, @site.columns.include?(column) %>
<%= column.colname %>
<% end %>
Which moduls should be on this page?
<% for mod in Mod.find(:all) %>
<%= check_box_tag "site[mod_ids][]", mod.id, @site.mods.include?(mod) %>
<%= mod.modname %>
<% end %>
<%= collection_select 'site', 'publish_id', Publish.find(:all), 'id', 'name' %>
<%= f.submit "Create" %>
<% end %>
<%= link_to 'Back', cms_path %>