diff --git a/app/views/admin/pages/_form.html.haml b/app/views/admin/pages/_form.html.haml index e2d9bcee..e25e3cfa 100644 --- a/app/views/admin/pages/_form.html.haml +++ b/app/views/admin/pages/_form.html.haml @@ -10,9 +10,12 @@ = f.input :parent_id, :as => :select, :collection => parent_pages_options, :include_blank => false = f.input :slug, :required => false, :hint => @page.slug.blank? ? ' ' : @page.url, :input_html => { :data_url => get_path_admin_pages_url, :disabled => @page.index? || @page.not_found? }, :wrapper_html => { :style => "#{'display: none' if @page.templatized?}; height: 50px" } - + + += f.foldable_inputs :name => :advanced_options do + = f.input :content_type_id, :as => :select, :collection => current_site.content_types.all.to_a, :include_blank => false, :wrapper_html => { :style => "#{'display: none' unless @page.templatized?}; height: 50px" } - + = f.custom_input :templatized, :css => 'toggle', :style => "#{'display: none' if @page.redirect?}" do = f.check_box :templatized @@ -21,7 +24,7 @@ = f.custom_input :listed, :css => 'toggle' do = f.check_box :listed - + = f.custom_input :redirect, :css => 'toggle', :style => "#{'display: none' if @page.templatized?}" do = f.check_box :redirect diff --git a/config/locales/formtastic.en.yml b/config/locales/formtastic.en.yml index dc0ec163..4b9151f9 100644 --- a/config/locales/formtastic.en.yml +++ b/config/locales/formtastic.en.yml @@ -2,6 +2,7 @@ en: formtastic: titles: information: General information + advanced_options: Advanced options meta: SEO Metadata code: Code raw_template: Template diff --git a/config/locales/formtastic.fr.yml b/config/locales/formtastic.fr.yml index 54616e86..92fe9ca4 100644 --- a/config/locales/formtastic.fr.yml +++ b/config/locales/formtastic.fr.yml @@ -2,6 +2,7 @@ fr: formtastic: titles: information: Informations générales + advanced_options: Options avancées meta: SEO Metadata code: Code raw_template: Gabarit @@ -40,6 +41,16 @@ fr: reset: Remettre à zéro content_type: api_accounts: Comptes à notifier + page: + title: Titre + parent_id: Dossier + slug: Raccourci URL + published: Publiée + templatized: Templatisée + listed: Menu + redirect: Redirection + redirect_url: Url de redirection + cache_strategy: Cache hints: page: