Changeset 14646
- Timestamp:
- 23 Mar 2017, 04:02:34 (8 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/browser
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/layout.py
r13513 r14646 307 307 return None 308 308 309 @property 310 def course_cat_used(self): 311 if len(getUtility(IKofaUtils).COURSE_CATEGORY_DICT): 312 return True 313 return False 314 309 315 def render(self): 310 316 if self.isStudent() or self.isApplicant() or not self.isAuthenticated(): -
main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
r14645 r14646 2561 2561 @property 2562 2562 def course_category_title(self): 2563 return getUtility(IKofaUtils).COURSE_CATEGORY_DICT[ 2564 self.context.course_category] 2563 cc = self.context.course_category 2564 if cc: 2565 return getUtility(IKofaUtils).COURSE_CATEGORY_DICT[cc] 2566 return 2565 2567 2566 2568 class CertificateCourseManageFormPage(KofaEditFormPage): -
main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/certificatecoursepage.pt
r14645 r14646 27 27 <td tal:content="view/leveltitle">LEVEL</td> 28 28 </tr> 29 <tr >29 <tr tal:condition="layout/course_cat_used"> 30 30 <td i18n:translate="">Course Category:</td> 31 31 <td tal:content="view/course_category_title">NONE</td> -
main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/certificatemanagepage.pt
r14264 r14646 41 41 <th i18n:translate="">Dep. Course</th> 42 42 <th i18n:translate="">Title</th> 43 <th i18n:translate="" tal:condition="layout/course_cat_used">Course Cat.</th> 43 44 <th i18n:translate="">Required</th> 44 45 </tr> … … 71 72 <span tal:content="cc/course/title"> 72 73 COURSE TITLE 74 </span> 75 </td> 76 <td tal:condition="layout/course_cat_used"> 77 <span tal:content="cc/course_category"> 78 COURSE CAT 73 79 </span> 74 80 </td> -
main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/certificatepage.pt
r11254 r14646 31 31 <th i18n:translate="">Dep. Course</th> 32 32 <th i18n:translate="">Title</th> 33 <th i18n:translate="" tal:condition="layout/course_cat_used">Course Cat.</th> 33 34 <th i18n:translate="">Required</th> 34 35 </tr> … … 58 59 </span> 59 60 </td> 61 <td tal:condition="layout/course_cat_used"> 62 <span tal:content="cc/course_category"> 63 COURSE CAT 64 </span> 65 </td> 60 66 <td> 61 67 <span tal:content="cc/mandatory">
Note: See TracChangeset for help on using the changeset viewer.