Changeset 911 for WAeUP_SRP/trunk/skins/waeup_academics
- Timestamp:
- 20 Nov 2006, 15:11:29 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_academics
- Files:
-
- 17 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 )
Note: See TracChangeset for help on using the changeset viewer.