split the General Information section in the page form in two sub sections
This commit is contained in:
parent
f0ee8a7b37
commit
2022b08b83
@ -11,6 +11,9 @@
|
||||
|
||||
= 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
|
||||
|
@ -2,6 +2,7 @@ en:
|
||||
formtastic:
|
||||
titles:
|
||||
information: General information
|
||||
advanced_options: Advanced options
|
||||
meta: SEO Metadata
|
||||
code: Code
|
||||
raw_template: Template
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user