Orbit/app/views/admin/pages/_form.html.erb

37 lines
1.3 KiB
Plaintext
Raw Normal View History

2011-06-01 02:24:14 +00:00
<%= f.error_messages %>
2012-02-19 19:22:53 +00:00
<%= f.hidden_field :parent, :value => (@item.parent.id rescue nil) %>
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>
2012-02-17 06:54:11 +00:00
<%= f.fields_for :i18n_variable, (@item.new_record? ? @item.build_i18n_variable : @item.i18n_variable) do |f| %>
<% @site_valid_locales.each do |locale| %>
<p>
<%= f.label :locale, "#{t('admin.title')} #{I18nVariable.from_locale(locale)}" %>
<%= f.text_field locale %>
</p>
<% end %>
<% end %>
2010-01-08 10:36:36 +00:00
2009-05-22 06:43:52 +00:00
<p>
<%= t('admin.design_name') %>
2012-02-17 06:54:11 +00:00
<%= f.collection_select :design, @designs, :id, :title, {:selected => @design.id}, {:rel => admin_pages_path} %>
</p>
<p>
<%= t('admin.theme') %>
2012-02-17 06:54:11 +00:00
<%= f.select :theme_id, @design.themes.collect { |t| [t.name.capitalize, t.id] }, :include_blank => true %>
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 } %>
<span id="app_page_url"><%= select('page','app_frontend_url', @app_frontend_urls ) rescue ''%> </span>
<span id="app_page_category"><%= select('page','category', @categories.collect{|category| [category.i18n_variable[I18n.locale], category.id]} ) 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