From 0835c42da3f8daa85194a246c143032943af9bcf Mon Sep 17 00:00:00 2001 From: Joseph Spiros Date: Wed, 16 Jun 2010 08:13:39 -0400 Subject: [PATCH] Pages now have a custom add form template which notifies the user that they must select a template and save before containers will be available. --- admin.py | 1 + templates/admin/philo/page/add_form.html | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 templates/admin/philo/page/add_form.html diff --git a/admin.py b/admin.py index 74e3d07..37939e8 100644 --- a/admin.py +++ b/admin.py @@ -102,6 +102,7 @@ class FileAdmin(NodeAdmin): class PageAdmin(NodeAdmin): + add_form_template = 'admin/philo/page/add_form.html' prepopulated_fields = {'slug': ('title',)} fieldsets = ( (None, { diff --git a/templates/admin/philo/page/add_form.html b/templates/admin/philo/page/add_form.html new file mode 100644 index 0000000..a200165 --- /dev/null +++ b/templates/admin/philo/page/add_form.html @@ -0,0 +1,7 @@ +{% extends "admin/change_form.html" %} +{% load i18n %} + +{% block form_top %} +

{% trans "First, choose a template. After saving, you'll be able to provide additional content for containers." %}

+ +{% endblock %} -- 2.20.1