Changeset 659 for WAeUP_SRP


Ignore:
Timestamp:
11 Oct 2006, 23:22:16 (18 years ago)
Author:
Henrik Bettermann
Message:

some fixes and minor modifications for the launching of the accommodation module

Location:
WAeUP_SRP/trunk
Files:
24 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/actions.xml

    r656 r659  
    108108   <permission>View</permission>
    109109  </action>
    110   <action title="Halls" action_id="view_accommodation"
     110  <action title="Hostels" action_id="view_accommodation"
    111111     category="navigation" condition_expr="member"
    112112     url_expr="string:${portal_url}/campus/accommodation" visible="True">
  • WAeUP_SRP/trunk/profiles/default/layouts/student_accommodation.xml

    r658 r659  
    1818  <property name="hidden_readonly_layout_modes"/>
    1919  <property name="view_format">iso8601_medium_easy</property>
    20 <property name="hidden_empty">True</property>
     20<property name="hidden_empty"></property>
    2121 </widget>
    2222 <widget name="acco_maint_sc_pin" meta_type="String Widget">
     
    3030  <property name="hidden_layout_modes"/>
    3131  <property name="hidden_readonly_layout_modes"/>
    32 <property name="hidden_empty">True</property>
    33  </widget>
    34  <widget name="acco_maint_sc_serial" meta_type="String Widget">
    35   <property name="title">Accommodation Maintainance SC-Serial</property>
    36   <property name="fields">
    37    <element value="acco_maint_sc_serial"/>
    38   </property>
    39   <property name="label">Accommodation Maintainance SC-Serial</property>
    40   <property name="label_edit">Accommodation Maintainance SC-Serial</property>
    41   <property name="readonly_layout_modes"/>
    42   <property name="hidden_layout_modes"/>
    43   <property name="hidden_readonly_layout_modes"/>
    44   <property name="display_width">10</property>
    45 <property name="hidden_empty">True</property>
     32<property name="hidden_empty"></property>
    4633 </widget>
    4734 <widget name="acco_res_date" meta_type="DateTime Widget">
     
    6855  <property name="hidden_readonly_layout_modes"/>
    6956 </widget>
    70  <widget name="acco_res_sc_serial" meta_type="String Widget">
    71   <property name="title">Accommodation Reservation SC-Serial</property>
    72   <property name="fields">
    73    <element value="acco_res_sc_serial"/>
    74   </property>
    75   <property name="label">Accommodation Reservation SC-Serial</property>
    76   <property name="label_edit">Accommodation Reservation SC-Serial</property>
    77   <property name="readonly_layout_modes"/>
    78   <property name="hidden_layout_modes"/>
    79   <property name="hidden_readonly_layout_modes"/>
    80 <property name="hidden_empty">True</property>
    81  </widget>
    8257 <widget name="bed" meta_type="String Widget">
    8358  <property name="title">Bed Id</property>
     
    8762  <property name="label">Bed Id</property>
    8863  <property name="label_edit">Bed Id</property>
    89   <property name="readonly_layout_modes"/>
     64  <property name="readonly_layout_modes">edit</property>
    9065  <property name="hidden_layout_modes"/>
    9166  <property name="hidden_readonly_layout_modes"/>
     
    9873  <property name="label">Session</property>
    9974  <property name="label_edit">Session</property>
    100   <property name="readonly_layout_modes"/>
     75  <property name="readonly_layout_modes">edit</property>
    10176  <property name="hidden_layout_modes"/>
    10277  <property name="hidden_readonly_layout_modes"/>
     
    11388  </row>
    11489  <row>
    115    <cell name="acco_res_sc_serial"/>
    116   </row>
    117   <row>
    11890   <cell name="acco_res_sc_pin"/>
    11991  </row>
     
    12294  </row>
    12395  <row>
    124    <cell name="acco_maint_sc_serial"/>
    125   </row>
    126   <row>
    12796   <cell name="acco_maint_sc_pin"/>
    12897  </row>
  • WAeUP_SRP/trunk/profiles/default/layouts/student_application_fe.xml

    r658 r659  
    9191  </property>
    9292  <property name="label">Student's Name</property>
    93   <property name="label_edit">Name</property>   
     93  <property name="label_edit">Name</property>
    9494  <property name="readonly_layout_modes">
    9595   <element value="edit"/>
     
    106106  </property>
    107107  <property name="label">JAMB Middlename</property>
    108   <property name="label_edit">JAMB Middlename</property> 
     108  <property name="label_edit">JAMB Middlename</property>
    109109  <property name="readonly_layout_modes">
    110110   <element value="edit"/>
     
    170170  <property name="readonly_layout_modes">
    171171  </property>
    172   <property name="hidden_layout_modes"/>
     172  <property name="hidden_layout_modes">
     173   <element value="create"/>
     174  </property>
    173175  <property name="hidden_readonly_layout_modes"/>
    174176 </widget>
  • WAeUP_SRP/trunk/profiles/default/schemas/student_accommodation.xml

    r629 r659  
    33 <field name="acco_maint_date" meta_type="CPS DateTime Field"/>
    44 <field name="acco_maint_sc_pin" meta_type="CPS String Field"/>
    5  <field name="acco_maint_sc_serial" meta_type="CPS String Field"/>
    65 <field name="acco_res_date" meta_type="CPS DateTime Field"/>
    76 <field name="acco_res_sc_pin" meta_type="CPS String Field"/>
    8  <field name="acco_res_sc_serial" meta_type="CPS String Field"/>
    97 <field name="bed" meta_type="CPS String Field"/>
    108 <field name="session" meta_type="CPS String Field"/>
  • WAeUP_SRP/trunk/profiles/default/types/ScratchCardBatch.xml

    r619 r659  
    3030 <alias from="created" to="scratch_card_batch_created"/>
    3131 <alias from="view" to="batch_index_html"/>
    32  <action title="Standard View" action_id="view" category="object"
     32 <action title="View" action_id="view" category="object"
    3333    condition_expr="" url_expr="string:${object_url}/batch_index_html"
    3434    visible="True">
  • WAeUP_SRP/trunk/profiles/default/types/ScratchCardBatchesFolder.xml

    r535 r659  
    2929 <alias from="created" to=""/>
    3030 <alias from="view" to="pins_index_html"/>
    31  <action title="Standard View" action_id="view" category="object"
     31 <action title="View" action_id="view" category="object"
    3232    condition_expr="" url_expr="string:${object_url}/pins_index_html"
    3333    visible="True">
  • WAeUP_SRP/trunk/profiles/default/types/Student.xml

    r639 r659  
    3535 <alias from="(Default)" to="student_index"/>
    3636 <alias from="view" to="student_index"/>
    37  <action title="Standard View" action_id="view" category="object"
     37 <action title="View" action_id="view" category="object"
    3838    condition_expr=""
    3939    url_expr="string:${object_url}/student_index" visible="True">
  • WAeUP_SRP/trunk/profiles/default/types/StudentAccommodation.xml

    r658 r659  
    88 <property name="product">WAeUP_SRP</property>
    99 <property name="factory">addStudentAccommodation</property>
    10  <property name="immediate_view">accommodation_view</property>
     10 <property name="immediate_view">academics_document_view</property>
    1111 <property name="global_allow">True</property>
    1212 <property name="filter_content_types">True</property>
     
    2626 <property name="storage_methods"/>
    2727 <property name="cps_is_portlet">False</property>
    28  <alias from="(Default)" to="accommodation_view"/>
    29  <alias from="view" to="accommodation_view"/>
    30  <action title="Standard View" action_id="view" category="object"
    31     condition_expr="" url_expr="string:${object_url}/accommodation_view"
     28 <alias from="(Default)" to="academics_document_view"/>
     29 <alias from="view" to="academics_document_view"/>
     30 <action title="View" action_id="view" category="object"
     31    condition_expr="" url_expr="string:${object_url}/academics_document_view"
    3232    visible="True">
    3333  <permission value="View"/>
    3434 </action>
     35 <action title="action_edit" action_id="edit" category="object"
     36    condition_expr="" url_expr="string:${object_url}/cpsdocument_edit"
     37    visible="True">
     38  <permission value="Modify portal content"/>
     39 </action>
    3540</object>
  • WAeUP_SRP/trunk/profiles/default/types/StudentApplication.xml

    r617 r659  
    2828 <alias from="(Default)" to="academics_document_view"/>
    2929 <alias from="view" to="academics_document_view"/>
    30  <action title="Standard View" action_id="view" category="object"
     30 <action title="View" action_id="view" category="object"
    3131    condition_expr="" url_expr="string:${object_url}/academics_document_view"
    3232    visible="True">
  • WAeUP_SRP/trunk/profiles/default/types/StudentClearance.xml

    r617 r659  
    3030 <alias from="(Default)" to="academics_document_view"/>
    3131 <alias from="view" to="academics_contents"/>
    32  <action title="Standard View" action_id="view" category="object"
     32 <action title="View" action_id="view" category="object"
    3333    condition_expr=""
    3434    url_expr="string:${object_url}/academics_document_view"
  • WAeUP_SRP/trunk/profiles/default/types/StudentCourseResult.xml

    r486 r659  
    2828 <alias from="(Default)" to="academics_contents"/>
    2929 <alias from="view" to="academics_contents"/>
    30  <action title="Standard View" action_id="view" category="object"
     30 <action title="View" action_id="view" category="object"
    3131    condition_expr="" url_expr="string:${object_url}/academics_contents"
    3232    visible="True">
  • WAeUP_SRP/trunk/profiles/default/types/StudentPersonal.xml

    r617 r659  
    3030 <alias from="(Default)" to="academics_document_view"/>
    3131 <alias from="view" to="academics_document_view"/>
    32  <action title="Standard View" action_id="view" category="object"
     32 <action title="View" action_id="view" category="object"
    3333    condition_expr=""
    3434    url_expr="string:${object_url}/academics_document_view"
  • WAeUP_SRP/trunk/profiles/default/workflows/waeup_course_registration_wf/definition.xml

    r534 r659  
    3838             new_state="created" trigger="USER"
    3939             before_script="" after_script="">
    40 
     40 
    4141  <guard>
    4242   <guard-role>Manager</guard-role>
     
    4949             new_state="" trigger="USER" before_script=""
    5050             after_script="">
    51 
     51 
    5252  <guard>
    5353   <guard-role>Manager</guard-role>
     
    6161             new_state="school_fee_pin_entered"
    6262             trigger="USER" before_script="" after_script="">
    63 
     63 
    6464  <guard>
    6565   <guard-role>Manager</guard-role>
     
    7171             new_state="finished" trigger="USER"
    7272             before_script="" after_script="">
    73 
     73 
    7474  <guard>
    7575   <guard-role>Manager</guard-role>
     
    8080             new_state="school_fee_pin_entered"
    8181             trigger="USER" before_script="" after_script="">
    82 
     82 
    8383  <guard>
    8484   <guard-role>Manager</guard-role>
     
    8989             new_state="passed" trigger="USER"
    9090             before_script="" after_script="">
    91 
     91 
    9292  <guard>
    9393   <guard-role>Manager</guard-role>
     
    9898             new_state="probation" trigger="USER"
    9999             before_script="" after_script="">
    100 
     100 
    101101  <guard>
    102102   <guard-role>Manager</guard-role>
     
    107107             new_state="courses_registered" trigger="USER"
    108108             before_script="" after_script="">
    109 
     109 
    110110  <guard>
    111111   <guard-role>Manager</guard-role>
     
    117117             new_state="failed" trigger="USER"
    118118             before_script="" after_script="">
    119 
     119 
    120120  <guard>
    121121   <guard-role>Manager</guard-role>
     
    126126             new_state="validated" trigger="USER"
    127127             before_script="" after_script="">
    128 
     128 
    129129  <guard>
    130130   <guard-role>Manager</guard-role>
     
    132132  </guard>
    133133 </transition>
    134 
    135134</cps-workflow>
  • WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_subobject_wf/definition.xml

    r603 r659  
    1414  <exit-transition transition_id="open"/>
    1515  <permission-map name="Modify portal content"
    16                   acquired="False">
    17    <permission-role>Owner</permission-role>
    18    <permission-role>Manager</permission-role>
    19    <permission-role>SectionManager</permission-role>
     16                  acquired="True">
    2017  </permission-map>
    21   <permission-map name="View" acquired="False">
    22    <permission-role>Owner</permission-role>
    23    <permission-role>Manager</permission-role>
    24    <permission-role>SectionManager</permission-role>
     18  <permission-map name="View" acquired="True">
    2519  </permission-map>
    2620  <permission-map name="WAeUPModify own content"
    27                   acquired="False">
    28    <permission-role>Owner</permission-role>
     21                  acquired="True">
    2922  </permission-map>
    3023 </state>
     
    3225  <exit-transition transition_id="close"/>
    3326  <permission-map name="Modify portal content"
    34                   acquired="False">
     27                  acquired="True">
    3528   <permission-role>Owner</permission-role>
    36    <permission-role>SectionManager</permission-role>
    37    <permission-role>Manager</permission-role>
    3829  </permission-map>
    39   <permission-map name="View" acquired="False">
     30  <permission-map name="View" acquired="True">
    4031   <permission-role>Owner</permission-role>
    4132  </permission-map>
    4233  <permission-map name="WAeUPModify own content"
    43                   acquired="False">
     34                  acquired="True">
    4435   <permission-role>Owner</permission-role>
    4536  </permission-map>
     
    5041 
    5142  <guard>
    52    <guard-permission>WAeUPModify own content</guard-permission>
     43   <guard-role>Manager</guard-role>
     44   <guard-role>SectionManager</guard-role>
     45   <guard-role>Owner</guard-role>
    5346  </guard>
    5447 </transition>
     
    6760 
    6861  <guard>
    69    <guard-permission>WAeUPModify own content</guard-permission>
     62   <guard-role>Manager</guard-role>
     63   <guard-role>SectionManager</guard-role>
     64   <guard-role>Owner</guard-role>
    7065  </guard>
    7166 </transition>
    7267</cps-workflow>
    73 
  • WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/definition.xml

    r643 r659  
    77 <permission>View</permission>
    88 <state state_id="admission_applied" title="">
    9  <exit-transition transition_id="create_content"/>
     9  <exit-transition transition_id="create_content"/>
    1010  <exit-transition transition_id="pume_fail"/>
    1111  <exit-transition transition_id="pume_pass"/>
     
    2121  <permission-map name="Modify portal content"
    2222                  acquired="True">
    23    <permission-role>Anonymous</permission-role>
    2423  </permission-map>
    2524  <permission-map name="View" acquired="True">
     
    3534  <exit-transition transition_id="reject_clearance"/>
    3635 </state>
    37  <state state_id="closed" title="">
    38   <exit-transition transition_id="open"/>
    39  </state>
    4036 <state state_id="created" title="">
    4137  <exit-transition transition_id="create_content"/>
     
    4339  <exit-transition transition_id="open"/>
    4440  <permission-map name="Modify portal content"
    45                   acquired="False">
    46    <permission-role>Owner</permission-role>
    47    <permission-role>Manager</permission-role>
    48    <permission-role>SectionManager</permission-role>
     41                  acquired="True">
    4942  </permission-map>
    5043  <permission-map name="View" acquired="True">
     
    5245 </state>
    5346 <state state_id="finally_rejected" title="">
    54  </state>
    55  <state state_id="opened" title="">
    56   <exit-transition transition_id="close"/>
    57   <permission-map name="Modify portal content"
    58                   acquired="True">
    59    <permission-role>Owner</permission-role>
    60   </permission-map>
    61   <permission-map name="View" acquired="True">
    62   </permission-map>
    6347 </state>
    6448 <state state_id="pume_failed" title="">
     
    9983  </guard>
    10084 </transition>
    101  <transition transition_id="close" title=""
    102              new_state="closed" trigger="USER"
    103              before_script="" after_script="">
    104  
    105   <guard>
    106    <guard-role>Manager</guard-role>
    107    <guard-role>SectionManager</guard-role>
    108   </guard>
    109  </transition>
    11085 <transition transition_id="create" title=""
    11186             new_state="created" trigger="USER"
     
    12297 
    12398  <guard>
     99   <guard-role>Manager</guard-role>
     100   <guard-role>SectionManager</guard-role>
     101   <guard-role>Owner</guard-role>
    124102  </guard>
    125103  <transition-behavior behavior_id="allow-sub-create"/>
    126   <transition-behavior behavior_id="allow-sub-delete"/>
    127104 </transition>
    128105 <transition transition_id="enter_application_pin" title=""
     
    131108 
    132109  <guard>
    133    <guard-permission>Modify portal content</guard-permission>
    134    <guard-permission></guard-permission>
     110   <guard-role>Manager</guard-role>
     111   <guard-role>SectionManager</guard-role>
     112   <guard-role>Owner</guard-role>
    135113  </guard>
    136114 </transition>
     
    153131   <guard-role>SectionManager</guard-role>
    154132   <guard-role>ClearanceOfficer</guard-role>
    155   </guard>
    156  </transition>
    157  <transition transition_id="open" title=""
    158              new_state="opened" trigger="USER"
    159              before_script="" after_script="">
    160  
    161   <guard>
    162    <guard-role>Manager</guard-role>
    163    <guard-role>SectionManager</guard-role>
    164133  </guard>
    165134 </transition>
     
    214183  </guard>
    215184 </transition>
     185 <variable variable_id="time" for_catalog="True"
     186           for_status="True" update_always="True">
     187  <description>Time of the last transition</description>
     188  <default>
     189   
     190   <expression>state_change/getDateTime</expression>
     191  </default>
     192  <guard>
     193  </guard>
     194 </variable>
    216195 <script script_id="open_application_personal"
    217196         type="Script (Python)"
  • WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/scripts/open_application_personal.py

    r514 r659  
    1 ## Script (Python) "open_personal"
     1## Script (Python) "open_application_personal"
    22##bind container=container
    33##bind context=context
  • WAeUP_SRP/trunk/skins/waeup_accommodation/acco_folder_view.pt

    r654 r659  
    2727        <tr>
    2828          <th width="200px">Bed Type</th>
    29           <th>Total No of Beds</th>
    30           <th>Reserved Beds</th>
     29          <th width="80px">Total</th>
     30          <th width="80px">Booked</th>
    3131        </tr>
    3232        <tr tal:repeat="bt bed_types">
  • WAeUP_SRP/trunk/skins/waeup_accommodation/acco_hall_view.pt

    r654 r659  
    1616      <span tal:omit-tag="" 
    1717            tal:content="structure python: info['doc'].render(layout_mode='view')" />
    18      
     18      <br />
    1919      <table tal:condition="info/bed_types"
    2020             tal:define="bed_types info/bed_types">
    2121        <tr>
    22           <th width="190px">Bed Type</th>
    23           <th>Total No of Beds</th>
    24           <th>Reserved Beds</th>
     22          <th width="200px">Bed Type</th>
     23          <th width="80px">Total</th>
     24          <th width="80px">Booked</th>
    2525        </tr>
    2626        <tr tal:repeat="bt bed_types">
     
    3131        <tr><td>&nbsp;</td></tr>
    3232      </table>
     33      <br />
    3334      <table tal:condition="info/reserved"
    3435             tal:define="reserved info/reserved">
  • WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py

    r658 r659  
    5353            if info['review_state'] == "created":
    5454                student.content_status_modify(workflow_action="enter_application_pin")
     55                wftool.doActionFor(info['app'],'open',dest_container=info['app'])
    5556                da = {}
    5657                pin = request.get('pin')
     
    7980    member.setProperties(last_login_time=current,login_time=current)
    8081    if info['review_state'] == "application_pin_entered":
    81         wftool.doActionFor(info['app'],'open',dest_container=info['app'])
     82
    8283        return response.redirect("%s/passport_entry_view" % student.absolute_url())
    8384    return response.redirect("%s" % student.absolute_url())
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py

    r656 r659  
    2222info = {}
    2323info['is_manager'] = context.isManager
     24info['is_student'] = context.isStudent()
    2425member_id = str(member)
    2526if student is None:
     
    5859else:
    5960    info['acco'] = None
    60    
    61 items = []   
    62 sos = context.portal_catalog(container_path=student_path,
    63                              review_state = ['opened', 'closed'])
     61
     62items = []
     63sos = context.portal_catalog(container_path=student_path)
    6464for so in sos:
    6565    row = {}
     
    6969    row['title'] = sod.Title()
    7070    row['url'] = soo.absolute_url()
     71    row['type'] = so.portal_type
    7172    row['is_editable'] = mtool.checkPermission('Modify portal content', soo)
     73    row['review_state'] = so.review_state
    7274    items.append(row)
    7375info['items'] = items
  • WAeUP_SRP/trunk/skins/waeup_student/reserve_accommodation.py

    r652 r659  
    88current = DateTime.DateTime()
    99pr = context.portal_registration
     10wftool = context.portal_workflow
    1011
    1112info = context.getStudentInfo()
     
    1516pr = context.portal_registration
    1617session = current.year()
    17 acco_id = 'Acco_%s' % session
     18acco_id = 'accommodation_%s' % session
    1819info = context.getStudentInfo()
    1920student = info['student']
     
    2728                      layout_mode='create',
    2829                      formaction = "reserve_accommodation",
    29                       button = "book Bed",
     30                      button = "Book",
    3031                      )
    3132if psm == 'invalid':
     
    4748    s_id = ds.get('s_id')
    4849    pin = str(ds.get('acco_res_ac_pin'))
    49    
     50
    5051    pa = context.portal_accommodation
    5152    code,bed = pa.searchAndReserveBed(s_id,"%s_%s" % (info['sex'],ds.get('student_status')))
     
    5960student.invokeFactory('StudentAccommodation',acco_id)
    6061acco = getattr(student,acco_id)
     62wftool.doActionFor(acco,'open',dest_container=acco)
    6163ds.set('acco_res_date', current)
    6264ds.set('bed', bed)
  • WAeUP_SRP/trunk/skins/waeup_student/student_edit.py

    r607 r659  
    4848                                    use_session=True)
    4949        action = "/passport_entry_view"
    50         if is_valid and app_doc.passport is not None:
     50        if app_doc.passport is not None:
    5151            psm = 'You successfully uploaded your passport image.'
    5252            args = {'apply_button': 'Apply',}
  • WAeUP_SRP/trunk/skins/waeup_student/student_index.py

    r655 r659  
    2121
    2222if context.isManager():
    23     return redirect("%s/academics_contents" % context.absolute_url())
     23    return redirect("%s/student_view" % context.absolute_url())
    2424if context.isStudent():
    2525    info = context.getStudentInfo()
    2626    student = info['student']
    27 #    doc = info['app_doc']
    28 #    state = context.getStudentInfo()['review_state']
    29 #    if state == 'admission_applied':
    30 #       elif state == 'application_pin_entered':
    31 #        return redirect("%s/passport_entry_view" % student.absolute_url())
    32 
    33     return redirect("%s/student_view" % student.absolute_url())
     27    doc = info['app_doc']
     28    state = context.getStudentInfo()['review_state']
     29    if state == 'admission_applied':
     30        return redirect("%s/application_view" % student.absolute_url())
     31    elif state == 'application_pin_entered':
     32        return redirect("%s/passport_entry_view" % student.absolute_url())
    3433
    3534
  • WAeUP_SRP/trunk/skins/waeup_student/student_view.pt

    r656 r659  
    11<metal:html tal:define="info context/getStudentInfo;
    2                 is_manager info/is_manager|nothing;">
     2                is_manager info/is_manager|nothing;
     3                is_student info/is_student|nothing">
    34  <metal:body use-macro="here/main_template/macros/master">
    45    <metal:main fill-slot="main">
     
    910            tal:define="review_state info/review_state;
    1011                        rows python: info['items']">
     12
     13      <a href="" tal:condition="is_manager"
     14         tal:attributes="href string:${here/academicsParent}">
     15        <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
     16        Up one level
     17      </a>
    1118           
    12         <h3>My Study Data</h3>
     19        <h3 tal:content="info/student/Title" />
    1320        <br />
    1421
    15         <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">     
     22        <table tal:condition="is_manager" class="contentListing" width="100%" summary="content layout" id="folder_content">     
    1623          <tr tal:repeat="row rows"
    1724            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
    18             <td align="left" valign="middle" style="width: 5px;"
    19                 tal:condition="is_manager">
    20              
    21             </td>
    2225            <td><a href="view" tal:attributes="href string:${row/url}">
    2326              <strong tal:content="row/title" /></a> </td>
    24            
    2527            <td>
    2628            <a tal:condition="row/is_editable"
     
    3133            </a>
    3234            </td>
    33            
    3435          </tr>
    3536        </table>
     37
     38        <table tal:condition="is_student" class="contentListing" width="100%" summary="content layout" id="folder_content">     
     39          <span tal:repeat="row rows">
     40          <tr tal:condition="python:row['type'] == 'StudentApplication' and row['review_state'] in ['opened', 'closed']"
     41            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
     42            <td><a href="view" tal:attributes="href string:${row/url}/application_view">
     43              <strong tal:content="row/title" /></a> </td>
     44            <td>
     45            <a tal:condition="row/is_editable"
     46                href="edit" tal:attributes="href string:${here/absolute_url}/passport_entry_view">
     47                [edit]
     48            </a>
     49            </td>
     50          </tr>
     51         
     52          <tr tal:condition="python:row['type'] == 'StudentAccommodation' and row['review_state'] in ['opened', 'closed']"
     53            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
     54            <td><a href="view" tal:attributes="href string:${row/url}/accommodation_view">
     55              <strong tal:content="row/title" /></a> </td>
     56            <td>
     57            </td>
     58          </tr>
     59         
     60          </span>
     61        </table>
     62
    3663       
    3764      </span>
Note: See TracChangeset for help on using the changeset viewer.