From: Joseph Spiros Date: Wed, 16 Jun 2010 12:13:39 +0000 (-0400) Subject: Pages now have a custom add form template which notifies the user that they must... X-Git-Tag: philo-0.9~79^2~2 X-Git-Url: http://git.ithinksw.org/philo.git/commitdiff_plain/0835c42da3f8daa85194a246c143032943af9bcf 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. --- 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 %}