Changeset 5133 for WAeUP_SRP/trunk


Ignore:
Timestamp:
6 Apr 2010, 09:30:16 (15 years ago)
Author:
Henrik Bettermann
Message:

add page break before second sitting data

Location:
WAeUP_SRP/trunk/skins
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_slip.pt

    r3727 r5133  
    1111           
    1212        <h3><span tal:content="titles/StudentClearance" /> Slip</h3>
    13         <br />
    1413        <span tal:omit-tag=""
    1514              tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'],
     
    4342            </tr>
    4443        </table>                 
    45              
    4644        <span tal:omit-tag=""
    4745              tal:content="structure python: info['clear_doc'].render(proxy=info['clear_doc'],
    48               layout_mode='view',
     46              layout_mode='view_slip',
    4947              layout_id='student_clearance_fe')"
    5048              />
    51         <span tal:condition="not:context/isStudent">   
    52               <br /><br />
    53               <table  width=100%>
    54               <tr >
    55               <td width=50%>Date:</td><td>Date:</td>
    56               </tr>
    57               </table>
    58              
    59               <br /><br /><br /><br />
    60               <table  width=100%>
    61               <tr >
    62               <td width=50% style="border-top-style:solid; border-top-width:1px; border-top-color:black"> Student</td>
    63               <td width=50% style="border-top-style:solid; border-top-width:1px; border-top-color:black">Clearance Officer</td>
    64               </tr>
    65               </table>
    66          </span>             
     49           
    6750             
    6851      </span>
  • WAeUP_SRP/trunk/skins/waeup_student/getClearanceInfo.py

    r5029 r5133  
    1919import logging
    2020logger = logging.getLogger('Skins.getClearanceInfo')
    21 from DateTime import DateTime
     21import DateTime
     22now = DateTime.DateTime()
     23
    2224
    2325request = context.REQUEST
     
    2830path_info = request.get('PATH_INFO').split('/')
    2931
    30 # if mtool.isAnonymousUser():
    31 #     return None
    32 # info = {}
    33 # #from Products.zdb import set_trace
    34 # #set_trace()
    35 # requested_id = context.getStudentId()
    36 # if requested_id and not context.isStaff() and member_id != requested_id:
    37 #     logger.info('%s tried to access %s' % (member_id,requested_id))
    38 #     return None
    39 # elif context.isStaff():
    40 #     student_id = requested_id
    41 # else:
    42 #     student_id = member_id
    4332
    4433info = context.waeup_tool.getAccessInfo(context)
     34
     35info['timestamp'] = "%d" % int(now.timeTime()*1000)
     36
    4537student_id = info['student_id']
    4638if student_id is None:
  • WAeUP_SRP/trunk/skins/waeup_uniben/slip_template.pt

    r3709 r5133  
    9696        <td valign="top" style="width:700px">
    9797          <div style="padding:2em; text-align: left;"
    98                class="fontColordefaultfontcolors fontShapeTitleindex shapeAreaShape">
     98               class="fontColordefaultfontcolors fontShapeTitleindex ">
    9999                  <metal:block use-macro="here/generic_lib_portal_message/macros/portal_message" />
    100100                  <metal:block define-slot="header" />
Note: See TracChangeset for help on using the changeset viewer.