From db4d2af1bc0518f3cdfc5de8787453c90b14a9ae Mon Sep 17 00:00:00 2001 From: Dirk Kelly Date: Tue, 1 Feb 2011 14:50:32 +0800 Subject: [PATCH] Added unlisted selector to page form --- app/views/admin/pages/_form.html.haml | 3 +++ config/locales/formtastic.en.yml | 1 + 2 files changed, 4 insertions(+) diff --git a/app/views/admin/pages/_form.html.haml b/app/views/admin/pages/_form.html.haml index 3a351b3d..785666ee 100644 --- a/app/views/admin/pages/_form.html.haml +++ b/app/views/admin/pages/_form.html.haml @@ -19,6 +19,9 @@ = f.custom_input :published, :css => 'toggle' do = f.check_box :published + = f.custom_input :unlisted, :css => 'toggle', :style => "#{'display: none' if @page.templatized?}" do + = f.check_box :unlisted + = 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 6bc5a66e..edfb15d2 100644 --- a/config/locales/formtastic.en.yml +++ b/config/locales/formtastic.en.yml @@ -43,6 +43,7 @@ en: published: "Only authenticated accounts can view unpublished pages." cache_strategy: "Cache the page for better performance. The 'Simple' choice is a good compromise." templatized: "Use the page as a template for a model you defined." + unlisted: "Hide the page from any generated menus, it will still be accessible directly" snippet: slug: "You need to know it in order to insert the snippet inside a page" site: