do not display the content types select box if a page is not templatized
This commit is contained in:
parent
06fa564f37
commit
21469ce367
@ -116,7 +116,7 @@ class Locomotive.Views.Pages.FormView extends Locomotive.Views.Shared.FormView
|
|||||||
@$('li#page_slug_input').show()
|
@$('li#page_slug_input').show()
|
||||||
@$('li#page_templatized_input, li#page_target_klass_name_input').hide()
|
@$('li#page_templatized_input, li#page_target_klass_name_input').hide()
|
||||||
else
|
else
|
||||||
@$('li#page_templatized_input, li#page_target_klass_name_input').show()
|
@$('li#page_templatized_input').show() unless @model.get('redirect')
|
||||||
|
|
||||||
enable_response_type_select: ->
|
enable_response_type_select: ->
|
||||||
@$('li#page_response_type_input').change (event) =>
|
@$('li#page_response_type_input').change (event) =>
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
= f.input :templatized, :as => :'Locomotive::Toggle', :style => "#{'display: none' if @page.redirect? || @page.templatized_from_parent?}"
|
= f.input :templatized, :as => :'Locomotive::Toggle', :style => "#{'display: none' if @page.redirect? || @page.templatized_from_parent?}"
|
||||||
|
|
||||||
= f.input :target_klass_name, :as => :select, :collection => options_for_target_klass_name, :include_blank => false, :wrapper_html => { :style => "#{'display: none' unless @page.templatized? && !@page.templatized_from_parent?}" }
|
= f.input :target_klass_name, :as => :select, :collection => options_for_target_klass_name, :include_blank => false, :wrapper_html => { :style => "#{'display: none' if !@page.templatized? || @page.templatized_from_parent?}" }
|
||||||
|
|
||||||
= f.input :published, :as => :'Locomotive::Toggle'
|
= f.input :published, :as => :'Locomotive::Toggle'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user