2011-04-13 10:19:51 +00:00
|
|
|
<%= f.hidden_field :parent_id %>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<%= f.label :name, t('admin.name') %>
|
|
|
|
<%= f.text_field :name, :class => 'text', :value => 'home', :disabled => true %>
|
|
|
|
<%= f.hidden_field :name, :value => 'home' %>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
<% @site_valid_locales.each do |locale| %>
|
|
|
|
<p>
|
2011-01-31 02:57:41 +00:00
|
|
|
<%= label_tag "home[title]", "#{t('admin.title')} #{locale}" %>
|
|
|
|
<%= text_field_tag "home[i18n_variable][#{locale}]", (@i18n_variable[locale] if @i18n_variable), :class => 'text' %>
|
2011-04-13 10:19:51 +00:00
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<p>
|
2011-03-01 07:58:42 +00:00
|
|
|
<%= f.label :layout_id, t('admin.layout_name') %>
|
|
|
|
<%= f.select :layout_id, Layout.all.map{ |l| [l.description, l.id] } %>
|
2011-04-13 10:19:51 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<%= f.label "content", t('admin.content') %>
|
|
|
|
<%= f.text_area "content", :size => '100x30' %>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<%= f.label :is_published, "#{t('admin.is_published')} ?" %>
|
|
|
|
<%= f.radio_button :is_published, true %>Yes <%= f.radio_button :is_published, false %> No
|
|
|
|
</p>
|