Ignore:
Timestamp:
20 Nov 2006, 15:11:29 (18 years ago)
Author:
Henrik Bettermann
Message:

new local roles implemented
role SectionOfficer? not yet tested

Location:
WAeUP_SRP/trunk/skins/waeup_accommodation
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_accommodation/acco_folder_view.pt

    r805 r911  
    11<metal:html tal:define="info context/getAccoFolderInfo;
    2             is_manager info/is_manager|nothing;
     2            is_so info/is_so|nothing;
    33            beds_generated options/beds_generated|nothing"
    44            >
     
    4848            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
    4949            <td align="left" valign="middle" style="width: 5px;"
    50                 tal:condition="is_manager">
     50                tal:condition="is_so">
    5151              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
    52                      tal:condition="is_manager"
     52                     tal:condition="is_so"
    5353                     tal:define="id row/id"
    5454                     tal:attributes="value id;
     
    7878            <td align="left" valign="top" rowspan="3"></td>
    7979            <td align="left" valign="top">
    80               <span tal:condition="is_manager">
     80              <span tal:condition="is_so">
    8181                <input type="button" value="button_select_all" class="context"
    8282                       onclick="someJavaScriptFunctionThatWillBeReplaced"
  • WAeUP_SRP/trunk/skins/waeup_accommodation/acco_hall_view.pt

    r805 r911  
    1 <metal:html tal:define="info context/getAccoHallInfo;
    2             is_manager info/is_manager|nothing;"
     1<metal:html tal:define="info context/getAccoHallInfo;"
    32            >
    43  <metal:body use-macro="here/waeup_content_master/macros/master">
  • WAeUP_SRP/trunk/skins/waeup_accommodation/getAccoFolderInfo.py

    r903 r911  
    1919
    2020info = {}
    21 info['is_manager'] = context.isSectionManager()
     21info['is_sm'] = context.isSectionManager()
     22info['is_so'] = context.isSectionOfficer()
    2223info['is_student'] = context.isStudent()
    2324info['action'] = "%s" % context.absolute_url()
  • WAeUP_SRP/trunk/skins/waeup_accommodation/getAccoHallInfo.py

    r903 r911  
    2121#dep_id = request.get('PATH_TRANSLATED').split('/')[-2]
    2222dep_id = context.aq_parent.getId()
    23 info['is_manager'] = context.isSectionManager()
     23info['is_sm'] = context.isSectionManager()
     24info['is_so'] = context.isSectionOfficer()
    2425info['is_student'] = context.isStudent()
    2526info['action'] = "%s" % context.absolute_url()
Note: See TracChangeset for help on using the changeset viewer.