This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/views/admin/pages/_form.html.erb

26 lines
696 B
Plaintext
Raw Normal View History

2011-06-01 02:24:14 +00:00
<%= f.error_messages %>
<%= f.hidden_field :parent_id %>
2009-05-22 06:43:52 +00:00
<p>
<%= f.label :name, t('admin.name') %>
<%= f.text_field :name, :class => 'text' %>
2010-01-08 10:36:36 +00:00
</p>
<% @site_valid_locales.each do |locale| %>
<p>
<%= label_tag "page[title]", "#{t('admin.title')} #{locale}" %>
<%= text_field_tag "page[i18n_variable][#{locale}]", (@i18n_variable[locale] if @i18n_variable), :class => 'text' %>
</p>
<% end %>
2010-01-08 10:36:36 +00:00
2009-05-22 06:43:52 +00:00
<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] } %>
2009-05-22 06:43:52 +00:00
</p>
<p>
<%= 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>