- Timestamp:
- 7 Nov 2007, 11:15:03 (17 years ago)
- Location:
- WAeUP_SRP/base/skins/waeup_directory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_directory/member_create_form.pt
r1917 r2565 3 3 global dir here/portal_directories/?dirname; 4 4 global dirtitle dir/title_or_id; 5 "/> 5 global allowed context/isStaff;" 6 /> 6 7 <metal:block use-macro="here/main_template/macros/master"> 7 8 <metal:blockfill-slot="action_slot"8 <metal:block tal:condition="allowed" 9 fill-slot="action_slot" 9 10 tal:define="actions python:context.getMembersDirectoryActions('create')"> 10 11 <span metal:use-macro="here/member_view/macros/members_actions" /> 11 12 </metal:block> 12 <metal:block fill-slot="main" tal:define=" 13 dummy dir/checkCreateEntryAllowed; 14 validate python: request.has_key('member_create_form'); 15 create_request python: validate and request or nothing; 16 res python: dir.renderCreateEntryDetailed( 17 validate=validate, request=create_request, 18 created_callback='member_created'); 19 global rendered_main python: res[0]; 20 rendered_ok python: res[1]; 21 ds python: res[2]; 22 global portal_status_message python: validate and (rendered_ok and 23 'psm_content_changed' or 'psm_content_error') or '';" 24 > 25 <h3> 26 Create Member 27 </h3> 28 <div tal:replace="structure rendered_main">Rendered main...</div> 13 <metal:block fill-slot="main"> 14 <metal:block tal:condition="not: allowed"> 15 <span tal:content="here/illegal_view" /> 16 </metal:block> 17 <metal:block tal:condition="allowed"> 18 <metal:block tal:define=" 19 dummy dir/checkCreateEntryAllowed; 20 validate python: request.has_key('member_create_form'); 21 create_request python: validate and request or nothing; 22 res python: dir.renderCreateEntryDetailed( 23 validate=validate, request=create_request, 24 created_callback='member_created'); 25 global rendered_main python: res[0]; 26 rendered_ok python: res[1]; 27 ds python: res[2]; 28 global portal_status_message python: validate and (rendered_ok and 29 'psm_content_changed' or 'psm_content_error') or '';" 30 > 31 <h3> 32 Create Member 33 </h3> 34 <div tal:replace="structure rendered_main">Rendered main...</div> 35 </metal:block> 36 </metal:block> 29 37 </metal:block> 30 38 </metal:block> -
WAeUP_SRP/base/skins/waeup_directory/member_edit_form.pt
r1917 r2565 1 1 <tal:block define=" 2 global id request/id ;2 global id request/id|nothing; 3 3 global dirname string:members; 4 4 global dir here/portal_directories/?dirname; 5 5 global dirtitle dir/title_or_id; 6 "/> 6 global allowed context/isStaff;" 7 /> 7 8 <metal:block use-macro="here/main_template/macros/master"> 8 <metal:block fill-slot="action_slot" 9 tal:define="actions python:context.getMembersDirectoryActions('edit')"> 9 <metal:block tal:condition="allowed" 10 fill-slot="action_slot" 11 tal:define="actions python:context.getMembersDirectoryActions('edit')"> 10 12 <span metal:use-macro="here/member_view/macros/members_actions" /> 11 13 </metal:block> 12 <metal:block fill-slot="main" tal:define=" 13 title_field dir/title_field; 14 validate python: request.has_key('member_edit_form'); 15 edit_request python: validate and request or nothing; 16 res python: dir.renderEditEntryDetailed(id, request=edit_request); 17 global rendered_main python: res[0]; 18 rendered_ok python: res[1]; 19 ds python: res[2]; 20 global title ds/?title_field|id; 21 portal_status_message request/portal_status_message|nothing; 22 global portal_status_message python: portal_status_message or (validate 23 and (rendered_ok and 'psm_content_changed' or 'psm_content_error')) 24 or '';" 25 > 26 <h3> 27 <span tal:content="ds/fullname" /> 28 </h3> 29 <div tal:replace="structure rendered_main">Rendered main...</div> 14 <metal:block fill-slot="main"> 15 <metal:block tal:condition="not: allowed"> 16 <span tal:content="here/illegal_view" /> 17 </metal:block> 18 <metal:block tal:condition="allowed"> 19 <metal:block tal:define=" 20 title_field dir/title_field; 21 validate python: request.has_key('member_edit_form'); 22 edit_request python: validate and request or nothing; 23 res python: dir.renderEditEntryDetailed(id, request=edit_request); 24 global rendered_main python: res[0]; 25 rendered_ok python: res[1]; 26 ds python: res[2]; 27 global title ds/?title_field|id; 28 portal_status_message request/portal_status_message|nothing; 29 global portal_status_message python: portal_status_message or (validate 30 and (rendered_ok and 'psm_content_changed' or 'psm_content_error')) 31 or '';" 32 > 33 <h3> 34 <span tal:content="ds/fullname" /> 35 </h3> 36 <div tal:replace="structure rendered_main">Rendered main...</div> 37 </metal:block> 38 </metal:block> 30 39 </metal:block> 31 40 </metal:block>
Note: See TracChangeset for help on using the changeset viewer.