Changeset 11013 for main/waeup.kofa/branches/uli-diazo-themed
- Timestamp:
- 30 Jan 2014, 17:11:23 (11 years ago)
- Location:
- main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/applicants/browser_templates/applicantdisplaypage.pt
r11011 r11013 55 55 <tbody> 56 56 <tr tal:repeat="value context/values"> 57 <td> <a tal:attributes="href value/__name__">57 <td> <a tal:attributes="href python:view.url(value)"> 58 58 <span tal:content="value/p_id">PID</span></a></td> 59 59 <td tal:content="python: layout.formatDatetime(value.creation_date)">CREATION DATE</td> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/applicants/browser_templates/applicanteditpage.pt
r11011 r11013 105 105 tal:condition="python: not view.unremovable(cl)" /> 106 106 </td> 107 <td> <a tal:attributes="href cl/__name__">107 <td> <a tal:attributes="href python:view.url(cl)"> 108 108 <span tal:content="cl/p_id">PID</span></a></td> 109 109 <td tal:content="python: layout.formatDatetime(cl.creation_date)">CREATION DATE</td> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/departmentmanagepage.pt
r10999 r11013 91 91 </div> 92 92 <div id="tab4" class="tab-pane"> <br /> 93 <table class="dataTableManage">94 <thead>95 <tr>96 <th> 97 </th>98 <th i18n:translate="">User Id99 </th>100 <th i18n:translate="">Name101 </th>102 <th i18n:translate="">Local Role103 </th>104 </tr>105 </thead>106 <tbody>107 <tr tal:repeat="entry view/getUsersWithLocalRoles">108 <td> <input type="checkbox" name="role_id"109 tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td>110 <td tal:content="entry/user_name"> USERNAME </td>111 <td tal:content="entry/user_title"> USERTITLE </td>112 <td tal:content="entry/local_role_title"> LOCAL ROLE </td>113 </tr>114 </tbody>115 </table>93 <table class="dataTableManage"> 94 <thead> 95 <tr> 96 <th> 97 </th> 98 <th i18n:translate="">User Id 99 </th> 100 <th i18n:translate="">Name 101 </th> 102 <th i18n:translate="">Local Role 103 </th> 104 </tr> 105 </thead> 106 <tbody> 107 <tr tal:repeat="entry view/getUsersWithLocalRoles"> 108 <td> <input type="checkbox" name="role_id" 109 tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td> 110 <td tal:content="entry/user_name"> USERNAME </td> 111 <td tal:content="entry/user_title"> USERTITLE </td> 112 <td tal:content="entry/local_role_title"> LOCAL ROLE </td> 113 </tr> 114 </tbody> 115 </table> 116 116 <div tal:condition="view/availableActions"> 117 117 <span tal:repeat="action view/actions" tal:omit-tag=""> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/fileupload.pt
r8135 r11013 18 18 name python:('delete_%s' % viewlet.input_name); 19 19 value viewlet/delete_button" 20 class="btn error" />20 class="btn btn-danger" /> 21 21 <input type="submit" 22 22 tal:attributes="id python:('upload_%s' % viewlet.input_name); 23 23 name python:('upload_%s' % viewlet.input_name); 24 24 value viewlet/upload_button" 25 class="btn primary" />25 class="btn btn-primary" /> 26 26 <span i18n:translate=""> 27 27 Max. file size: -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/students/browser.py
r10706 r11013 40 40 from waeup.kofa.browser.pages import ContactAdminForm, ExportCSVView, doll_up 41 41 from waeup.kofa.browser.resources import ( 42 datepicker, datatable, tabs,warning, toggleall)42 datepicker, warning, toggleall) 43 43 from waeup.kofa.browser.layout import jsaction, action, UtilityView 44 44 from waeup.kofa.browser.interfaces import ICaptchaManager … … 263 263 264 264 def update(self, *args, **kw): 265 datatable.need()266 265 form = self.request.form 267 266 self.hitlist = [] … … 307 306 308 307 def update(self, *args, **kw): 309 datatable.need()310 308 toggleall.need() 311 309 warning.need() … … 536 534 def update(self): 537 535 datepicker.need() # Enable jQuery datepicker in date fields. 538 tabs.need()539 536 self.tab1 = self.tab2 = '' 540 537 qs = self.request.get('QUERY_STRING', '') … … 766 763 def update(self): 767 764 datepicker.need() # Enable jQuery datepicker in date fields. 768 tabs.need()769 765 self.tab1 = self.tab2 = '' 770 766 qs = self.request.get('QUERY_STRING', '') … … 987 983 return 988 984 super(StudyCourseManageFormPage, self).update() 989 tabs.need()990 985 self.tab1 = self.tab2 = '' 991 986 qs = self.request.get('QUERY_STRING', '') … … 994 989 setattr(self, qs, 'active') 995 990 warning.need() 996 datatable.need()997 991 return 998 992 … … 1023 1017 yield(dict(code=code, title=title)) 1024 1018 1025 @action(_('Add study level') )1019 @action(_('Add study level'), style='primary') 1026 1020 def addStudyLevel(self, **data): 1027 1021 level_code = self.request.form.get('addlevel', None) … … 1082 1076 def update(self, SUBMIT=None): 1083 1077 super(StudentTranscriptRequestPage, self).update() 1084 tabs.need()1085 1078 self.tab1 = self.tab2 = '' 1086 1079 qs = self.request.get('QUERY_STRING', '') … … 1157 1150 def update(self, SUBMIT=None): 1158 1151 super(StudentTranscriptRequestProcessFormPage, self).update() 1159 tabs.need()1160 1152 self.tab1 = self.tab2 = '' 1161 1153 qs = self.request.get('QUERY_STRING', '') … … 1375 1367 def update(self): 1376 1368 super(StudyLevelDisplayFormPage, self).update() 1377 datatable.need()1378 1369 return 1379 1370 … … 1486 1477 tabtwoactions = [_('Add course ticket'), 1487 1478 _('Remove selected tickets'),_('Cancel')] 1479 placeholder = _('Enter valid course code') 1488 1480 1489 1481 def update(self, ADD=None, course=None): … … 1492 1484 return 1493 1485 super(StudyLevelManageFormPage, self).update() 1494 tabs.need()1495 1486 self.tab1 = self.tab2 = '' 1496 1487 qs = self.request.get('QUERY_STRING', '') … … 1499 1490 setattr(self, qs, 'active') 1500 1491 warning.need() 1501 datatable.need()1502 1492 if ADD is not None: 1503 1493 if not course: … … 1721 1711 def update(self): 1722 1712 super(PaymentsManageFormPage, self).update() 1723 datatable.need()1724 1713 warning.need() 1725 1714 return … … 1991 1980 def update(self): 1992 1981 super(AccommodationManageFormPage, self).update() 1993 datatable.need()1994 1982 warning.need() 1995 1983 return … … 2646 2634 return 2647 2635 super(StudyLevelEditFormPage, self).update() 2648 datatable.need()2649 2636 warning.need() 2650 2637 if ADD is not None: … … 2965 2952 2966 2953 def update(self, SHOW=None, session=None, level=None): 2967 datatable.need()2968 2954 self.parent_url = self.url(self.context.__parent__) 2969 2955 self._set_session_values() … … 3080 3066 self.redirect(self.url(self.context)) 3081 3067 return 3082 datatable.need()3083 3068 self.tickets = self._searchCatalog(self.current_academic_session) 3084 3069 editable_tickets = [ -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/students/browser_templates/basemanagepage.pt
r9273 r11013 3 3 autocomplete="off"> 4 4 5 <ul class="tabs" data-tabs="tabs"> 6 <li tal:attributes="class view/tab1"><a href="#tab-1"> 7 <span i18n:translate="">Base Data</span></a></li> 8 <li tal:attributes="class view/tab2"><a href="#tab-2"> 9 <span i18n:translate="">Passport Picture</span></a></li> 5 <ul class="tabs nav nav-tabs" data-tabs="tabs"> 6 <li class="active"> 7 <a href="#tab1" data-toggle="tab"> 8 <span i18n:translate="">Base Data</span></a> 9 </li> 10 <li> 11 <a href="#tab2" data-toggle="tab"> 12 <span i18n:translate="">Passport Picture</span> 13 </a> 14 </li> 10 15 </ul> 11 16 12 17 <div class="tab-content"> 13 <div id="tab-1" tal:attributes="class view/tab1"> 18 <div id="tab1" class="active tab-pane"> 19 <br /> 14 20 <table class="form-table"> 15 21 <tbody> … … 18 24 <td class="fieldname" i18n:translate="">Password:</td> 19 25 <td> 20 <input name="password" type="password" />26 <input name="password" class="form-control" type="password" /> 21 27 </td> 22 28 </tr> … … 24 30 <td class="fieldname" i18n:translate="">Retype Password:</td> 25 31 <td> 26 <input name="control_password" type="password" />32 <input name="control_password" class="form-control" type="password" /> 27 33 </td> 28 34 </tr> … … 38 44 </div> 39 45 40 <div id="tab-2" tal:attributes="class view/tab2"> 46 <div id="tab2" class="tab-pane"> 47 <br /> 41 48 <table class="form-table"> 42 49 <tbody> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/students/browser_templates/change_password.pt
r8486 r11013 10 10 <td class="fieldname" i18n:translate="">Password:</td> 11 11 <td> 12 <input name="change_password" type="password" />12 <input name="change_password" class="form-control" type="password" /> 13 13 </td> 14 14 </tr> … … 16 16 <td class="fieldname" i18n:translate="">Retype Password:</td> 17 17 <td> 18 <input name="change_password_repeat" type="password" />18 <input name="change_password_repeat" class="form-control" type="password" /> 19 19 </td> 20 20 </tr> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/students/browser_templates/clearanceeditpage.pt
r7811 r11013 2 2 i18n:domain="waeup.kofa" enctype="multipart/form-data"> 3 3 4 <ul class="tabs" data-tabs="tabs"> 5 <li tal:attributes="class view/tab1"><a href="#tab-1"> 6 <span i18n:translate="">Clearance Data</span></a></li> 7 <li tal:attributes="class view/tab2"><a href="#tab-2"> 8 <span i18n:translate="">Scans</span></a></li> 4 <ul class="tabs nav nav-tabs" data-tabs="tabs"> 5 <li class="active"> 6 <a href="#tab1" data-toggle="tab"> 7 <span i18n:translate="">Clearance Data</span> 8 </a> 9 </li> 10 <li> 11 <a href="#tab2" data-toggle="tab"> 12 <span i18n:translate="">Scans</span> 13 </a> 14 </li> 9 15 </ul> 10 16 <div class="tab-content"> 11 <div id="tab -1" tal:attributes="class view/tab1">17 <div id="tab1" class="active tab-pane"> 12 18 <table class="form-table"> 13 19 <tbody> … … 23 29 </div> 24 30 25 <div id="tab -2" tal:attributes="class view/tab2">31 <div id="tab2" class="tab-pane"> 26 32 <table class="form-table"> 27 33 <tbody> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/students/browser_templates/enterpin.pt
r9952 r11013 8 8 <td> 9 9 <span tal:replace="view/ac_prefix">PIN Prefix</span> - 10 <input name="ac_series" type="text" class="span1"maxlength="3"10 <input name="ac_series" type="text" maxlength="3" 11 11 value="" tal:attributes="value view/ac_series"/> - 12 <input name="ac_number" type="text" class="span3"maxlength="10"12 <input name="ac_number" type="text" maxlength="10" 13 13 value="" tal:attributes="value view/ac_number" /> 14 14 <font color="red"><span tal:replace="view/notice">Notice</span> … … 24 24 <tr> 25 25 <td colspan="2"> 26 <input type="submit" name="SUBMIT" class="btn primary"26 <input type="submit" name="SUBMIT" class="btn btn-primary" 27 27 tal:attributes="value view/buttonname" /> 28 28 </td> … … 36 36 clicking the button below. 37 37 </p> 38 <input type="submit" name="SUBMIT" class="btn primary"38 <input type="submit" name="SUBMIT" class="btn btn-primary" 39 39 tal:attributes="value view/buttonname" /> 40 40 </span> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/students/browser_templates/imageupload.pt
r7876 r11013 9 9 tal:attributes="id python:('delete_%s' % viewlet.input_name); 10 10 name python:('delete_%s' % viewlet.input_name)" 11 value="Delete" class="btn error" />11 value="Delete" class="btn btn-danger" /> 12 12 <br /><br /> 13 13 <input type="file" tal:attributes="name viewlet/input_name"/> … … 17 17 name python:('upload_%s' % viewlet.input_name); 18 18 value viewlet/upload_button" 19 value="Upload" class="btn primary" />19 value="Upload" class="btn btn-primary" /> 20 20 <span i18n:translate=""> 21 21 Max. file size: -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/students/browser_templates/studycoursemanagepage.pt
r10266 r11013 2 2 i18n:domain="waeup.kofa" enctype="multipart/form-data"> 3 3 4 <ul class="tabs" data-tabs="tabs"> 5 <li tal:attributes="class view/tab1"><a href="#tab-1"> 6 <span i18n:translate="">Study Course Data</span></a> 4 <ul class="tabs nav nav-tabs" data-tabs="tabs"> 5 <li class="active"> 6 <a href="#tab1" data-toggle="tab"> 7 <span i18n:translate="">Study Course Data</span> 8 </a> 7 9 </li> 8 <li tal:attributes="class view/tab2"><a href="#tab-2"> 9 <span i18n:translate="">Study Levels</span></a> 10 <li t> 11 <a href="#tab2" data-toggle="tab"> 12 <span i18n:translate="">Study Levels</span> 13 </a> 10 14 </li> 11 15 </ul> 12 16 13 17 <div class="tab-content"> 14 <div id="tab-1" tal:attributes="class view/tab1"> 18 <div id="tab1" class="active tab-pane"> 19 <br /> 15 20 <table class="form-table"> 16 21 <tbody> … … 27 32 </div> 28 33 29 <div id="tab -2" tal:attributes="class view/tab2">30 < h3 i18n:translate="">Study Levels (Course Lists)</h3>31 <table class="d isplay dataTableManage">34 <div id="tab2" class="tab-pane"> 35 <br /> 36 <table class="dataTableManage"> 32 37 <thead> 33 38 <tr> … … 44 49 tal:attributes="value cl/__name__" /> 45 50 </td> 46 <td> <a tal:attributes="href cl/__name__">51 <td> <a tal:attributes="href python:view.url(cl)"> 47 52 <span tal:content="cl/level">CODE</span></a> 48 53 </td> … … 62 67 </div> 63 68 <br /><br /><br /> 64 <div> 69 70 71 <div class="form-inline"> 65 72 <span tal:condition="view/availableActions"> 66 < spantal:repeat="action view/actions"67 tal:omit-tag="">68 <input tal:condition="python:action.label in view.tabthreeactions"69 tal:replace="structure action/render"/>70 </ span>73 <div tal:repeat="action view/actions" 74 class="form-group"> 75 <input tal:condition="python:action.label in view.tabthreeactions" 76 tal:replace="structure action/render"/> 77 </div> 71 78 </span> 72 <select id="addlevel" name="addlevel" class='span5'> 73 <option tal:attributes="value level/code" tal:repeat="level view/level_dicts"> 74 <span tal:replace="level/title">LEVELTITLE 75 </span> 76 </option> 77 </select> 79 <div class="form-group"> 80 <select id="addlevel" name="addlevel"> 81 <option tal:attributes="value level/code" tal:repeat="level view/level_dicts"> 82 <span tal:replace="level/title">LEVELTITLE 83 </span> 84 </option> 85 </select> 86 </div> 78 87 <span i18n:translate="">in session</span> 79 <select id="level_session" name="level_session" class='span3'> 80 <option tal:attributes="value session/code" tal:repeat="session view/session_dicts"> 81 <span tal:replace="session/title">LEVELSESSION 82 </span> 83 </option> 84 </select> 88 <div class="form-group"> 89 <select id="level_session" name="level_session"> 90 <option tal:attributes="value session/code" tal:repeat="session view/session_dicts"> 91 <span tal:replace="session/title">LEVELSESSION 92 </span> 93 </option> 94 </select> 95 </div> 85 96 </div> 97 86 98 </div> 87 99 </div> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/students/browser_templates/studycoursepage.pt
r10250 r11013 64 64 <h3 i18n:domain="waeup.kofa" i18n:translate="">Study Levels (Course Lists)</h3> 65 65 66 <table i18n:domain="waeup.kofa" >66 <table i18n:domain="waeup.kofa" class="table"> 67 67 <thead> 68 68 <tr> … … 72 72 </thead> 73 73 <tbody> 74 <tr class="gradeC"tal:repeat="value context/values">75 <td> <a tal:attributes="href value/__name__">74 <tr tal:repeat="value context/values"> 75 <td> <a tal:attributes="href python:view.url(value)"> 76 76 <span tal:content="value/level">CODE</span></a></td> 77 77 <td tal:content="value/level_title">TITLE</td> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/students/browser_templates/studylevelmanagepage.pt
r10440 r11013 2 2 i18n:domain="waeup.kofa" enctype="multipart/form-data"> 3 3 4 <ul class="tabs" data-tabs="tabs"> 5 <li tal:attributes="class view/tab1"><a href="#tab-1"> 6 <span i18n:translate="">Study Level Data</span></a> 4 <ul class="tabs nav nav-tabs" data-tabs="tabs"> 5 <li class="active"> 6 <a href="#tab1" data-toggle="tab"> 7 <span i18n:translate="">Study Level Data</span> 8 </a> 7 9 </li> 8 <li tal:attributes="class view/tab2"><a href="#tab-2"> 9 <span i18n:translate="">Course Tickets</span> 10 </a></li> 10 <li> 11 <a href="#tab2" data-toggle="tab"> 12 <span i18n:translate="">Course Tickets</span> 13 </a> 14 </li> 11 15 </ul> 12 16 13 17 <div class="tab-content"> 14 <div id="tab-1" tal:attributes="class view/tab1"> 18 <div id="tab1" class="active tab-pane"> 19 <br /> 15 20 <table class="form-table"> 16 21 <tbody> … … 27 32 </div> 28 33 29 <div id="tab -2" tal:attributes="class view/tab2">30 < h3 i18n:translate="">Course Tickets</h3>34 <div id="tab2" class="tab-pane"> 35 <br /> 31 36 <table class="display dataTableManage"> 32 37 <thead> … … 74 79 </span> 75 80 </div> 76 77 81 <br /><br /><br /> 78 <table class="input-table"> 79 <tr> 80 <td> 81 <input class="btn primary" type="submit" name="ADD" 82 <div class="form-inline"> 83 <div class="form-group"> 84 <input class="btn btn-primary" type="submit" name="ADD" 82 85 i18n:translate="" 83 86 value="Add course ticket" /> 84 </td> 85 <td> 86 <input type="text" name="course" /> 87 <div class="hint" i18n:translate=""> 88 Enter valid course code. 89 </div> 90 </td> 91 </tr> 92 </table> 87 </div> 88 <div class="form-group"> 89 <input type="text" name="course" class="form-control" 90 tal:attributes="placeholder view/placeholder" /> 91 </div> 92 </div> 93 <br /> 93 94 <p i18n:translate=""> 94 95 You don't know the course code? Then select a course -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/students/browser_templates/studylevelpage.pt
r10440 r11013 1 1 <table class="form-table" i18n:domain="waeup.kofa"> 2 <thead>3 </thead>4 2 <tbody> 5 3 <tal:block repeat="widget view/widgets"> … … 20 18 <h3 i18n:domain="waeup.kofa" i18n:translate="">Course Tickets</h3> 21 19 22 <table class="display dataTable" i18n:domain="waeup.kofa"> 23 <thead> 24 <tr> 25 <th i18n:translate="">Term</th> 26 <th i18n:translate="">Code</th> 27 <th i18n:translate="">Title</th> 28 <th i18n:translate="">Dep.</th> 29 <th i18n:translate="">Fac.</th> 30 <th i18n:translate="">Cred.</th> 31 <th i18n:translate="">Requ.</th> 32 <th i18n:translate="">Score</th> 33 <th i18n:translate="">Grade</th> 34 <th i18n:translate="">CO</th> 35 <th i18n:translate="">Auto</th> 36 </tr> 37 </thead> 38 <tbody> 39 <tr tal:repeat="value view/translated_values" class="gradeC"> 40 <td tal:content="value/semester" nowrap>TERM</td> 41 <td> <a tal:attributes="href value/__name__"> 42 <span tal:content="value/code">CODE</span> 43 </a></td> 44 <td tal:content="value/title">TITLE</td> 45 <td tal:content="value/dcode">DEPARTMENT</td> 46 <td tal:content="value/fcode">FACULTY</td> 47 <td tal:content="value/credits">CREDITS</td> 48 <td tal:content="value/mandatory">MANDATORY</td> 49 <td tal:content="value/score|nothing">SCORE</td> 50 <td tal:content="value/grade|nothing">GRADE</td> 51 <td tal:content="value/carry_over">CO</td> 52 <td tal:content="value/automatic">AUTO</td> 53 </tr> 54 </tbody> 55 </table> 20 <div class="table-responsive"> 21 <table class="dataTable" i18n:domain="waeup.kofa"> 22 <thead> 23 <tr> 24 <th i18n:translate="">Term</th> 25 <th i18n:translate="">Code</th> 26 <th i18n:translate="">Title</th> 27 <th i18n:translate="">Dep.</th> 28 <th i18n:translate="">Fac.</th> 29 <th i18n:translate="">Cred.</th> 30 <th i18n:translate="">Requ.</th> 31 <th i18n:translate="">Score</th> 32 <th i18n:translate="">Grade</th> 33 <th i18n:translate="">CO</th> 34 <th i18n:translate="">Auto</th> 35 </tr> 36 </thead> 37 <tbody> 38 <tr tal:repeat="value view/translated_values"> 39 <td tal:content="value/semester" nowrap>TERM</td> 40 <td> <a tal:attributes="href value/__name__"> 41 <span tal:content="value/code">CODE</span> 42 </a></td> 43 <td tal:content="value/title">TITLE</td> 44 <td tal:content="value/dcode">DEPARTMENT</td> 45 <td tal:content="value/fcode">FACULTY</td> 46 <td tal:content="value/credits">CREDITS</td> 47 <td tal:content="value/mandatory">MANDATORY</td> 48 <td tal:content="value/score|nothing">SCORE</td> 49 <td tal:content="value/grade|nothing">GRADE</td> 50 <td tal:content="value/carry_over">CO</td> 51 <td tal:content="value/automatic">AUTO</td> 52 </tr> 53 </tbody> 54 </table> 55 </div> 56 56 57 57 -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/students/viewlets.py
r10816 r11013 891 891 template = default_fileupload_template 892 892 grok.require('waeup.uploadStudentFile') 893 tab_redirect = ' ?tab2'893 tab_redirect = '#tab2' 894 894 mus = 1024 * 150 895 895 upload_button =_('Upload new file') … … 959 959 mus = 1024 * 50 960 960 download_name = u'passport.jpg' 961 tab_redirect = ' ?tab2'961 tab_redirect = '#tab2' 962 962 963 963 class PassportUploadEdit(PassportUploadManage): … … 986 986 mus = 1024 * 150 987 987 download_name = u'birth_certificate' 988 tab_redirect = ' ?tab2'988 tab_redirect = '#tab2' 989 989 990 990 class Image(grok.View):
Note: See TracChangeset for help on using the changeset viewer.