2011-06-01 02:24:14 +00:00
|
|
|
<%= f.error_messages %>
|
2011-04-13 10:19:51 +00:00
|
|
|
<%= f.hidden_field :parent_id %>
|
2010-01-14 10:30:53 +00:00
|
|
|
|
2009-05-22 06:43:52 +00:00
|
|
|
<p>
|
2011-04-13 10:19:51 +00:00
|
|
|
<%= f.label :name, t('admin.name') %>
|
2011-05-09 10:49:57 +00:00
|
|
|
<%= f.text_field :name, :class => 'text' %>
|
2010-01-08 10:36:36 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
|
2011-04-13 10:19:51 +00:00
|
|
|
<% @site_valid_locales.each do |locale| %>
|
|
|
|
<p>
|
2011-01-31 02:57:41 +00:00
|
|
|
<%= label_tag "page[title]", "#{t('admin.title')} #{locale}" %>
|
|
|
|
<%= text_field_tag "page[i18n_variable][#{locale}]", (@i18n_variable[locale] if @i18n_variable), :class => 'text' %>
|
2011-04-13 10:19:51 +00:00
|
|
|
</p>
|
|
|
|
<% end %>
|
2010-01-08 10:36:36 +00:00
|
|
|
|
2009-05-22 06:43:52 +00:00
|
|
|
<p>
|
2011-08-23 18:06:27 +00:00
|
|
|
<%= t('admin.design_name') %>
|
2011-08-25 00:13:38 +00:00
|
|
|
<% if @design %>
|
|
|
|
<%= f.collection_select :design_id, @designs, :id, :title, {}, :rel => admin_pages_path %>
|
|
|
|
<% else %>
|
|
|
|
<%= f.select :design_id, @designs.collect { |d| [d.title, d.id] }, {:selected => @default_design.id}, {:rel => admin_pages_path} %>
|
|
|
|
<% end %>
|
2011-08-23 18:06:27 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<%= t('admin.theme') %>
|
2011-08-25 00:13:38 +00:00
|
|
|
<% if @design %>
|
2011-09-13 06:03:03 +00:00
|
|
|
<%= f.select :theme_id, @design.themes.collect { |t| [t.name.capitalize, t.id] }, :include_blank => true %>
|
2011-08-25 00:13:38 +00:00
|
|
|
<% else %>
|
2011-09-05 07:18:36 +00:00
|
|
|
<%= f.select :theme_id, @default_design.themes.collect { |t| [t.name.capitalize, t.id] }, :include_blank => true %>
|
2011-08-25 00:13:38 +00:00
|
|
|
<% end %>
|
2009-05-22 06:43:52 +00:00
|
|
|
</p>
|
2011-12-23 10:34:21 +00:00
|
|
|
<p>
|
|
|
|
<%= t('admin.module_app') %>
|
|
|
|
<%= render :partial => "admin/module_apps/app_selector", :locals => { :f => f } %>
|
|
|
|
<span id="app_page_url"></span>
|
|
|
|
</p>
|
2009-05-22 06:43:52 +00:00
|
|
|
<p>
|
2011-04-13 10:19:51 +00:00
|
|
|
<%= f.label :is_published, "#{t('admin.is_published')} ?" %>
|
2010-01-08 10:36:36 +00:00
|
|
|
<%= f.radio_button :is_published, true %>Yes <%= f.radio_button :is_published, false %> No
|
2009-05-22 06:51:32 +00:00
|
|
|
</p>
|
2011-12-23 10:34:21 +00:00
|
|
|
|