From: Stephen Burrows Date: Tue, 5 Apr 2011 21:07:59 +0000 (-0400) Subject: Improved reporting of deletion consequences. Removed vestigial "Advanced" menu. X-Git-Url: http://git.ithinksw.org/philo.git/commitdiff_plain/bf8e7237a705e2db952d94e7acde3b9f7a99ef91 Improved reporting of deletion consequences. Removed vestigial "Advanced" menu. --- diff --git a/contrib/gilbert/media/gilbert/plugins/models.js b/contrib/gilbert/media/gilbert/plugins/models.js index 79ef0b3..e952a32 100644 --- a/contrib/gilbert/media/gilbert/plugins/models.js +++ b/contrib/gilbert/media/gilbert/plugins/models.js @@ -38,7 +38,7 @@ Ext.override(Gilbert.lib.models.Model, { }); } callback(new Gilbert.lib.ui.DjangoForm(Ext.applyIf(Ext.applyIf(config||{},{ - title: 'Editing '+model.verbose_name+' ('+pk+')', + title: 'Editing '+model.verbose_name.capfirst()+' ('+pk+')', header: false, iconCls: 'icon-pencil', baseCls: 'x-plain', @@ -196,6 +196,15 @@ Gilbert.lib.plugins.models.ui.ModelPanel = Ext.extend(Ext.Panel, { return new_consequences; }; + var new_consequences = convert_consequences_array(consequences); + var nested_consequences = false; + for(var i=0;i', - { - text: 'Advanced', - iconCls: 'icon-gear', - disabled: true, - menu: [], - }, + //'->', + //{ + // text: 'Advanced', + // iconCls: 'icon-gear', + // disabled: true, + // menu: [], + //}, ], }), items: [grid], diff --git a/contrib/penfield/gilbert.py b/contrib/penfield/gilbert.py index cae1936..e6e8251 100644 --- a/contrib/penfield/gilbert.py +++ b/contrib/penfield/gilbert.py @@ -9,7 +9,7 @@ class BlogAdmin(ModelAdmin): class BlogEntryAdmin(ModelAdmin): search_fields = ('title', 'content',) - data_columns = ('title', 'author', 'date',) + data_columns = ('title', 'author', 'blog', 'date',) site.register_model(Blog, BlogAdmin, icon_name='blog')