Ignore:
Timestamp:
14 Jan 2007, 23:29:15 (18 years ago)
Author:
Henrik Bettermann
Message:

Page templates slimmed down
bug in reserve_accommodation fixed

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

Legend:

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

    r1249 r1292  
    1 <metal:html tal:define="info_acco context/getAccommodationInfo;
    2                         info_app  context/getApplicationInfo">
    3 
    4 <span tal:condition="not: info_acco">
    5   <span tal:content="here/illegal_view" />
    6 </span>
    7 <metal:block tal:condition="info_acco">
    8   <metal:body use-macro="here/main_template/macros/master">
    9     <metal:main fill-slot="main">
    10       <h3>Hostel Allocation Slip (and Maintenance Receipt)</h3>
    11       <br />
    12        
    13       <table width="" cellpadding="2" cellspacing="0" summary="Form layout">
    14 
    15         <tr tal:condition="python: 'passport' in info_acco['student'].application.getContent().objectIds()">
    16           <td colspan="2"><img tal:attributes="src string:${here/portal_url}/campus/students/${info_acco/id}/application/passport"/>
    17           </td>
    18         </tr>   
    19      
    20         <tr>
    21           <td width="180px">Student ID:</td>
    22           <td><span tal:content="info_acco/id" /></td>
    23         </tr>
    24         <tr tal:condition="info_acco/matric_no">
    25           <td>Matriculation Number:</td>
    26           <td><span tal:content="info_acco/matric_no" /></td>
    27         </tr>     
    28         <tr>
    29           <td>JAMB Registration Number:</td>
    30           <td><span tal:content="info_acco/jamb_reg_no" /></td>
    31         </tr>             
    32         <tr>
    33           <td>Student Name:</td>
    34           <td><span tal:content="info_acco/name" /></td>
    35         </tr>   
    36         <tr>
    37           <td>Sex:</td>
    38           <td><span tal:content="info_acco/sex" /></td>
    39         </tr>     
    40         <tr>
    41           <td>Level:</td>
    42           <td><span tal:content="info_acco/level" /></td>
    43         </tr>             
    44         <tr>
    45           <td>Bed Category:</td>
    46           <td><span tal:content="info_acco/student_status" /></td>
    47         </tr>           
    48         <tr tal:condition="info_acco/email">
    49           <td>Email:</td>
    50           <td><span tal:content="info_acco/email" /></td>
    51         </tr>     
    52         <tr tal:condition="not:info_acco/email">
    53           <td>Email:</td>
    54           <td><span tal:content="info_app/app_doc/app_email" /></td>
    55         </tr> 
    56         <tr tal:condition="info_app/app_doc/app_mobile">
    57           <td>Mobile Phone Number:</td>
    58           <td><span tal:content="info_app/app_doc/app_mobile" /></td>
    59         </tr>         
    60                          
    61       </table>
    62      
    63       <span tal:omit-tag=""
    64             tal:content="structure python: info_acco['acco_doc'].render(proxy=info_acco['acco_doc'],
    65             layout_mode='view_slip',
    66             layout_id='student_accommodation_fe')"
    67             />
     1<metal:body use-macro="here/main_template/macros/master">
     2    <metal:main fill-slot="main"
     3                tal:define="info_acco context/getAccommodationInfo;
     4                            info_app  context/getApplicationInfo">
     5      <span tal:condition="not: info_acco">
     6            <metal:block use-macro="here/error_not_found/macros/not_found" />
     7      </span>   
     8      <span tal:condition="info_acco">                   
     9          <h3>Hostel Allocation Slip (and Maintenance Receipt)</h3>
     10          <br />
     11          - updated database -
     12          <br /><br />
     13           
     14          <table width="" cellpadding="2" cellspacing="0" summary="Form layout">
     15   
     16            <tr tal:condition="python: 'passport' in info_acco['student'].application.getContent().objectIds()">
     17              <td colspan="2"><img tal:attributes="src string:${here/portal_url}/campus/students/${info_acco/id}/application/passport"/>
     18              </td>
     19            </tr>   
     20            <tr>
     21              <td width="180px">Student ID:</td>
     22              <td><span tal:content="info_acco/id" /></td>
     23            </tr>
     24            <tr tal:condition="info_acco/matric_no">
     25              <td>Matriculation Number:</td>
     26              <td><span tal:content="info_acco/matric_no" /></td>
     27            </tr>     
     28            <tr>
     29              <td>JAMB Registration Number:</td>
     30              <td><span tal:content="info_acco/jamb_reg_no" /></td>
     31            </tr>             
     32            <tr>
     33              <td>Student Name:</td>
     34              <td><span tal:content="info_acco/name" /></td>
     35            </tr>   
     36            <tr>
     37              <td>Sex:</td>
     38              <td><span tal:content="info_acco/sex" /></td>
     39            </tr>     
     40            <tr>
     41              <td>Level:</td>
     42              <td><span tal:content="info_acco/level" /></td>
     43            </tr>             
     44            <tr>
     45              <td>Bed Category:</td>
     46              <td><span tal:content="info_acco/student_status" /></td>
     47            </tr>           
     48            <tr tal:condition="info_acco/email">
     49              <td>Email:</td>
     50              <td><span tal:content="info_acco/email" /></td>
     51            </tr>     
     52            <tr tal:condition="not:info_acco/email">
     53              <td>Email:</td>
     54              <td><span tal:content="info_app/app_doc/app_email" /></td>
     55            </tr> 
     56            <tr tal:condition="info_app/app_doc/app_mobile">
     57              <td>Mobile Phone Number:</td>
     58              <td><span tal:content="info_app/app_doc/app_mobile" /></td>
     59            </tr>         
     60                             
     61          </table>
     62         
     63          <span tal:omit-tag=""
     64                tal:content="structure python: info_acco['acco_doc'].render(proxy=info_acco['acco_doc'],
     65                layout_mode='view_slip',
     66                layout_id='student_accommodation_fe')"
     67                />
     68      </span>     
    6869    </metal:main>
    69   </metal:body>
    70 </metal:block> 
    71 </metal:html>
     70</metal:body>
  • WAeUP_SRP/trunk/skins/waeup_student/application_slip.pt

    r1161 r1292  
    1 <metal:html tal:define="info context/getApplicationInfo">
    2   <span tal:condition="not: info">
    3     <span tal:content="here/illegal_view" />
    4   </span>
    5   <metal:block tal:condition="info">
    6   <metal:body use-macro="here/main_template/macros/master">
    7     <metal:main fill-slot="main">
     1<metal:body use-macro="here/main_template/macros/master">
     2    <metal:main fill-slot="main"
     3                tal:define="info context/getApplicationInfo">
    84      <span tal:condition="not: info">
    95        <metal:block use-macro="here/error_not_found/macros/not_found" />
     
    2117      </span>
    2218    </metal:main>
    23   </metal:body>
    24   </metal:block>   
    25 </metal:html>
     19</metal:body>
     20   
     21
  • WAeUP_SRP/trunk/skins/waeup_student/application_view.pt

    r1161 r1292  
    1 <metal:html tal:define="info context/getApplicationInfo">
    2   <span tal:condition="not: info">
    3     <span tal:content="here/illegal_view" />
    4   </span>
    5   <metal:block tal:condition="info">
    6   <metal:body use-macro="here/waeup_content_master/macros/master">
    7     <metal:main fill-slot="main">
     1<metal:body use-macro="here/waeup_content_master/macros/master">
     2   <metal:main fill-slot="main"
     3                 tal:define="info context/getApplicationInfo">
    84      <span tal:condition="not: info">
    95        <metal:block use-macro="here/error_not_found/macros/not_found" />
     
    3026              />
    3127      </span>
    32     </metal:main>
    33   </metal:body>
    34   </metal:block>
    35 </metal:html>
     28   </metal:main>
     29</metal:body>
  • WAeUP_SRP/trunk/skins/waeup_student/entry_results_anon_slip.pt

    r1123 r1292  
    1 <metal:html tal:define="pume python:context.portal_pumeresults(jamb_reg_no=request.get('nr'))[0]">
    2   <metal:body use-macro="here/main_template/macros/master">
    3     <metal:main fill-slot="main">
     1<metal:body use-macro="here/main_template/macros/master">
     2    <metal:main fill-slot="main"
     3                tal:define="pume python:context.portal_pumeresults(jamb_reg_no=request.get('nr'))[0]">
    44   
    55   
     
    4343      </table>
    4444     
    45      
    46      
    4745    </metal:main>
    48   </metal:body>
    49 </metal:html>
     46</metal:body>
     47
  • WAeUP_SRP/trunk/skins/waeup_student/entry_results_anon_view.pt

    r1169 r1292  
    1 <metal:html tal:define="pume options/pume;
    2                       result_type pume/result_type|string:PU">
    3   <metal:body use-macro="here/main_template/macros/master">
    4     <metal:main fill-slot="main">
     1<metal:body use-macro="here/main_template/macros/master">
     2    <metal:main fill-slot="main"
     3                 tal:define="pume options/pume;
     4                      result_type pume/result_type">
    55
    6         <span tal:condition="python:result_type =='PU'">       
     6        <span tal:condition="python:result_type !='DE'">       
    77        <div style="text-align: right">
    88        <a href="" target="slip" tal:attributes="href string:entry_results_anon_slip?nr=${pume/jamb_reg_no}"
     
    5959      </table>
    6060    </metal:main>
    61   </metal:body>
    62 </metal:html>
     61</metal:body>
     62
  • WAeUP_SRP/trunk/skins/waeup_student/personal_view.pt

    r1186 r1292  
    1 <metal:html tal:define="info context/getPersonalInfo">
    2   <span tal:condition="not: info">
    3     <span tal:content="here/illegal_view" />
    4   </span>
    5   <metal:block tal:condition="info">
    6   <metal:body use-macro="here/waeup_content_master/macros/master">
    7     <metal:main fill-slot="main">
     1<metal:body use-macro="here/waeup_content_master/macros/master">
     2    <metal:main fill-slot="main"
     3                tal:define="info context/getPersonalInfo">
    84      <span tal:condition="not: info">
    95        <metal:block use-macro="here/error_not_found/macros/not_found" />
     
    2016      </span>
    2117    </metal:main>
    22   </metal:body>
    23   </metal:block>
    24 </metal:html>
     18</metal:body>
  • WAeUP_SRP/trunk/skins/waeup_student/reserve_accommodation.py

    r1255 r1292  
    6161        psm = "Error in Data, unable to reserve bed."
    6262    return context.accommodation_pin_edit_form(rendered = res,
     63                                 psm = psm,
    6364                                 #psm = "%s, %s" % (psm,ds),
    6465                                 mode = mode,
     
    103104wftool.doActionFor(acco,'pay_maintenance_fee',dest_container=acco)
    104105return context.REQUEST.RESPONSE.redirect("%s/accommodation_view" % student.absolute_url())
     106
  • WAeUP_SRP/trunk/skins/waeup_student/session_results_anon_view.pt

    r1259 r1292  
    1 <metal:html tal:define="student options/student;
    2             results options/results;
    3             registered options/registered"
    4             >
    5   <metal:body use-macro="here/main_template/macros/master">
    6     <metal:main fill-slot="main">
     1<metal:body use-macro="here/main_template/macros/master">
     2    <metal:main fill-slot="main"
     3                tal:define="student options/student;
     4                            results options/results;
     5                            registered options/registered">
    76      <h3>Session Results of <span tal:content="student/Firstname" />
    87        <span tal:content="student/Middlename" />
     
    7675      </form>
    7776    </metal:main>
    78   </metal:body>
    79 </metal:html>
     77</metal:body>
     78
  • WAeUP_SRP/trunk/skins/waeup_student/session_results_slip.pt

    r1183 r1292  
    1 <metal:html tal:define="info context/getSessionResults">
    2   <metal:body use-macro="here/main_template/macros/master">
    3     <metal:main fill-slot="main">
     1<metal:body use-macro="here/main_template/macros/master">
     2    <metal:main fill-slot="main"
     3                tal:define="info context/getSessionResults">
    44      <div tal:condition="nothing" style="text-align: right">
    55        <a href="" target="slip" tal:attributes="href string:session_results_slip?nr=${info/student/matric_no}"
     
    7575
    7676    </metal:main>
    77   </metal:body>
    78 </metal:html>
     77</metal:body>
     78
  • WAeUP_SRP/trunk/skins/waeup_student/session_results_view.pt

    r1183 r1292  
    1 <metal:html tal:define="info context/getSessionResults">
    2   <metal:body use-macro="here/main_template/macros/master">
    3     <metal:main fill-slot="main">
     1<metal:body use-macro="here/main_template/macros/master">
     2    <metal:main fill-slot="main"
     3                tal:define="info context/getSessionResults">
    44      <div style="text-align: right">
    55        <a href="" target="slip" tal:attributes="href string:session_results_slip"
     
    8282      </form>
    8383    </metal:main>
    84   </metal:body>
    85 </metal:html>
     84</metal:body>
     85
    8686             
  • WAeUP_SRP/trunk/skins/waeup_student/statistics_new_view.pt

    r1286 r1292  
    1                      
    2   <metal:body use-macro="here/main_template/macros/master">
    3 
    4 
    5     <metal:main fill-slot="main">
    6 
     1<metal:body use-macro="here/main_template/macros/master">
     2  <metal:main fill-slot="main">
    73  <metal:block tal:define="departments context/getNewStudentStatistics;
    84                        mtool here/portal_membership;
     
    6965      </span>
    7066      </span>
    71 </metal:block>     
    72     </metal:main>
    73 
    74   </metal:body>
     67  </metal:block>     
     68  </metal:main>
     69</metal:body>
    7570     
  • WAeUP_SRP/trunk/skins/waeup_student/statistics_ret_view.pt

    r1286 r1292  
    1                      
    2   <metal:body use-macro="here/main_template/macros/master">
    3 
    4 
     1<metal:body use-macro="here/main_template/macros/master">
    52  <metal:main fill-slot="main">
    63  <metal:block tal:define="departments context/getRetStudentStatistics;
     
    3734  </metal:block>     
    3835  </metal:main>
    39 
    40   </metal:body>
     36</metal:body>
    4137     
Note: See TracChangeset for help on using the changeset viewer.