Changeset 1901 for WAeUP_SRP/trunk/skins
- Timestamp:
- 15 Jun 2007, 11:46:09 (17 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_directory
- Files:
-
- 1 added
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_directory/member_create_form.pt
r953 r1901 5 5 "/> 6 6 <metal:block use-macro="here/main_template/macros/master"> 7 <metal:block fill-slot="style_slot">8 <tal:block define="global actions9 python:context.getWAeUPDirectoryActions(actions, dirname, dir, 'create')"/>10 11 <link rel="Stylesheet" type="text/css" href=""12 tal:attributes="href string:${base_url}document.css" />13 </metal:block>14 15 16 17 7 <metal:block fill-slot="main" tal:define=" 18 dummy dir/checkCreateEntryAllowed; 19 validate python: request.has_key('member_create_form'); 20 create_request python: validate and request or nothing; 21 res python: dir.renderCreateEntryDetailed( 22 validate=validate, request=create_request, 23 created_callback='member_created'); 24 global rendered_main python: res[0]; 25 rendered_ok python: res[1]; 26 ds python: res[2]; 27 global portal_status_message python: validate and (rendered_ok and 28 'psm_content_changed' or 'psm_content_error') or '';"> 29 8 actions python:context.getMembersDirectoryActions('create'); 9 dummy dir/checkCreateEntryAllowed; 10 validate python: request.has_key('member_create_form'); 11 create_request python: validate and request or nothing; 12 res python: dir.renderCreateEntryDetailed( 13 validate=validate, request=create_request, 14 created_callback='member_created'); 15 global rendered_main python: res[0]; 16 rendered_ok python: res[1]; 17 ds python: res[2]; 18 global portal_status_message python: validate and (rendered_ok and 19 'psm_content_changed' or 'psm_content_error') or '';" 20 > 21 <span metal:use-macro="here/member_view/macros/members_actions" /> 30 22 <h3> 31 23 Create Member 32 24 </h3> 33 34 25 <div tal:replace="structure rendered_main">Rendered main...</div> 35 26 </metal:block> 36 37 27 </metal:block> -
WAeUP_SRP/trunk/skins/waeup_directory/member_edit_form.pt
r953 r1901 6 6 "/> 7 7 <metal:block use-macro="here/main_template/macros/master"> 8 9 <metal:block fill-slot="style_slot">10 <tal:block define="global actions11 python:context.getWAeUPDirectoryActions(actions, dirname, dir, 'edit', id)"/>12 <link rel="Stylesheet" type="text/css" href=""13 tal:attributes="href string:${base_url}document.css" />14 </metal:block>15 16 8 <metal:block fill-slot="main" tal:define=" 17 title_field dir/title_field; 18 validate python: request.has_key('member_edit_form'); 19 edit_request python: validate and request or nothing; 20 res python: dir.renderEditEntryDetailed(id, request=edit_request); 21 global rendered_main python: res[0]; 22 rendered_ok python: res[1]; 23 ds python: res[2]; 24 global title ds/?title_field|id; 25 portal_status_message request/portal_status_message|nothing; 26 global portal_status_message python: portal_status_message or (validate 27 and (rendered_ok and 'psm_content_changed' or 'psm_content_error')) 28 or '';"> 29 9 actions python:context.getMembersDirectoryActions('edit'); 10 title_field dir/title_field; 11 validate python: request.has_key('member_edit_form'); 12 edit_request python: validate and request or nothing; 13 res python: dir.renderEditEntryDetailed(id, request=edit_request); 14 global rendered_main python: res[0]; 15 rendered_ok python: res[1]; 16 ds python: res[2]; 17 global title ds/?title_field|id; 18 portal_status_message request/portal_status_message|nothing; 19 global portal_status_message python: portal_status_message or (validate 20 and (rendered_ok and 'psm_content_changed' or 'psm_content_error')) 21 or '';" 22 > 23 <span metal:use-macro="here/member_view/macros/members_actions" /> 30 24 <h3> 31 25 <span tal:content="ds/fullname" /> 32 26 </h3> 33 34 27 <div tal:replace="structure rendered_main">Rendered main...</div> 35 28 </metal:block> 36 37 29 </metal:block> -
WAeUP_SRP/trunk/skins/waeup_directory/member_view.pt
r1796 r1901 5 5 global dirtitle dir/title_or_id; 6 6 "/> 7 <metal:block use-macro="here/main_template/macros/master"> 8 9 <metal:block fill-slot="head_slot"> 10 <tal:block define="global actions 11 python:context.getWAeUPDirectoryActions(actions, dirname, dir, 'view', id)"/> 12 </metal:block> 13 14 <metal:block fill-slot="style_slot"> 15 <link rel="Stylesheet" type="text/css" href="" 16 tal:attributes="href string:${base_url}document.css" /> 17 </metal:block> 18 19 20 7 <metal:block use-macro="here/main_template/macros/master"> 21 8 <metal:block fill-slot="main" tal:define=" 22 res python: dir.renderEntryDetailed(id); 23 global rendered_main python: res[0]; 24 ds python: res[1]; 25 global title ds/?title_field|id;"> 26 9 actions python:context.getMembersDirectoryActions('view'); 10 res python: dir.renderEntryDetailed(id); 11 global rendered_main python: res[0]; 12 ds python: res[1]; 13 global title ds/?title_field|id;" 14 > 15 <div class="fontColordefaultfontcolors fontShapeaverage cpsskinsHBox body" 16 metal:define-macro="members_actions"> 17 <span tal:repeat="action actions"> 18 <a tal:define="icon_tag action/icon_tag" 19 tal:attributes="href action/url; 20 class python:icon_tag and 'noicon' or None" 21 > 22 <tal:block condition="python:icon_tag" 23 content="structure icon_tag"/> 24 <tal:block condition="python:not icon_tag"> 25 <img tal:attributes="src 26 string:${base_url}noicon.png; 27 alt action/title" 28 /> 29 </tal:block> 30 <tal:block i18n:translate="" content="action/title" /> 31 </a> 32 </span> 33 </div> 27 34 <h3> 28 35 <span tal:content="ds/fullname" /> 29 36 </h3> 30 31 32 37 <div tal:replace="structure rendered_main">Rendered main...</div> 33 38 <input type="submit" name="back" i18n:attributes="value" 34 class="standalone" value="button_back" onClick="history.back()" />39 class="standalone" value="button_back" onClick="history.back()" /> 35 40 </metal:block> 41 </metal:block> 36 42 37 </metal:block> -
WAeUP_SRP/trunk/skins/waeup_directory/search_members_form.pt
r953 r1901 4 4 global dirtitle dir/title_or_id; 5 5 "/> 6 <metal:block use-macro="here/main_template/macros/master"> 7 <metal:block fill-slot="style_slot"> 8 <tal:block define="dummy 9 python:context.setDirectoryBreadCrumbs(request, dirname, dir, dirtitle)"/> 10 <tal:block define="global actions 11 python:context.getWAeUPDirectoryActions(actions, dirname, dir, 'search')"/> 12 13 <link rel="Stylesheet" type="text/css" href="" 14 tal:attributes="href string:${base_url}document.css" /> 15 16 </metal:block> 17 6 <metal:block use-macro="here/main_template/macros/master" > 18 7 <metal:block fill-slot="header"/> 19 20 8 <metal:block fill-slot="main" tal:define=" 21 validate python: request.has_key('cpsdirectory_search_button'); 22 res python: dir.renderSearchDetailed(request=request, validate=validate, 23 callback='search_members'); 24 global rendered_main python: res[0]; 25 global ok python: res[1]; 26 ds python: res[2]; 27 global portal_status_message python: (validate and not ok and 28 'psm_content_error') or request.form.get('portal_status_message', '');"> 9 actions python:context.getMembersDirectoryActions('search'); 10 validate python: request.has_key('cpsdirectory_search_button'); 11 res python: dir.renderSearchDetailed(request=request, validate=validate, 12 callback='search_members'); 13 global rendered_main python: res[0]; 14 global ok python: res[1]; 15 ds python: res[2]; 16 global portal_status_message python: (validate and not ok and 17 'psm_content_error') or request.form.get('portal_status_message', '');" 18 > 19 <span metal:use-macro="here/member_view/macros/members_actions" /> 29 20 <h3> 30 21 Search Member Section … … 33 24 <div tal:replace="structure rendered_main">Rendered main...</div> 34 25 </metal:block> 35 36 26 </metal:block>
Note: See TracChangeset for help on using the changeset viewer.