Pages now have a custom add form template which notifies the user that they must...
authorJoseph Spiros <joseph.spiros@ithinksw.com>
Wed, 16 Jun 2010 12:13:39 +0000 (08:13 -0400)
committerJoseph Spiros <joseph.spiros@ithinksw.com>
Wed, 16 Jun 2010 12:13:39 +0000 (08:13 -0400)
admin.py
templates/admin/philo/page/add_form.html [new file with mode: 0644]

index 74e3d07..37939e8 100644 (file)
--- 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 (file)
index 0000000..a200165
--- /dev/null
@@ -0,0 +1,7 @@
+{% extends "admin/change_form.html" %}
+{% load i18n %}
+
+{% block form_top %}
+       <p>{% trans "First, choose a template. After saving, you'll be able to provide additional content for containers." %}</p>
+       <input type="hidden" name="_continue" value="1" />
+{% endblock %}