Changeset 15835 for main/waeup.aaue/trunk/src/waeup/aaue
- Timestamp:
- 21 Nov 2019, 12:53:50 (5 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/applicants/browser.py
r15639 r15835 343 343 @property 344 344 def target_url(self): 345 if self.context.state in ('initialized', 'started', 'paid') \346 or self.context.special or self.view.target in ('trans', 'cert'):345 if self.context.state in ('initialized', 'started', 'paid'): 346 # or self.context.special or self.view.target in ('trans', 'cert'): 347 347 return 348 348 return self.view.url(self.view.context, self.target) … … 370 370 if note: 371 371 return '<br /><br />' + note 372 if self.target is not None and self.target in ( 373 'trans', 'cert', 'ver', 'send'): 374 return 372 375 if self.context.sex == 'm': 373 376 pronoun = 'he' … … 396 399 for field in UDE_OMIT_PDF_FIELDS: 397 400 form_fields = form_fields.omit(field) 401 elif self.target is not None and self.target == 'trans': 402 form_fields = grok.AutoFields(ITranscriptApplicant).omit( 403 'locked', 'suspended') 404 elif self.target is not None and self.target == 'ver': 405 form_fields = grok.AutoFields(IVerificationRequest).omit( 406 'locked', 'suspended') 407 elif self.target is not None and self.target == 'send': 408 form_fields = grok.AutoFields(ISendByEmailRequest).omit( 409 'locked', 'suspended') 410 elif self.target is not None and self.target == 'cert': 411 form_fields = grok.AutoFields(ICertificateRequest).omit( 412 'locked', 'suspended') 398 413 else: 399 414 for field in UG_OMIT_PDF_FIELDS: -
main/waeup.aaue/trunk/src/waeup/aaue/applicants/browser_templates/applicantdisplaypage.pt
r15735 r15835 20 20 <table i18n:domain="waeup.kofa" class="form-table"> 21 21 <tbody> 22 <tal:files tal:condition="python: view.target in ('trans', 'cert', 'ver', 'send')"> 23 <tr> 24 <td class="separator" colspan=2> 25 Files 26 </td> 27 </tr> 28 <tr> 29 <td colspan=2> 30 31 <span tal:replace="structure view/file_links" /> 32 33 </td> 34 </tr> 35 </tal:files> 22 36 <tal:widgets content="structure provider:widgets" /> 23 37 <tr tal:condition="view/getCourseAdmitted"> … … 37 51 </td> 38 52 <tr> 39 <tr tal:condition="python: view.target in ('trans', 'cert', 'ver', 'send')">40 <td class="fieldname" i18n:translate="">41 Files:42 </td>43 <td>44 <span tal:replace="structure view/file_links" />45 </td>46 </tr>47 53 </tbody> 48 54 </table>
Note: See TracChangeset for help on using the changeset viewer.