- Timestamp:
- 1 Aug 2024, 11:02:51 (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/viewlets.py
r17813 r17866 93 93 icon = 'actionicon_pdf.png' 94 94 95 # Final Clearance Officer buttons 96 97 class StudentFinallyClearActionButton(ManageActionButton): 98 grok.order(13) 99 grok.context(INigeriaStudent) 100 grok.view(NigeriaStudentBaseDisplayFormPage) 101 grok.require('waeup.clearStudentFinally') 102 text = _('Clear student finally') 103 target = 'clear_finally' 104 icon = 'actionicon_accept.png' 105 106 @property 107 def target_url(self): 108 if self.context.finally_cleared_by: 109 return '' 110 return self.view.url(self.view.context, self.target) 111 112 class StudentWithdrawFinalClearanceActionButton(ManageActionButton): 113 grok.order(14) 114 grok.context(INigeriaStudent) 115 grok.view(NigeriaStudentBaseDisplayFormPage) 116 grok.require('waeup.clearStudentFinally') 117 text = _('Withdraw final clearance') 118 target = 'withdraw_final_clearance' 119 icon = 'actionicon_reject.png' 120 121 @property 122 def target_url(self): 123 if not self.context.finally_cleared_by: 124 return '' 125 return self.view.url(self.view.context, self.target) 126 95 127 # Acceptance Letter 96 128
Note: See TracChangeset for help on using the changeset viewer.