Changeset 6465 for main/waeup.sirp
- Timestamp:
- 23 Jun 2011, 09:43:06 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/authentication.py
r6456 r6465 68 68 if prefix is not None: 69 69 self.id = '%s.%s' % (prefix, self.id) 70 self.title = u' My Application'70 self.title = u'Applicant' 71 71 self.description = u'An applicant' 72 72 self.groups = [] -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r6462 r6465 546 546 @property 547 547 def title(self): 548 if self.request.principal.title == 'Applicant': 549 return u'Your Application Record' 548 550 return '%s' % self.context.access_code 549 551 … … 749 751 grok.template('form_edit') 750 752 manage_applications = False 753 title = u'Your Application Form' 751 754 752 755 -
main/waeup.sirp/trunk/src/waeup/sirp/browser/layout.py
r6342 r6465 142 142 if usertitle == 'Unauthenticated User': 143 143 return u'Anonymous User' 144 elif usertitle == 'Applicant': 145 return self.request.principal.id 144 146 return usertitle 145 147 -
main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
r6447 r6465 375 375 return tt 376 376 377 @property 378 def namefield_label(self): 379 if self.request.principal.title == 'Applicant': 380 return 'Access Code' 381 else: 382 return 'Full Name' 383 377 384 def update(self, *args, **kw): 378 385 form = self.request.form -
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/contactadminform.pt
r5433 r6465 5 5 <tr> 6 6 <td width="150px"> 7 <strong> Full Name: </strong>7 <strong><span tal:replace="view/namefield_label" />: </strong> 8 8 </td> 9 9 <td tal:condition="not:layout/isAuthenticated"> 10 <input name="fullname" type="text" id="fullname" tal:attributes="value view/fullname|nothing"/>10 <input name="fullname" type="text" id="fullname"/> 11 11 </td> 12 12 <td tal:condition="layout/isAuthenticated"> … … 29 29 </td> 30 30 <td> 31 <textarea name="descr" rows="10" cols="60" id="descr"><span tal:replace="view/descr|nothing" /></textarea> 32 31 <textarea name="descr" rows="10" cols="60" id="descr"></textarea> 33 32 </td> 34 33 </tr>
Note: See TracChangeset for help on using the changeset viewer.