app/soc/views/models/role.py
changeset 518 d9d31d316a74
parent 512 aae25d2b4464
child 520 b0c623819b68
--- a/app/soc/views/models/role.py	Thu Nov 20 21:06:21 2008 +0000
+++ b/app/soc/views/models/role.py	Thu Nov 20 21:08:07 2008 +0000
@@ -66,6 +66,8 @@
 
   All views that only Role entities have are defined in this subclass.
   """
+  
+  DEF_INVITE_INSTRUCTION_TEXT = ugettext_lazy('Please use this form to invite someone to become a %(name)s.')
 
   def __init__(self, original_params=None):
     """
@@ -85,13 +87,14 @@
 
     new_params = {}
 
-    new_params['list_template'] = 'soc/models/create_invite.html'
+    new_params['list_template'] = 'soc/models/list.html'
     new_params['list_redirect_action'] = '/request/create/%s/%s' % (
         self._params['url_name'], kwargs['link_id'])
     new_params['list_redirect_entity'] = self._params['name']
     new_params['name'] = self._params['name']
     new_params['name_short'] = self._params['name_short']
     new_params['name_plural'] = self._params['name_plural']
+    new_params['instruction_text'] = self.DEF_INVITE_INSTRUCTION_TEXT % self._params
 
     params = dicts.merge(params, new_params)