diff --git a/src/postorius/templates/postorius/lists/settings.html b/src/postorius/templates/postorius/lists/settings.html
index 1f458dd..2e79690 100644
--- a/src/postorius/templates/postorius/lists/settings.html
+++ b/src/postorius/templates/postorius/lists/settings.html
@@ -20,7 +20,7 @@
{{ field.errors }}
{{ field.label_tag }}:
- [More info{{ field.help_text }}
+ [More info{{ field.help_text }}
]
| {{ field }} |
{% endfor %}
diff --git a/src/postorius/urls.py b/src/postorius/urls.py
index 9d6c2f6..b4f2515 100644
--- a/src/postorius/urls.py
+++ b/src/postorius/urls.py
@@ -77,6 +77,8 @@
url(r'^lists/(?P[^/]+)/settings/(?P[^/]+)?'
'(?:/(?P.*))?$', 'list_settings',
name='list_settings'),
+ url(r'^more_info/(?P[^/]+)/(?P[^/]+)$', 'more_info_tab', name='more_info_tab'),
+
# /users/
url(r'^users/$', 'user_index', name='user_index'),
url(r'^users/new/$', 'user_new', name='user_new'),
diff --git a/src/postorius/views/user.py b/src/postorius/views/user.py
index 93e005f..a40c456 100644
--- a/src/postorius/views/user.py
+++ b/src/postorius/views/user.py
@@ -1,5 +1,5 @@
-# -*- coding: utf-8 -*-
-# Copyright (C) 1998-2012 by the Free Software Foundation, Inc.
+# -*- coding: utf-8 -*-
+# Copyright (C) 1998-2013 by the Free Software Foundation, Inc.
#
# This file is part of Postorius.
#
@@ -272,3 +272,21 @@
def user_tasks(request):
return render_to_response('postorius/user_tasks.html',
context_instance=RequestContext(request))
+
+@login_required
+def more_info_tab(request, formid=None, helpid=None, template='postorius/more_info_display.html'):
+ """Displays more_info in new tab.
+ """
+
+ if(formid == 'list_settings'):
+ form = ListSettings(visible_section='List Identity', visible_option='None', data=request.POST)
+
+ for field in form:
+ if field.name == helpid:
+ help_text = field.help_text
+
+ return render_to_response(template,
+ {'help_text':help_text,
+ 'helpid':helpid},
+ context_instance=RequestContext(request))
+