Changeset 656
- Timestamp:
- 11 Oct 2006, 13:58:31 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/profiles/default/actionicons.xml
r652 r656 239 239 icon_expr="bell.png"/> 240 240 <action-icon category="student" action_id="reserve_accommodation" 241 title="Book Host al" priority="3"242 icon_expr="bell.png"/> 241 title="Book Hostel" priority="3" 242 icon_expr="bell.png"/> 243 243 <action-icon category="global" action_id="members" 244 244 title="Portal Members" priority="5" -
WAeUP_SRP/trunk/profiles/default/actions.xml
r652 r656 124 124 </action> 125 125 <action title="Unchecked Items" action_id="unchecked" category="object" 126 condition_expr="python:member and 'academics' in object_url" 126 condition_expr="python:member and 'academics' in object_url" 127 127 url_expr="string:./unchecked" visible="True"> 128 128 <permission>Modify portal content</permission> … … 138 138 <permission>View</permission> 139 139 </action> 140 <action title="Book Host al" action_id="reserve_accommodation"140 <action title="Book Hostel" action_id="reserve_accommodation" 141 141 category="student" condition_expr="member" 142 142 url_expr="string:${portal_url}/reserve_accommodation" … … 153 153 <permission>View</permission> 154 154 </action> 155 <action title="My Registration" action_id="registration"155 <action title="My Study" action_id="registration" 156 156 category="student_navigation" condition_expr="member" 157 157 url_expr="string:${portal_url}/campus/students" visible="True"> -
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.