Changeset 476 for WAeUP_SRP/trunk


Ignore:
Timestamp:
3 Sep 2006, 06:57:21 (18 years ago)
Author:
Henrik Bettermann
Message:

started work on application forms

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
1 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/application.py

    r472 r476  
    3030                      )
    3131if psm == 'invalid':
    32     return context.application_form(rendered = res,
     32    return context.application_pin_form(rendered = res,
    3333                                 psm = "Please correct your input",
    3434                                 ds = ds,
    3535                                 )
    3636elif psm == '':
    37     return context.application_form(rendered = res,
     37    return context.application_pin_form(rendered = res,
    3838                                 psm = None,
    3939                                 ds = ds,
     
    4848    if len(search) < 1:
    4949        psm = "No JAMB record %s" % (jamb_id)
    50         return context.application_form(rendered = res,
     50        return context.application_pin_form(rendered = res,
    5151                                 psm = psm,
    5252                                 ds = ds,
     
    5757student.invokeFactory('StudentPersonal','personal')
    5858# now display the passport form with jamb-data readonly
    59 return student.acknowledge_slip()
     59return student.application_form()
    6060
    6161
  • WAeUP_SRP/trunk/skins/waeup_student/application_form.pt

    r472 r476  
    1 <tal:block define="rendered_main options/rendered;
    2                    portal_status_message options/psm;
    3                    data_storage options/ds;
    4                    jamb options/jamb/getContent|nothing;
    5                    edition python:1;"
    6                    >
    7 <metal:block define-macro="edit_form">
    8 <metal:block use-macro="here/content_lib_master/macros/master">
    9   <metal:block fill-slot="header"
    10     tal:define="creation creation|nothing;
    11                 edition edition|nothing;
    12                 metadata metadata|nothing"
    13                 >
    14     </metal:block>
    15       <metal:block fill-slot="main">
    16         <h1>Apply for the Post University Matriculation Examination! </h1>
    17         <div tal:replace="structure rendered_main" />
    18           <p>Instructions :</p>
    19           <ul>
    20             <li>Buy an Application Scratch Card.</li>
    21             <li>Enter your JAMB registration number and the Application PIN above.</li>
    22             <li>Upload your passport picture.</li>
    23             <li>Print the Application Acknowledgement Slip.</li>
    24           </ul>
    25       </metal:block>
    26       <metal:block fill-slot="sub">
    27       </metal:block>
    28     </metal:block>
     1<html metal:use-macro="here/content_lib_master/macros/master">
     2  <metal:block fill-slot="head_slot">
    293  </metal:block>
    30 </tal:block>
     4
     5  <metal:block fill-slot="css_slot">
     6    <link rel="Stylesheet" type="text/css" href=""
     7      tal:attributes="href string:${base_url}document.css" />
     8  </metal:block>
     9  <metal:block fill-slot="header">
     10  </metal:block>
     11
     12  <metal:block fill-slot="main"
     13               tal:define="roles member/getRoles;
     14               frontend python:'Student' in roles or isAnon;
     15               folder here/getContent;"                             
     16               >
     17
     18    <tal:block tal:condition="python:context.portal_type == 'Student'" tal:omit-tag=""> 
     19      <tal:block tal:define="
     20                          appl python:here.application;
     21                          appl_proxy python:appl.getContent();
     22                          clear python:here.clearance;
     23                          clear_proxy python:clear.getContent();
     24                          pers python:here.personal;
     25                          pers_proxy python:pers.getContent();"
     26                          >
     27
     28      <h2>Acknowledgement Slip for <span tal:content="pers_proxy/firstname" /> <span tal:content="pers_proxy/lastname" /></h2>     
     29 
     30   
     31      <tal:block tal:content="structure python:appl_proxy.render(cluster='appl_slip')" />
     32      <tal:block tal:content="structure python:clear_proxy.render(cluster='appl_slip')" />
     33      <tal:block tal:content="structure python:pers_proxy.render(cluster='appl_slip')" />
     34
     35
     36      </tal:block> 
     37    </tal:block>
     38    <tal:block condition="python:context.portal_type != 'Student'">
     39   
     40      This is not a student object!
     41   
     42    </tal:block> 
     43 
     44  </metal:block>
     45
     46
     47
     48  <metal:block fill-slot="sub">
     49  </metal:block>
     50</html>
Note: See TracChangeset for help on using the changeset viewer.