Changeset 953
- Timestamp:
- 27 Nov 2006, 22:03:04 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 5 added
- 1 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/profiles/default/actions.xml
r945 r953 32 32 category="user" 33 33 condition_expr="python:member and member.has_role("Member")" 34 url_expr="string:${portal_url}/ cpsdirectory_entry_view?dirname=members&id=${member}"34 url_expr="string:${portal_url}/member_view?dirname=members&id=${member}" 35 35 visible="True"> 36 36 <permission>View</permission> … … 93 93 </action> 94 94 <action title="Directories" action_id="directories" category="global" 95 condition_expr=" python:not portal.portal_membership.isAnonymousUser()"96 url_expr="string:${portal_url}/cpsdirectory_view" visible=" False">95 condition_expr="here/isSectionManager" 96 url_expr="string:${portal_url}/cpsdirectory_view" visible="True"> 97 97 <permission>Modify portal content</permission> 98 98 </action> -
WAeUP_SRP/trunk/profiles/default/layouts/members.xml
r916 r953 32 32 </property> 33 33 <property name="is_required">True</property> 34 <property name="label"> label_email</property>35 <property name="label_edit"> label_email</property>36 <property name="description"> Member email</property>34 <property name="label">Email</property> 35 <property name="label_edit">Email</property> 36 <property name="description"></property> 37 37 <property name="is_i18n">True</property> 38 38 <property name="size_max">0</property> … … 42 42 <element value="fullname"/> 43 43 </property> 44 <property name="label"> label_full_name</property>45 <property name="label_edit"> label_full_name</property>46 <property name="description"> Member full name</property>44 <property name="label">Full Name</property> 45 <property name="label_edit">Full Name</property> 46 <property name="description"></property> 47 47 <property name="is_i18n">True</property> 48 48 <property name="hidden_layout_modes"> … … 56 56 <element value="givenName"/> 57 57 </property> 58 <property name="label"> label_first_name</property>59 <property name="label_edit"> label_first_name</property>60 <property name="description"> Member first name</property>58 <property name="label">First Name</property> 59 <property name="label_edit">First Name</property> 60 <property name="description"></property> 61 61 <property name="is_i18n">True</property> 62 62 </widget> … … 65 65 <element value="groups"/> 66 66 </property> 67 <property name="label"> label_groups</property>68 <property name="label_edit"> label_groups</property>69 <property name="description"> Member groups</property>67 <property name="label">Groups</property> 68 <property name="label_edit">Groups</property> 69 <property name="description"></property> 70 70 <property name="is_i18n">True</property> 71 71 <property name="vocabulary">groups</property> … … 89 89 </property> 90 90 <property name="is_required">True</property> 91 <property name="label"> label_user_name</property>92 <property name="label_edit"> label_user_name</property>93 <property name="description"> Member login</property>91 <property name="label">User Name</property> 92 <property name="label_edit">User Name</property> 93 <property name="description"></property> 94 94 <property name="is_i18n">True</property> 95 95 <property name="readonly_layout_modes"> … … 116 116 <property name="size_max">0</property> 117 117 </widget> 118 <widget name="roles" meta_type="Generic MultiSelect Widget"> 119 <property name="fields"> 120 <element value="roles"/> 121 </property> 122 <property name="label">label_roles</property> 123 <property name="label_edit">label_roles</property> 124 <property name="description">Member roles</property> 125 <property name="is_i18n">True</property> 126 <property name="vocabulary">global_roles</property> 127 <property name="translated">True</property> 128 <property name="render_format">checkbox</property> 129 </widget> 118 <widget name="roles" meta_type="Generic MultiSelect Widget"> 119 <property name="fields"> 120 <element value="roles"/> 121 </property> 122 <property name="label">Roles</property> 123 <property name="label_edit">Roles</property> 124 <property name="description"></property> 125 <property name="is_i18n">True</property> 126 <property name="readonly_layout_modes"/> 127 <property name="hidden_layout_modes"/> 128 <property name="hidden_readonly_layout_modes"/> 129 <property name="hidden_if_expr">not: context/isSectionManager</property> 130 <property name="vocabulary">global_roles</property> 131 <property name="translated">True</property> 132 <property name="render_format">checkbox</property> 133 </widget> 130 134 <widget name="sn" meta_type="String Widget"> 131 135 <property name="fields"> … … 133 137 </property> 134 138 <property name="is_required">True</property> 135 <property name="label"> label_last_name</property>136 <property name="label_edit"> label_last_name</property>137 <property name="description"> Member last name</property>139 <property name="label">Last Name</property> 140 <property name="label_edit">Last Name</property> 141 <property name="description"></property> 138 142 <property name="is_i18n">True</property> 139 143 </widget> -
WAeUP_SRP/trunk/profiles/default/schemas/members.xml
r910 r953 6 6 </field> 7 7 <field name="email" meta_type="CPS String Field"> 8 <property name="acl_write_roles">Manager; Owner </property>8 <property name="acl_write_roles">Manager; Owner; SectionOfficer</property> 9 9 </field> 10 10 <field name="fullname" meta_type="CPS String Field"> … … 21 21 </field> 22 22 <field name="givenName" meta_type="CPS String Field"> 23 <property name="acl_write_roles">Manager; Owner </property>23 <property name="acl_write_roles">Manager; Owner; SectionOfficer</property> 24 24 </field> 25 25 <field name="groups" meta_type="CPS String List Field"> 26 <property name="acl_write_roles">Manager </property>26 <property name="acl_write_roles">Manager; SectionOfficer</property> 27 27 </field> 28 28 <field name="homeless" meta_type="CPS Int Field"> 29 29 <property name="default_expr">python: 1</property> 30 <property name="acl_write_roles">Manager </property>30 <property name="acl_write_roles">Manager; SectionOfficer</property> 31 31 </field> 32 32 <field name="id" meta_type="CPS String Field"/> 33 33 <field name="password" meta_type="CPS Password Field"> 34 <property name="acl_write_roles">Manager; Owner </property>34 <property name="acl_write_roles">Manager; Owner; SectionOfficer</property> 35 35 </field> 36 36 <field name="roles" meta_type="CPS String List Field"> … … 39 39 </field> 40 40 <field name="sn" meta_type="CPS String Field"> 41 <property name="acl_write_roles">Manager; Owner </property>41 <property name="acl_write_roles">Manager; Owner; SectionOfficer</property> 42 42 </field> 43 43 </object> -
WAeUP_SRP/trunk/skins/waeup_directory/layout_waeup_dir_edit.pt
r923 r953 67 67 <tal:block condition="has_edits"> 68 68 <input type="submit" class="standalone" 69 name=" cpsdirectory_entry_edit_form:method"69 name="member_edit_form:method" 70 70 value="button_change" i18n:attributes="value" 71 71 tal:condition="not:creation" /> 72 72 <input type="submit" class="standalone" 73 name=" cpsdirectory_entry_create_form:method"73 name="member_create_form:method" 74 74 value="button_create" i18n:attributes="value" 75 75 tal:condition="creation" /> -
WAeUP_SRP/trunk/skins/waeup_directory/member_view.pt
r935 r953 6 6 "/> 7 7 <metal:block use-macro="here/main_template/macros/master"> 8 8 9 <metal:block fill-slot="style_slot"> 9 <tal:block define="dummy10 python:context.setDirectoryBreadCrumbs(request, dirname, dir, dirtitle)"/>11 10 <tal:block define="global actions 12 python:context.getDirectoryActions(actions, dirname, dir, 'view', id)"/> 13 11 python:context.getWAeUPDirectoryActions(actions, dirname, dir, 'view', id)"/> 14 12 <link rel="Stylesheet" type="text/css" href="" 15 13 tal:attributes="href string:${base_url}document.css" /> 16 14 </metal:block> 17 15 18 <metal:block fill-slot="header"> 19 <h1> 20 <span i18n:translate="" tal:content="dirtitle" />: 21 <span i18n:translate="cpsdir_label_view_entry">view entry</span> 22 </h1> 23 <div class="description"> 24 </div> 25 </metal:block> 16 26 17 27 18 <metal:block fill-slot="main" tal:define=" 28 title_field dir/title_field;19 29 20 res python: dir.renderEntryDetailed(id); 30 21 global rendered_main python: res[0]; 31 22 ds python: res[1]; 32 23 global title ds/?title_field|id;"> 24 25 <h3> 26 <span tal:content="ds/fullname" /> 27 </h3> 28 33 29 34 30 <div tal:replace="structure rendered_main">Rendered main...</div> -
WAeUP_SRP/trunk/skins/waeup_directory/search_members.py
r930 r953 56 56 results = dir.searchEntries(return_fields=return_fields, **mapping) 57 57 except SearchSizeLimitExceeded, e: 58 rendered = dir. cpsdirectory_entry_search_errors(exception=e)58 rendered = dir.member_search_errors(exception=e) 59 59 return rendered, 'results' 60 60 -
WAeUP_SRP/trunk/skins/waeup_directory/search_members_form.pt
r916 r953 9 9 python:context.setDirectoryBreadCrumbs(request, dirname, dir, dirtitle)"/> 10 10 <tal:block define="global actions 11 python:context.get DirectoryActions(actions, dirname, dir, 'search')"/>11 python:context.getWAeUPDirectoryActions(actions, dirname, dir, 'search')"/> 12 12 13 13 <link rel="Stylesheet" type="text/css" href="" … … 27 27 global portal_status_message python: (validate and not ok and 28 28 'psm_content_error') or request.form.get('portal_status_message', '');"> 29 <h1> 30 <span i18n:translate="" tal:content="dirtitle" />: 31 <span tal:condition="python: ok == 'results'" 32 i18n:translate="">cpsdir_label_results 33 </span> 34 <span tal:condition="python: ok != 'results'" 35 i18n:translate="cpsdir_label_search_entry">search an entry 36 </span> 37 </h1> 38 29 <h3> 30 Search Member Section 31 </h3> 32 <br /> 39 33 <div tal:replace="structure rendered_main">Rendered main...</div> 40 34 </metal:block> -
WAeUP_SRP/trunk/skins/waeup_directory/search_members_results.pt
r930 r953 16 16 "> 17 17 <div style="padding-left: 1.5em"> 18 <form action=" cpsdirectory_entry_delete" method="post">18 <form action="member_delete" method="post"> 19 19 <table tal:condition="results" summary="search result list"> 20 20 <tr>
Note: See TracChangeset for help on using the changeset viewer.