orbit-basic/app/views/admin/pages/_form.html.erb

43 lines
1.4 KiB
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>
<%= t('admin.design_name') %>
<% 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 %>
</p>
<p>
<%= t('admin.theme') %>
<% if @design %>
<%= f.select :theme_id, @design.themes.collect { |t| [t.name.capitalize, t.id] }, :include_blank => true %>
<% else %>
<%= f.select :theme_id, @default_design.themes.collect { |t| [t.name.capitalize, t.id] }, :include_blank => true %>
<% end %>
2009-05-22 06:43:52 +00:00
</p>
2011-12-20 08:47:17 +00:00
<p>
<%= t('admin.module_app') %>
<%= render :partial => "admin/module_apps/app_selector", :locals => { :f => f } %>
2011-12-23 05:54:28 +00:00
<span id="app_page_url"><%= select('page','app_frontend_url', @app_frontend_urls ) rescue ''%> </span>
2011-12-20 08:47:17 +00:00
</p>
2009-05-22 06:43:52 +00:00
<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>
2011-12-20 08:47:17 +00:00