split the General Information section in the page form in two sub sections
This commit is contained in:
parent
f0ee8a7b37
commit
2022b08b83
@ -10,9 +10,12 @@
|
|||||||
= f.input :parent_id, :as => :select, :collection => parent_pages_options, :include_blank => false
|
= 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.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.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.custom_input :templatized, :css => 'toggle', :style => "#{'display: none' if @page.redirect?}" do
|
||||||
= f.check_box :templatized
|
= f.check_box :templatized
|
||||||
|
|
||||||
@ -21,7 +24,7 @@
|
|||||||
|
|
||||||
= f.custom_input :listed, :css => 'toggle' do
|
= f.custom_input :listed, :css => 'toggle' do
|
||||||
= f.check_box :listed
|
= f.check_box :listed
|
||||||
|
|
||||||
= f.custom_input :redirect, :css => 'toggle', :style => "#{'display: none' if @page.templatized?}" do
|
= f.custom_input :redirect, :css => 'toggle', :style => "#{'display: none' if @page.templatized?}" do
|
||||||
= f.check_box :redirect
|
= f.check_box :redirect
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@ en:
|
|||||||
formtastic:
|
formtastic:
|
||||||
titles:
|
titles:
|
||||||
information: General information
|
information: General information
|
||||||
|
advanced_options: Advanced options
|
||||||
meta: SEO Metadata
|
meta: SEO Metadata
|
||||||
code: Code
|
code: Code
|
||||||
raw_template: Template
|
raw_template: Template
|
||||||
|
@ -2,6 +2,7 @@ fr:
|
|||||||
formtastic:
|
formtastic:
|
||||||
titles:
|
titles:
|
||||||
information: Informations générales
|
information: Informations générales
|
||||||
|
advanced_options: Options avancées
|
||||||
meta: SEO Metadata
|
meta: SEO Metadata
|
||||||
code: Code
|
code: Code
|
||||||
raw_template: Gabarit
|
raw_template: Gabarit
|
||||||
@ -40,6 +41,16 @@ fr:
|
|||||||
reset: Remettre à zéro
|
reset: Remettre à zéro
|
||||||
content_type:
|
content_type:
|
||||||
api_accounts: Comptes à notifier
|
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:
|
hints:
|
||||||
page:
|
page:
|
||||||
|
Loading…
Reference in New Issue
Block a user