- Timestamp:
- 20 Nov 2006, 15:11:29 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 1 added
- 39 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_academics/academics_search_view.pt
r805 r911 2 2 portal_status_message options/psm; 3 3 objects options/objects; 4 is_ manager options/is_manager;4 is_so options/is_so; 5 5 " 6 6 > … … 14 14 15 15 <metal:main fill-slot="main"> 16 <span tal:condition="not: is_ manager">16 <span tal:condition="not: is_so"> 17 17 <metal:block use-macro="here/error_not_found/macros/not_found" /> 18 18 </span> 19 <span tal:condition="is_ manager"19 <span tal:condition="is_so" 20 20 tal:define="items objects; 21 21 columns python:3; … … 54 54 tal:attributes="class python:test(repeat['object'].even(), 'even ajaxtd', 'odd ajaxtd')"> 55 55 <td align="left" valign="middle" style="width: 5px;" 56 tal:condition="is_ manager">56 tal:condition="is_so"> 57 57 <input type="checkbox" name="ids:list" value="" id="" class="noborder" 58 tal:condition="is_ manager"58 tal:condition="is_so" 59 59 tal:define="id object/id" 60 60 tal:attributes="value id; … … 85 85 <td align="left" valign="top" rowspan="3"></td> 86 86 <td align="left" valign="top"> 87 <span tal:condition="is_ manager">87 <span tal:condition="is_so"> 88 88 <input type="button" value="button_select_all" class="context" 89 89 onclick="someJavaScriptFunctionThatWillBeReplaced" -
WAeUP_SRP/trunk/skins/waeup_academics/academics_view.pt
r805 r911 1 1 <metal:html tal:define="info context/getFacultiesInfo; 2 is_ manager info/is_manager|nothing;"2 is_so info/is_so|nothing;" 3 3 > 4 4 <metal:body use-macro="here/waeup_content_master/macros/master"> … … 24 24 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> 25 25 <td align="left" valign="middle" style="width: 5px;" 26 tal:condition="is_ manager">26 tal:condition="is_so"> 27 27 <input type="checkbox" name="ids:list" value="" id="" class="noborder" 28 tal:condition="is_ manager"28 tal:condition="is_so" 29 29 tal:define="id row/id" 30 30 tal:attributes="value id; … … 54 54 <td align="left" valign="top" rowspan="3"></td> 55 55 <td align="left" valign="top"> 56 <span tal:condition="is_ manager">56 <span tal:condition="is_so"> 57 57 <input type="button" value="button_select_all" class="context" 58 58 onclick="someJavaScriptFunctionThatWillBeReplaced" -
WAeUP_SRP/trunk/skins/waeup_academics/certificate_view.pt
r805 r911 1 1 <metal:html tal:define="info context/getCertificateInfo; 2 is_ manager info/is_manager|nothing;"2 is_so info/is_so|nothing;" 3 3 > 4 4 <metal:body use-macro="here/waeup_content_master/macros/master"> … … 26 26 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> 27 27 <td align="left" valign="middle" style="width: 5px;" 28 tal:condition="is_ manager">28 tal:condition="is_so"> 29 29 <input type="checkbox" name="ids:list" value="" id="" class="noborder" 30 tal:condition="is_ manager"30 tal:condition="is_so" 31 31 tal:define="id row/id" 32 32 tal:attributes="value id; … … 45 45 <td align="left" valign="top" rowspan="3"></td> 46 46 <td align="left" valign="top"> 47 <span tal:condition="is_ manager">47 <span tal:condition="is_so"> 48 48 <input type="button" value="button_select_all" class="context" 49 49 onclick="someJavaScriptFunctionThatWillBeReplaced" -
WAeUP_SRP/trunk/skins/waeup_academics/certificates_view.pt
r805 r911 1 1 <metal:html tal:define="info context/getCertificatesInfo; 2 is_ manager info/is_manager|nothing;"2 is_so info/is_so|nothing;" 3 3 > 4 4 <metal:body use-macro="here/waeup_content_master/macros/master"> … … 25 25 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> 26 26 <td align="left" valign="middle" style="width: 5px;" 27 tal:condition="is_ manager">27 tal:condition="is_so"> 28 28 <input type="checkbox" name="ids:list" value="" id="" class="noborder" 29 tal:condition="is_ manager"29 tal:condition="is_so" 30 30 tal:define="id row/id" 31 31 tal:attributes="value id; … … 44 44 <td align="left" valign="top" rowspan="3"></td> 45 45 <td align="left" valign="top"> 46 <span tal:condition="is_ manager">46 <span tal:condition="is_so"> 47 47 <input type="button" value="button_select_all" class="context" 48 48 onclick="someJavaScriptFunctionThatWillBeReplaced" -
WAeUP_SRP/trunk/skins/waeup_academics/courses_view.pt
r805 r911 1 1 <metal:html tal:define="info context/getCoursesInfo; 2 is_ manager info/is_manager|nothing;"2 is_so info/is_so|nothing;" 3 3 > 4 4 <metal:body use-macro="here/waeup_content_master/macros/master"> … … 53 53 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> 54 54 <td align="left" valign="middle" style="width: 5px;" 55 tal:condition="is_ manager">55 tal:condition="is_so"> 56 56 <input type="checkbox" name="ids:list" value="" id="" class="noborder" 57 tal:condition="is_ manager"57 tal:condition="is_so" 58 58 tal:define="id row/id" 59 59 tal:attributes="value id; … … 84 84 <td align="left" valign="top" rowspan="3"></td> 85 85 <td align="left" valign="top"> 86 <span tal:condition="is_ manager">86 <span tal:condition="is_so"> 87 87 <input type="button" value="button_select_all" class="context" 88 88 onclick="someJavaScriptFunctionThatWillBeReplaced" -
WAeUP_SRP/trunk/skins/waeup_academics/department_view.pt
r805 r911 1 1 <metal:html tal:define="info context/getCoursesCertificatesInfo; 2 is_ manager info/is_manager|nothing;"2 is_so info/is_so|nothing;" 3 3 > 4 4 <metal:body use-macro="here/waeup_content_master/macros/master"> … … 45 45 <td align="left" valign="top" rowspan="3"></td> 46 46 <td align="left" valign="top"> 47 <span tal:condition="is_ manager">47 <span tal:condition="is_so"> 48 48 <input type="button" value="button_select_all" class="context" 49 49 onclick="someJavaScriptFunctionThatWillBeReplaced" -
WAeUP_SRP/trunk/skins/waeup_academics/faculty_view.pt
r805 r911 1 1 <metal:html tal:define="info context/getDepartmentsInfo; 2 is_ manager info/is_manager|nothing;"2 is_so info/is_so|nothing;" 3 3 > 4 4 <metal:body use-macro="here/waeup_content_master/macros/master"> … … 26 26 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> 27 27 <td align="left" valign="middle" style="width: 5px;" 28 tal:condition="is_ manager">28 tal:condition="is_so"> 29 29 <input type="checkbox" name="ids:list" value="" id="" class="noborder" 30 tal:condition="is_ manager"30 tal:condition="is_so" 31 31 tal:define="id row/id" 32 32 tal:attributes="value id; … … 56 56 <td align="left" valign="top" rowspan="3"></td> 57 57 <td align="left" valign="top"> 58 <span tal:condition="is_ manager">58 <span tal:condition="is_so"> 59 59 <input type="button" value="button_select_all" class="context" 60 60 onclick="someJavaScriptFunctionThatWillBeReplaced" -
WAeUP_SRP/trunk/skins/waeup_academics/getCertificateInfo.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_academics/getCertificatesInfo.py
r903 r911 21 21 #dep_id = request.get('PATH_TRANSLATED').split('/')[-2] 22 22 dep_id = context.aq_parent.getId() 23 info['is_manager'] = context.isSectionManager() 23 info['is_sm'] = context.isSectionManager() 24 info['is_so'] = context.isSectionOfficer() 24 25 info['is_student'] = context.isStudent() 25 26 info['action'] = "%s" % context.absolute_url() -
WAeUP_SRP/trunk/skins/waeup_academics/getCoursesCertificatesInfo.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/faculty_view" % context.absolute_url() -
WAeUP_SRP/trunk/skins/waeup_academics/getCoursesInfo.py
r903 r911 21 21 #dep_id = request.get('PATH_TRANSLATED').split('/')[-2] 22 22 dep_id = context.aq_parent.getId() 23 info['is_manager'] = context.isSectionManager() 23 info['is_sm'] = context.isSectionManager() 24 info['is_so'] = context.isSectionOfficer() 24 25 info['is_student'] = context.isStudent() 25 26 info['action'] = "%s" % context.absolute_url() -
WAeUP_SRP/trunk/skins/waeup_academics/getDepartmentsInfo.py
r903 r911 22 22 member_id = str(member) 23 23 roles = member.getRolesInContext(context) 24 info['is_manager'] = context.isSectionManager() 24 info['is_sm'] = context.isSectionManager() 25 info['is_so'] = context.isSectionOfficer() 25 26 info['is_student'] = context.isStudent() 26 27 info['action'] = "%s" % context.absolute_url() -
WAeUP_SRP/trunk/skins/waeup_academics/getDocumentInfo.py
r903 r911 18 18 19 19 info = {} 20 info['is_manager'] = context.isSectionManager 21 info['is_student'] = context.isStudent 20 info['is_sm'] = context.isSectionManager() 21 info['is_so'] = context.isSectionOfficer() 22 info['is_student'] = context.isStudent() 22 23 info['doc'] = context.getContent() 23 24 return info -
WAeUP_SRP/trunk/skins/waeup_academics/getFacultiesInfo.py
r903 r911 19 19 20 20 info = {} 21 info['is_manager'] = context.isSectionManager() 21 info['is_sm'] = context.isSectionManager() 22 info['is_so'] = context.isSectionOfficer() 22 23 info['is_student'] = context.isStudent() 23 24 info['action'] = "%s" % context.campus.absolute_url() -
WAeUP_SRP/trunk/skins/waeup_academics/getLevelInfo.py
r903 r911 28 28 cert_id = pt[-(2+p)] 29 29 level_id = pt[-(1+p)] 30 info['is_manager'] = context.isSectionManager() 30 info['is_sm'] = context.isSectionManager() 31 info['is_so'] = context.isSectionOfficer() 31 32 info['is_student'] = context.isStudent() 32 33 info['action'] = "%s" % context.absolute_url() -
WAeUP_SRP/trunk/skins/waeup_academics/level_view.pt
r805 r911 1 1 <metal:html tal:define="info context/getLevelInfo; 2 is_ manager info/is_manager|nothing;"2 is_so info/is_so|nothing;" 3 3 > 4 4 <metal:body use-macro="here/waeup_content_master/macros/master"> … … 27 27 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> 28 28 <td align="left" valign="middle" style="width: 5px;" 29 tal:condition="is_ manager">29 tal:condition="is_so"> 30 30 <input type="checkbox" name="ids:list" value="" id="" class="noborder" 31 tal:condition="is_ manager"31 tal:condition="is_so" 32 32 tal:define="id row/id" 33 33 tal:attributes="value id; … … 57 57 <td align="left" valign="top" rowspan="3"></td> 58 58 <td align="left" valign="top"> 59 <span tal:condition="is_ manager">59 <span tal:condition="is_so"> 60 60 <input type="button" value="button_select_all" class="context" 61 61 onclick="someJavaScriptFunctionThatWillBeReplaced" -
WAeUP_SRP/trunk/skins/waeup_academics/searchAcademics.py
r903 r911 22 22 mtool = context.portal_membership 23 23 path_info = request.get('PATH_INFO').split('/') 24 is_ manager = context.isSectionManager24 is_sm = context.isSectionManager() 25 25 validate = request.has_key("cpsdocument_edit_button") 26 26 items = [] … … 44 44 #psm = "%s, %s" % (psm,ds), 45 45 objects = items, 46 is_ manager = is_manager,46 is_sm = is_sm, 47 47 choosen_ids = choosen_ids, 48 48 ) … … 63 63 #psm = "%s, %s" % (psm,ds), 64 64 students = items, 65 is_ manager = is_manager,65 is_sm = is_sm, 66 66 choosen_ids = choosen_ids, 67 67 ) … … 97 97 #psm = "%s, %s" % (psm,ds), 98 98 objects = objects, 99 is_ manager = is_manager,99 is_sm = is_sm, 100 100 choosen_ids = choosen_ids, 101 101 ) -
WAeUP_SRP/trunk/skins/waeup_accommodation/acco_folder_view.pt
r805 r911 1 1 <metal:html tal:define="info context/getAccoFolderInfo; 2 is_ manager info/is_manager|nothing;2 is_so info/is_so|nothing; 3 3 beds_generated options/beds_generated|nothing" 4 4 > … … 48 48 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> 49 49 <td align="left" valign="middle" style="width: 5px;" 50 tal:condition="is_ manager">50 tal:condition="is_so"> 51 51 <input type="checkbox" name="ids:list" value="" id="" class="noborder" 52 tal:condition="is_ manager"52 tal:condition="is_so" 53 53 tal:define="id row/id" 54 54 tal:attributes="value id; … … 78 78 <td align="left" valign="top" rowspan="3"></td> 79 79 <td align="left" valign="top"> 80 <span tal:condition="is_ manager">80 <span tal:condition="is_so"> 81 81 <input type="button" value="button_select_all" class="context" 82 82 onclick="someJavaScriptFunctionThatWillBeReplaced" -
WAeUP_SRP/trunk/skins/waeup_accommodation/acco_hall_view.pt
r805 r911 1 <metal:html tal:define="info context/getAccoHallInfo; 2 is_manager info/is_manager|nothing;" 1 <metal:html tal:define="info context/getAccoHallInfo;" 3 2 > 4 3 <metal:body use-macro="here/waeup_content_master/macros/master"> -
WAeUP_SRP/trunk/skins/waeup_accommodation/getAccoFolderInfo.py
r903 r911 19 19 20 20 info = {} 21 info['is_manager'] = context.isSectionManager() 21 info['is_sm'] = context.isSectionManager() 22 info['is_so'] = context.isSectionOfficer() 22 23 info['is_student'] = context.isStudent() 23 24 info['action'] = "%s" % context.absolute_url() -
WAeUP_SRP/trunk/skins/waeup_accommodation/getAccoHallInfo.py
r903 r911 21 21 #dep_id = request.get('PATH_TRANSLATED').split('/')[-2] 22 22 dep_id = context.aq_parent.getId() 23 info['is_manager'] = context.isSectionManager() 23 info['is_sm'] = context.isSectionManager() 24 info['is_so'] = context.isSectionOfficer() 24 25 info['is_student'] = context.isStudent() 25 26 info['action'] = "%s" % context.absolute_url() -
WAeUP_SRP/trunk/skins/waeup_default/getDynamicRoles.py
r880 r911 12 12 return the dynamic roles 13 13 """ 14 return ('ClearanceOfficer','CourseAdviser' )14 return ('ClearanceOfficer','CourseAdviser','SectionManager') 15 15 -
WAeUP_SRP/trunk/skins/waeup_default/isStaff.py
r903 r911 16 16 return "Manager" in roles or\ 17 17 "SectionManager" in roles or\ 18 "SectionOfficer" in roles or\ 18 19 "ClearanceOfficer" in roles or\ 19 20 "ClearanceOfficers" in member.getGroups() -
WAeUP_SRP/trunk/skins/waeup_default/waeup_document_view.pt
r805 r911 1 1 <metal:html tal:define="info context/getDocumentInfo; 2 2 s_info context/getStudentInfo; 3 is_ manager info/is_manager|nothing;"3 is_so info/is_so|nothing;" 4 4 > 5 5 <metal:body use-macro="here/waeup_content_master/macros/master"> … … 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> -
WAeUP_SRP/trunk/skins/waeup_default/waeup_edit_form.pt
r903 r911 8 8 form_type string:waeup; 9 9 creation python:False; 10 edition python:True;10 is_allowed context/isSectionOfficer 11 11 metadata metadata|nothing; 12 12 "> … … 15 15 16 16 <metal:block fill-slot="header"> 17 <span tal:condition="not: context/isSectionManager">17 <span tal:condition="not: is_allowed"> 18 18 <metal:block use-macro="here/error_not_found/macros/not_found" /> 19 19 </span> 20 <span tal:condition=" context/isSectionManager">20 <span tal:condition="is_allowed"> 21 21 <h3 tal:condition="creation" i18n:translate=""> 22 22 Create a document of type … … 33 33 </a> 34 34 <h3> 35 <tal:block condition=" python: edition and notmetadata"35 <tal:block condition="not: metadata" 36 36 i18n:translate="">Edit <span id="page_title" i18n:name="title" 37 37 tal:content="here/title_or_id">Page Title</span> … … 47 47 48 48 49 <metal:block fill-slot="main" tal:condition=" context/isSectionManager">49 <metal:block fill-slot="main" tal:condition="is_allowed"> 50 50 <form action="waeup_edit" method="post" id="editForm" 51 51 enctype="multipart/form-data" class="workflow" -
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.