Changeset 911 for WAeUP_SRP/trunk/skins/waeup_default
- Timestamp:
- 20 Nov 2006, 15:11:29 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_default
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_default/getDynamicRoles.py
r880 r911 12 12 return the dynamic roles 13 13 """ 14 return ('ClearanceOfficer','CourseAdviser' )14 return ('ClearanceOfficer','CourseAdviser','SectionManager') 15 15 -
WAeUP_SRP/trunk/skins/waeup_default/isStaff.py
r903 r911 16 16 return "Manager" in roles or\ 17 17 "SectionManager" in roles or\ 18 "SectionOfficer" in roles or\ 18 19 "ClearanceOfficer" in roles or\ 19 20 "ClearanceOfficers" in member.getGroups() -
WAeUP_SRP/trunk/skins/waeup_default/waeup_document_view.pt
r805 r911 1 1 <metal:html tal:define="info context/getDocumentInfo; 2 2 s_info context/getStudentInfo; 3 is_ manager info/is_manager|nothing;"3 is_so info/is_so|nothing;" 4 4 > 5 5 <metal:body use-macro="here/waeup_content_master/macros/master"> … … 11 11 </a> 12 12 <h3> 13 <span tal:condition="python:is_ managerand s_info">13 <span tal:condition="python:is_so and s_info"> 14 14 <span tal:content="s_info/student/Title" />: 15 15 </span> -
WAeUP_SRP/trunk/skins/waeup_default/waeup_edit_form.pt
r903 r911 8 8 form_type string:waeup; 9 9 creation python:False; 10 edition python:True;10 is_allowed context/isSectionOfficer 11 11 metadata metadata|nothing; 12 12 "> … … 15 15 16 16 <metal:block fill-slot="header"> 17 <span tal:condition="not: context/isSectionManager">17 <span tal:condition="not: is_allowed"> 18 18 <metal:block use-macro="here/error_not_found/macros/not_found" /> 19 19 </span> 20 <span tal:condition=" context/isSectionManager">20 <span tal:condition="is_allowed"> 21 21 <h3 tal:condition="creation" i18n:translate=""> 22 22 Create a document of type … … 33 33 </a> 34 34 <h3> 35 <tal:block condition=" python: edition and notmetadata"35 <tal:block condition="not: metadata" 36 36 i18n:translate="">Edit <span id="page_title" i18n:name="title" 37 37 tal:content="here/title_or_id">Page Title</span> … … 47 47 48 48 49 <metal:block fill-slot="main" tal:condition=" context/isSectionManager">49 <metal:block fill-slot="main" tal:condition="is_allowed"> 50 50 <form action="waeup_edit" method="post" id="editForm" 51 51 enctype="multipart/form-data" class="workflow"
Note: See TracChangeset for help on using the changeset viewer.