Changeset 656


Ignore:
Timestamp:
11 Oct 2006, 13:58:31 (18 years ago)
Author:
Henrik Bettermann
Message:

my study

Location:
WAeUP_SRP/trunk
Files:
5 edited

Legend:

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

    r652 r656  
    239239              icon_expr="bell.png"/>
    240240 <action-icon category="student" action_id="reserve_accommodation"
    241               title="Book Hostal" priority="3"
    242               icon_expr="bell.png"/>                         
     241              title="Book Hostel" priority="3"
     242              icon_expr="bell.png"/>
    243243 <action-icon category="global" action_id="members"
    244244              title="Portal Members" priority="5"
  • WAeUP_SRP/trunk/profiles/default/actions.xml

    r652 r656  
    124124  </action>
    125125  <action title="Unchecked Items" action_id="unchecked" category="object"
    126      condition_expr="python:member and 'academics' in object_url" 
     126     condition_expr="python:member and 'academics' in object_url"
    127127     url_expr="string:./unchecked" visible="True">
    128128   <permission>Modify portal content</permission>
     
    138138   <permission>View</permission>
    139139  </action>
    140   <action title="Book Hostal" action_id="reserve_accommodation"
     140  <action title="Book Hostel" action_id="reserve_accommodation"
    141141     category="student" condition_expr="member"
    142142     url_expr="string:${portal_url}/reserve_accommodation"
     
    153153   <permission>View</permission>
    154154  </action>
    155   <action title="My Registration" action_id="registration"
     155  <action title="My Study" action_id="registration"
    156156     category="student_navigation" condition_expr="member"
    157157     url_expr="string:${portal_url}/campus/students" visible="True">
  • WAeUP_SRP/trunk/skins/waeup_student/accommodation_slip.pt

    r652 r656  
    1313  <metal:block fill-slot="main"
    1414      tal:define="info context/getStudentInfo">
    15     <h3>Hostal Reservation Acknowledge Slip</h3>
     15    <h3>Hostel Application Slip</h3>
    1616    <br />
    1717   
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py

    r648 r656  
    3838brain = res[-1]
    3939student = brain.getObject()
    40 student_path = brain.getPath()   
     40student_path = brain.getPath()
    4141info['review_state'] = wf.getInfoFor(student,'review_state','keiner')
    4242info['student'] = student
     
    5858else:
    5959    info['acco'] = None
     60   
     61items = []   
     62sos = context.portal_catalog(container_path=student_path,
     63                             review_state = ['opened', 'closed'])
     64for so in sos:
     65    row = {}
     66    soo = so.getObject()
     67    sod = soo.getContent()
     68    row['id'] = soo.getId()
     69    row['title'] = sod.Title()
     70    row['url'] = soo.absolute_url()
     71    row['is_editable'] = mtool.checkPermission('Modify portal content', soo)
     72    items.append(row)
     73info['items'] = items
    6074return info
  • WAeUP_SRP/trunk/skins/waeup_student/student_view.pt

    r655 r656  
    1 <metal:html tal:define="info context/getStudentInfo">
     1<metal:html tal:define="info context/getStudentInfo;
     2                is_manager info/is_manager|nothing;">
    23  <metal:body use-macro="here/main_template/macros/master">
    34    <metal:main fill-slot="main">
     
    67      </span>
    78      <span tal:condition="info"
    8             tal:define="review_state info/review_state">
     9            tal:define="review_state info/review_state;
     10                        rows python: info['items']">
    911           
    1012        <h3>My Study Data</h3>
    1113        <br />
     14
     15        <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">     
     16          <tr tal:repeat="row rows"
     17            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>
     22            <td><a href="view" tal:attributes="href string:${row/url}">
     23              <strong tal:content="row/title" /></a> </td>
     24           
     25            <td>
     26            <a tal:condition="row/is_editable"
     27                href="edit" tal:attributes="href string:${row/url}/external_edit_form"
     28                target="edit"
     29                onclick="javascript:window.open('','edit','width=600, height=700, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')">
     30                [edit]
     31            </a>
     32            </td>
     33           
     34          </tr>
     35        </table>
     36       
    1237      </span>
    1338    </metal:main>
Note: See TracChangeset for help on using the changeset viewer.