Changeset 674
- Timestamp:
- 12 Oct 2006, 20:06:15 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/profiles/default/types/StudentAccommodation.xml
r671 r674 8 8 <property name="product">WAeUP_SRP</property> 9 9 <property name="factory">addStudentAccommodation</property> 10 <property name="immediate_view"> student_index</property>10 <property name="immediate_view">academics_document_view</property> 11 11 <property name="global_allow">True</property> 12 12 <property name="filter_content_types">True</property> … … 26 26 <property name="storage_methods"/> 27 27 <property name="cps_is_portlet">False</property> 28 <alias from="(Default)" to=" student_index"/>29 <alias from="view" to=" student_index"/>28 <alias from="(Default)" to="academics_document_view"/> 29 <alias from="view" to="academics_document_view"/> 30 30 <action title="View" action_id="view" category="object" 31 condition_expr="" url_expr="string:${object_url}/ student_index"31 condition_expr="" url_expr="string:${object_url}/academics_document_view" 32 32 visible="True"> 33 33 <permission value="View"/> -
WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
r672 r674 66 66 'StudentPersonal': '', 67 67 } 68 s_view_links = {'StudentApplication': 'application_view', 69 'StudentAccommodation': 'accommodation_view', 70 'StudentPersonal': 'personal_view', 71 } 68 72 sos = context.portal_catalog(container_path=student_path) 69 73 for so in sos: … … 76 80 row['type'] = so.portal_type 77 81 row['is_editable'] = mtool.checkPermission('Modify portal content', soo) 78 row['s_edit_link'] = "%s/%s" % (student.absolute_url(),s_edit_links[so.portal_type]) 82 sv_link = s_view_links.get(so.portal_type,None) 83 row['s_view_link'] = None 84 if sv_link: 85 row['s_view_link'] = "%s/%s" % (student.absolute_url(),sv_link) 86 se_link = s_edit_links.get(so.portal_type,None) 87 row['s_edit_link'] = None 88 if se_link: 89 row['s_edit_link'] = "%s/%s" % (student.absolute_url(),se_link) 79 90 row['review_state'] = so.review_state 80 91 row['display'] = so.review_state in ('opened','closed') -
WAeUP_SRP/trunk/skins/waeup_student/student_view.pt
r672 r674 23 23 <tr tal:repeat="row rows" 24 24 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> 25 <td><a href="view" tal:attributes="href string:${row/url} ">25 <td><a href="view" tal:attributes="href string:${row/url}/academics_document_view"> 26 26 <strong tal:content="row/title" /></a> </td> 27 27 <td> … … 36 36 </table> 37 37 38 39 40 38 <table tal:condition="is_student" class="contentListing" width="100%" summary="content layout" id="folder_content"> 39 <span tal:repeat="row rows"> 40 <tr tal:condition="row/display" 41 41 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> 42 <td><a href="view" tal:attributes="href string:${row/url}/application_view"> 43 <strong tal:content="row/title" /></a> </td> 44 <td> 45 <a tal:condition="row/is_editable" 46 href="edit" tal:attributes="href string:${row/s_edit_link}"> 47 [edit] 42 <td><a href="view" tal:condition="row/s_view_link" 43 tal:attributes="href string:${row/s_view_link}"> 44 <strong tal:content="row/title" /></a> 45 <strong tal:condition="not:row/s_view_link" tal:content="row/title" /> 46 </td> 47 <td> 48 <a tal:condition="python: row['s_edit_link'] and row['is_editable']" 49 href="edit" tal:attributes="href string:${row/s_edit_link}"> 50 [edit] 48 51 </a> 49 </td> 50 </tr> 51 52 <tr tal:condition="python:row['type'] == 'StudentAccommodation' and row['review_state'] in ['opened', 'closed']" 53 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> 54 <td><a href="view" tal:attributes="href string:${row/url}/accommodation_view"> 55 <strong tal:content="row/title" /></a> </td> 56 <td> 57 </td> 58 </tr> 59 60 </span> 61 </table> 52 </td> 53 </tr> 54 </span> 55 </table> 62 56 63 57
Note: See TracChangeset for help on using the changeset viewer.