Changeset 656 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 11 Oct 2006, 13:58:31 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/accommodation_slip.pt
r652 r656 13 13 <metal:block fill-slot="main" 14 14 tal:define="info context/getStudentInfo"> 15 <h3>Host al Reservation AcknowledgeSlip</h3>15 <h3>Hostel Application Slip</h3> 16 16 <br /> 17 17 -
WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
r648 r656 38 38 brain = res[-1] 39 39 student = brain.getObject() 40 student_path = brain.getPath() 40 student_path = brain.getPath() 41 41 info['review_state'] = wf.getInfoFor(student,'review_state','keiner') 42 42 info['student'] = student … … 58 58 else: 59 59 info['acco'] = None 60 61 items = [] 62 sos = context.portal_catalog(container_path=student_path, 63 review_state = ['opened', 'closed']) 64 for so in sos: 65 row = {} 66 soo = so.getObject() 67 sod = soo.getContent() 68 row['id'] = soo.getId() 69 row['title'] = sod.Title() 70 row['url'] = soo.absolute_url() 71 row['is_editable'] = mtool.checkPermission('Modify portal content', soo) 72 items.append(row) 73 info['items'] = items 60 74 return info -
WAeUP_SRP/trunk/skins/waeup_student/student_view.pt
r655 r656 1 <metal:html tal:define="info context/getStudentInfo"> 1 <metal:html tal:define="info context/getStudentInfo; 2 is_manager info/is_manager|nothing;"> 2 3 <metal:body use-macro="here/main_template/macros/master"> 3 4 <metal:main fill-slot="main"> … … 6 7 </span> 7 8 <span tal:condition="info" 8 tal:define="review_state info/review_state"> 9 tal:define="review_state info/review_state; 10 rows python: info['items']"> 9 11 10 12 <h3>My Study Data</h3> 11 13 <br /> 14 15 <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content"> 16 <tr tal:repeat="row rows" 17 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> 18 <td align="left" valign="middle" style="width: 5px;" 19 tal:condition="is_manager"> 20 21 </td> 22 <td><a href="view" tal:attributes="href string:${row/url}"> 23 <strong tal:content="row/title" /></a> </td> 24 25 <td> 26 <a tal:condition="row/is_editable" 27 href="edit" tal:attributes="href string:${row/url}/external_edit_form" 28 target="edit" 29 onclick="javascript:window.open('','edit','width=600, height=700, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')"> 30 [edit] 31 </a> 32 </td> 33 34 </tr> 35 </table> 36 12 37 </span> 13 38 </metal:main>
Note: See TracChangeset for help on using the changeset viewer.