Changeset 672 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 12 Oct 2006, 18:23:28 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
r662 r672 62 62 63 63 items = [] 64 s_edit_links = {'StudentApplication': 'student_edit', 65 'StudentAccommodation': '', 66 'StudentPersonal': '', 67 } 64 68 sos = context.portal_catalog(container_path=student_path) 65 69 for so in sos: … … 72 76 row['type'] = so.portal_type 73 77 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]) 74 79 row['review_state'] = so.review_state 80 row['display'] = so.review_state in ('opened','closed') 75 81 items.append(row) 76 82 info['items'] = items -
WAeUP_SRP/trunk/skins/waeup_student/layout_application_edit.pt
r635 r672 15 15 widgets python:context.getRenderedWidgets(layout); 16 16 "> 17 <span tal:condition="python: 0" tal:replace="structure widgets" />18 17 <form action="" id="editForm" method="post" 19 18 enctype="multipart/form-data" class="workflow" 20 19 tal:attributes="action formaction" 21 22 20 > 23 21 <table class="layoutDefault" summary="Form layout" … … 71 69 </span> 72 70 </span> 73 <tr tal:condition="widgets/passport|nothing" tal:define="cell widgets/passport|nothing;"> 71 <tr tal:condition="widgets/passport|nothing" 72 tal:define="cell widgets/passport|nothing;"> 74 73 <tal:block tal:define="widget cell/widget; 75 74 wid widget/getWidgetId; -
WAeUP_SRP/trunk/skins/waeup_student/passport_entry_view.pt
r670 r672 15 15 tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'], 16 16 layout_mode='edit', 17 layout_id='student_application_fe')" 17 layout_id='student_application_fe', 18 )" 18 19 /> 19 20 </span> -
WAeUP_SRP/trunk/skins/waeup_student/student_view.pt
r662 r672 38 38 <table tal:condition="is_student" class="contentListing" width="100%" summary="content layout" id="folder_content"> 39 39 <span tal:repeat="row rows"> 40 <tr tal:condition=" python:row['type'] == 'StudentApplication' and row['review_state'] in ['opened', 'closed']"40 <tr tal:condition="row/display" 41 41 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> 42 42 <td><a href="view" tal:attributes="href string:${row/url}/application_view"> … … 44 44 <td> 45 45 <a tal:condition="row/is_editable" 46 href="edit" tal:attributes="href string:${ info/url}/passport_entry_view">46 href="edit" tal:attributes="href string:${row/s_edit_link}"> 47 47 [edit] 48 48 </a>
Note: See TracChangeset for help on using the changeset viewer.