app/views/admin/pages/_form.html.haml in locomotive_cms-1.0.0.beta vs app/views/admin/pages/_form.html.haml in locomotive_cms-1.0.0.beta.2

- old
+ new

@@ -9,18 +9,23 @@ - if not @page.index? and not @page.not_found? = 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?}" } - = f.custom_input :templatized, :css => 'toggle' do + = f.custom_input :templatized, :css => 'toggle', :style => "#{'display: none' if @page.redirect?}" do = f.check_box :templatized = 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?}" } = f.custom_input :published, :css => 'toggle' do = f.check_box :published - = f.input :cache_strategy, :as => :select, :collection => options_for_page_cache_strategy, :include_blank => false + = f.custom_input :redirect, :css => 'toggle', :style => "#{'display: none' if @page.templatized?}" do + = f.check_box :redirect + + = f.input :cache_strategy, :as => :select, :collection => options_for_page_cache_strategy, :include_blank => false, :wrapper_html => { :style => "#{'display: none' if @page.redirect?}" } + + = f.input :redirect_url, :required => true, :wrapper_html => { :style => "#{'display: none' unless @page.redirect?}" } = render 'editable_elements', :page => @page = f.foldable_inputs :name => :raw_template do = f.custom_input :value, :css => 'code full', :with_label => false do \ No newline at end of file