Changeset 911 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 20 Nov 2006, 15:11:29 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/application_view.pt
r805 r911 9 9 10 10 <div style="text-align: right" 11 tal:condition="python:review_state in ('admission_applied','clearance_pin_entered','admitted',)">11 tal:condition="python:review_state not in ('created','application_pin_entered',)"> 12 12 <a href="" target="slip" tal:attributes="href string:application_slip" 13 13 onclick="javascript:window.open('','slip','width=600, height=700, directories=no, toolbar=no, location=no, menubar=yes, scrollbars=yes, status=no, resizable=no, dependent=no')"> -
WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_form.pt
r903 r911 2 2 <tal:block define=" 3 3 info context/getStudentInfo; 4 is SectionManagercontext/isSectionManager;5 is Staff context/isStaff;6 is ClearanceOfficercontext/isClearanceOfficer;7 is Student context/isStudent;4 is_sm context/isSectionManager; 5 is_staff context/isStaff; 6 is_co context/isClearanceOfficer; 7 is_student context/isStudent; 8 8 review_state info/review_state; 9 9 clear_review_state info/clear_review_state; 10 editable python: (is Student and clear_review_state == 'opened' or isSectionManager) and not isClearanceOfficer;10 editable python: (is_student and clear_review_state == 'opened' or is_sm) and not is_co; 11 11 mode python: test(editable,'edit','view'); 12 12 rendered_main python:info['clear_doc'].render(request=request, -
WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_lib.pt
r903 r911 4 4 <metal:block define-macro="header"> 5 5 <!-- Administration --> 6 <tal:block condition="python: not(is Staff or isSectionManager or isStudent)">6 <tal:block condition="python: not(is_staff or is_sm or is_student)"> 7 7 <metal:block use-macro="here/error_not_found/macros/not_found" /> 8 8 </tal:block> 9 <tal:block condition="python: isStaff or isSectionManager"> 10 <a href="" tal:condition="python: 0" 11 tal:attributes="href string:${here/academicsParent}"> 12 <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/> 13 Up one level 14 </a> 9 <tal:block condition="is_staff"> 15 10 <h3> 16 11 <span tal:condition="info"> … … 21 16 <br /> 22 17 </tal:block> 23 <!-- 24 <tal:block condition="python: is Student">18 <!-- Student --> 19 <tal:block condition="python: is_student"> 25 20 <a href="" 26 21 tal:attributes="href string:${here/academicsParent}"> … … 34 29 <!-- buttons --> 35 30 <metal:block define-macro="buttons"> 36 <!-- isSectionManager -->31 <!-- SectionManager --> 37 32 <tal:block condition="context/isSectionManager"> 38 33 … … 69 64 tal:condition="python:review_state in ('cleared_and_validated','clearance_requested',)" /> 70 65 </tal:block> 71 <!-- isClearanceOfficer -->72 <tal:block condition=" context/isClearanceOfficer">66 <!-- ClearanceOfficer --> 67 <tal:block condition="is_co"> 73 68 <input type="submit" class="standalone" 74 69 name="clear_and_validate_button" … … 82 77 tal:condition="python:review_state in ('cleared_and_validated','clearance_requested',)" /> 83 78 </tal:block> 84 <!-- isStudent -->85 <tal:block condition=" context/isStudent">79 <!-- Student --> 80 <tal:block condition="is_student"> 86 81 87 82 <div tal:condition="python:info['review_state'] == 'clearance_pin_entered'"> -
WAeUP_SRP/trunk/skins/waeup_student/clearance_view.pt
r891 r911 1 1 <metal:html tal:define="info context/getStudentInfo; 2 is_ manager info/is_manager|nothing;2 is_so info/is_so|nothing; 3 3 is_student info/is_student|nothing; 4 4 "> … … 22 22 23 23 <h3> 24 <span tal:condition="python:is_ managerand info">24 <span tal:condition="python:is_so and info"> 25 25 <span tal:content="info/student/Title" />: 26 26 </span> -
WAeUP_SRP/trunk/skins/waeup_student/contact_student_form.pt
r895 r911 1 1 <metal:html tal:define="member python:context.portal_membership.getAuthenticatedMember(); 2 2 info context/getStudentInfo; 3 is_manager info/is_manager|nothing;4 is_student info/is_student|nothing;5 is_co info/is_co|nothing;6 3 "> 7 4 <metal:body use-macro="here/main_template/macros/master"> -
WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
r903 r911 21 21 22 22 info = {} 23 info['is_ manager'] = context.isSectionManager()23 info['is_sm'] = context.isSectionManager() 24 24 info['is_student'] = context.isStudent() 25 25 info['is_co'] = context.isClearanceOfficer() 26 info['is_so'] = context.isSectionOfficer() 26 27 member_id = str(member) 27 28 if student is None: -
WAeUP_SRP/trunk/skins/waeup_student/getStudyCourseInfo.py
r903 r911 18 18 19 19 info = {} 20 info['is_manager'] = context.isSectionManager() 20 info['is_sm'] = context.isSectionManager() 21 info['is_so'] = context.isSectionOfficer() 21 22 info['is_student'] = context.isStudent() 22 23 info['action'] = "%s" % context.campus.absolute_url() -
WAeUP_SRP/trunk/skins/waeup_student/getStudyLevelInfo.py
r903 r911 44 44 student_id = pt[-(3+p)] 45 45 level_id = pt[-(1+p)] 46 info['is_manager'] = context.isSectionManager() 46 info['is_sm'] = context.isSectionManager() 47 info['is_so'] = context.isSectionOfficer() 47 48 info['is_student'] = context.isStudent() 48 49 info['action'] = "%s" % context.absolute_url() -
WAeUP_SRP/trunk/skins/waeup_student/pume_view.pt
r805 r911 9 9 10 10 <div style="text-align: right" 11 tal:condition="python:review_state in ('admitted', 'pume_passed', 'pume_failed', 'clearance_pin_entered',)">11 > 12 12 <a href="" target="slip" tal:attributes="href string:pume_slip" 13 13 onclick="javascript:window.open('','slip','width=600, height=700, directories=no, toolbar=no, location=no, menubar=yes, scrollbars=yes, status=no, resizable=no, dependent=no')"> -
WAeUP_SRP/trunk/skins/waeup_student/searchStudents.py
r903 r911 1 ## Script (Python) " co_searchStudents"1 ## Script (Python) "searchStudents" 2 2 ##bind container=container 3 3 ##bind context=context … … 49 49 pr = context.portal_registration 50 50 path_info = request.get('PATH_INFO').split('/') 51 is_manager = context.isSectionManager()52 51 validate = request.has_key("cpsdocument_edit_button") 53 52 default = {'search_mode': 'name', -
WAeUP_SRP/trunk/skins/waeup_student/student_view.pt
r895 r911 1 1 <metal:html tal:define="info context/getStudentInfo; 2 is_manager info/is_manager|nothing; 2 is_so info/is_so|nothing; 3 is_staff context/isStaff; 3 4 is_student info/is_student|nothing"> 4 5 <metal:body use-macro="here/main_template/macros/master"> … … 11 12 rows python: info['items']"> 12 13 13 <a href="" tal:condition="is_ manager"14 <a href="" tal:condition="is_staff" 14 15 tal:attributes="href string:${here/academicsParent}"> 15 16 <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/> … … 20 21 <br /> 21 22 22 <table tal:condition="is_ manager" class="contentListing" width="100%" summary="content layout" id="folder_content">23 <table tal:condition="is_staff" class="contentListing" width="100%" summary="content layout" id="folder_content"> 23 24 <tr tal:repeat="row rows" 24 25 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> -
WAeUP_SRP/trunk/skins/waeup_student/study_course_view.pt
r805 r911 1 1 <metal:html tal:define="info context/getStudyCourseInfo; 2 is_ manager info/is_manager|nothing;2 is_so info/is_so|nothing; 3 3 s_info context/getStudentInfo;" 4 4 > … … 11 11 </a> 12 12 <h3> 13 <span tal:condition="python:is_ managerand s_info">13 <span tal:condition="python:is_so and s_info"> 14 14 <span tal:content="s_info/student/Title" />: 15 15 </span> … … 30 30 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> 31 31 <td align="left" valign="middle" style="width: 5px;" 32 tal:condition="python: 0 and is_ manager">32 tal:condition="python: 0 and is_so"> 33 33 <input type="checkbox" name="ids:list" value="" id="" class="noborder" 34 tal:condition="is_ manager"34 tal:condition="is_so" 35 35 tal:define="id row/id" 36 36 tal:attributes="value id; … … 49 49 <td align="left" valign="top" rowspan="3"></td> 50 50 <td align="left" valign="top"> 51 <span tal:condition="python:0 and is_ manager">51 <span tal:condition="python:0 and is_so"> 52 52 <input type="button" value="button_select_all" class="context" 53 53 onclick="someJavaScriptFunctionThatWillBeReplaced" -
WAeUP_SRP/trunk/skins/waeup_student/study_level_view.pt
r805 r911 1 1 <metal:html tal:define="info context/getStudyLevelInfo; 2 is_ manager info/is_manager|nothing;2 is_so info/is_so|nothing; 3 3 s_info context/getStudentInfo;" 4 4 > … … 11 11 </a> 12 12 <h3> 13 <span tal:condition="python:is_ managerand s_info">13 <span tal:condition="python:is_so and s_info"> 14 14 <span tal:content="s_info/student/Title" />: 15 15 </span> … … 34 34 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> 35 35 <td align="left" valign="middle" style="width: 5px;" 36 tal:condition="python:1 and is_ manager">36 tal:condition="python:1 and is_so"> 37 37 <input type="checkbox" name="ids:list" value="" id="" class="noborder" 38 tal:condition="is_ manager"38 tal:condition="is_so" 39 39 tal:define="id row/id" 40 40 tal:attributes="value id; … … 48 48 <td tal:content="row/semester"></td> 49 49 <td tal:content="row/credits"></td> 50 <td tal:condition="is_ manager" tal:content="row/score"></td>50 <td tal:condition="is_so" tal:content="row/score"></td> 51 51 <td tal:content="row/grade"></td> 52 52 <td tal:content="row/weight"></td> … … 70 70 <td align="left" valign="top" rowspan="3"></td> 71 71 <td align="left" valign="top"> 72 <span tal:condition="python:1 and is_ manager">72 <span tal:condition="python:1 and is_so"> 73 73 <input type="button" value="button_select_all" class="context" 74 74 onclick="someJavaScriptFunctionThatWillBeReplaced" -
WAeUP_SRP/trunk/skins/waeup_student/support_form.pt
r890 r911 1 1 <metal:html tal:define="info context/getStudentInfo; 2 is_manager info/is_manager|nothing; 3 is_student info/is_student|nothing"> 2 "> 4 3 <metal:body use-macro="here/main_template/macros/master"> 5 4 <metal:main fill-slot="main">
Note: See TracChangeset for help on using the changeset viewer.