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

my study

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • 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.