From: hernani Date: Mon, 30 Aug 2010 16:19:19 +0000 (+0000) Subject: Finished with node bulk management, although only option for now is to delete nodes. X-Git-Tag: live~559 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/483162a72bfe820b11db05c384c0fc6103d084cf Finished with node bulk management, although only option for now is to delete nodes. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@575 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/forms/admin.py b/forum/forms/admin.py index 00dc336..7bf789e 100644 --- a/forum/forms/admin.py +++ b/forum/forms/admin.py @@ -100,6 +100,17 @@ class NodeManFilterForm(forms.Form): node_type = forms.CharField(widget=forms.HiddenInput, initial='all') state_type = forms.CharField(widget=forms.HiddenInput, initial='any') text = forms.CharField(required=False, widget=forms.TextInput(attrs={'size': 40})) - text_in = forms.ChoiceField(widget=forms.RadioSelect, choices=TEXT_IN_CHOICES, initial='title') + text_in = forms.ChoiceField(required=False, widget=forms.RadioSelect, choices=TEXT_IN_CHOICES, initial='title') + + +NODE_SHOW_CHOICES = ( +('score', _('Score')), +('added_at', 'Added at'), +('last_activity_at', 'Last activity at'), +('last_activity_by', 'Last activity by') +) + +class NodeManShowForm(forms.Form): + show = forms.MultipleChoiceField(choices=NODE_SHOW_CHOICES, widget=forms.CheckboxSelectMultiple) \ No newline at end of file diff --git a/forum/skins/default/templates/osqaadmin/nodeman.html b/forum/skins/default/templates/osqaadmin/nodeman.html index 9e6c194..d9576e5 100644 --- a/forum/skins/default/templates/osqaadmin/nodeman.html +++ b/forum/skins/default/templates/osqaadmin/nodeman.html @@ -1,7 +1,6 @@ {% extends basetemplate %} -{% load i18n %} -{% load user_tags %} +{% load i18n user_tags extra_tags %} {% block adminjs %}