Changeset 788 for WAeUP_SRP


Ignore:
Timestamp:
8 Nov 2006, 08:32:36 (18 years ago)
Author:
joachim
Message:

added email to checkadmission-form, first draft of clearance_edit

Location:
WAeUP_SRP/trunk
Files:
4 added
1 deleted
10 edited
1 copied
1 moved

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/layouts/student_application_fe.xml

    r785 r788  
    8080  <property name="readonly_layout_modes">
    8181  </property>
    82   <property name="hidden_layout_modes">create</property>
     82  <property name="hidden_layout_modes"></property>
    8383  <property name="hidden_readonly_layout_modes"/>
    8484 </widget>
  • WAeUP_SRP/trunk/profiles/default/layouts/student_clearance.xml

    r770 r788  
    11<?xml version="1.0"?>
    22<object name="student_clearance" meta_type="CPS Layout">
    3  <property name="layout_create_method"></property>
     3 <property name="layout_create_method">layout_enter_access_code</property>
    44 <property name="layout_edit_method"></property>
    55 <property name="layout_view_method"></property>
    6  <property name="style_prefix">layout_waeup_</property>
     6 <property name="style_prefix">layout_clearance_</property>
    77 <property name="flexible_widgets"/>
    88 <property name="validate_values_expr"></property>
     
    1515  <property name="label_edit">Accepted by Institution</property>
    1616  <property name="readonly_layout_modes"/>
    17   <property name="hidden_layout_modes"/>
     17  <property name="hidden_layout_modes">
     18    <element value="create"/>
     19  </property>
    1820  <property name="hidden_readonly_layout_modes"/>
    1921  <property name="size_max">204800</property>
     
    3032  <property name="label_edit">Acceptance Letter </property>
    3133  <property name="readonly_layout_modes"/>
    32   <property name="hidden_layout_modes"/>
     34  <property name="hidden_layout_modes">
     35    <element value="create"/>
     36  </property>
    3337  <property name="hidden_readonly_layout_modes"/>
    3438  <property name="size_max">204800</property>
     
    4751     name="help">I hereby acknowledge by ticking this check box that if it is discovered at any time that i do not possess any of the qualifications which i claim to have obtained, i will be expelled from the University and shall not be re-admitted for the same or any other programme, even if i have upgraded my previous qualifications or possess additional qualifications.</property>
    4852  <property name="readonly_layout_modes"/>
    49   <property name="hidden_layout_modes"/>
     53  <property name="hidden_layout_modes">
     54    <element value="create"/>
     55  </property>
    5056  <property name="hidden_readonly_layout_modes"/>
    5157 </widget>
     
    5864  <property name="label_edit">Age Declaration</property>
    5965  <property name="readonly_layout_modes"/>
    60   <property name="hidden_layout_modes"/>
     66  <property name="hidden_layout_modes">
     67    <element value="create"/>
     68  </property>
    6169  <property name="hidden_readonly_layout_modes"/>
    6270  <property name="size_max">204800</property>
     
    7381  <property name="label_edit">Exam Date</property>
    7482  <property name="readonly_layout_modes"/>
    75   <property name="hidden_layout_modes"/>
     83  <property name="hidden_layout_modes">
     84    <element value="create"/>
     85  </property>
    7686  <property name="hidden_readonly_layout_modes"/>
    7787 </widget>
     
    8696     name="help">Fullname as it appears on certificate/result</property>
    8797  <property name="readonly_layout_modes"/>
    88   <property name="hidden_layout_modes"/>
     98  <property name="hidden_layout_modes">
     99    <element value="create"/>
     100  </property>
    89101  <property name="hidden_readonly_layout_modes"/>
    90102 </widget>
     
    97109  <property name="label_edit">Exam Number</property>
    98110  <property name="readonly_layout_modes"/>
    99   <property name="hidden_layout_modes"/>
     111  <property name="hidden_layout_modes">
     112    <element value="create"/>
     113  </property>
    100114  <property name="hidden_readonly_layout_modes"/>
    101115 </widget>
     
    108122  <property name="label_edit">Scan of Advanced Level Result</property>
    109123  <property name="readonly_layout_modes"/>
    110   <property name="hidden_layout_modes"/>
     124  <property name="hidden_layout_modes">
     125    <element value="create"/>
     126  </property>
    111127  <property name="hidden_readonly_layout_modes"/>
    112128  <property name="size_max">204800</property>
     
    123139  <property name="label_edit">Birth Certificate</property>
    124140  <property name="readonly_layout_modes"/>
    125   <property name="hidden_layout_modes"/>
     141  <property name="hidden_layout_modes">
     142    <element value="create"/>
     143  </property>
    126144  <property name="hidden_readonly_layout_modes"/>
    127145  <property name="size_max">204800</property>
     
    138156  <property name="label_edit">Day of Birth</property>
    139157  <property name="readonly_layout_modes"/>
    140   <property name="hidden_layout_modes"/>
     158  <property name="hidden_layout_modes">
     159    <element value="create"/>
     160  </property>
    141161  <property name="hidden_readonly_layout_modes"/>
    142162 </widget>
     
    149169  <property name="label_edit">Certificateficate</property>
    150170  <property name="readonly_layout_modes"/>
    151   <property name="hidden_layout_modes"/>
     171  <property name="hidden_layout_modes">
     172    <element value="create"/>
     173  </property>
    152174  <property name="hidden_readonly_layout_modes"/>
    153175  <property name="size_max">204800</property>
     
    166188   <element value="edit"/>
    167189  </property>
    168   <property name="hidden_layout_modes">
    169    <element value="create"/>
    170   </property>
     190  <property name="hidden_layout_modes" />
    171191  <property name="hidden_readonly_layout_modes"/>
    172192  <property name="prefix">CLR</property>
     
    180200  <property name="label_edit">Credential</property>
    181201  <property name="readonly_layout_modes"/>
    182   <property name="hidden_layout_modes"/>
     202  <property name="hidden_layout_modes">
     203    <element value="create"/>
     204  </property>
    183205  <property name="hidden_readonly_layout_modes"/>
    184206  <property name="size_max">204800</property>
     
    197219     name="help">Tick this box if you wish to defer admission till next session.</property>
    198220  <property name="readonly_layout_modes"/>
    199   <property name="hidden_layout_modes"/>
     221  <property name="hidden_layout_modes">
     222    <element value="create"/>
     223  </property>
    200224  <property name="hidden_readonly_layout_modes"/>
    201225 </widget>
     
    208232  <property name="label_edit">Email</property>
    209233  <property name="readonly_layout_modes"/>
    210   <property name="hidden_layout_modes"/>
     234  <property name="hidden_layout_modes">
     235    <element value="create"/>
     236  </property>
    211237  <property name="hidden_readonly_layout_modes"/>
    212238 </widget>
     
    219245  <property name="label_edit">Entry Date</property>
    220246  <property name="readonly_layout_modes"/>
    221   <property name="hidden_layout_modes"/>
     247  <property name="hidden_layout_modes">
     248    <element value="create"/>
     249  </property>
    222250  <property name="hidden_readonly_layout_modes"/>
    223251 </widget>
     
    230258  <property name="label_edit">Entry Session</property>
    231259  <property name="readonly_layout_modes"/>
    232   <property name="hidden_layout_modes"/>
     260  <property name="hidden_layout_modes">
     261    <element value="create"/>
     262  </property>
    233263  <property name="hidden_readonly_layout_modes"/>
    234264 </widget>
     
    241271  <property name="label_edit">Evidence of Name</property>
    242272  <property name="readonly_layout_modes"/>
    243   <property name="hidden_layout_modes"/>
     273  <property name="hidden_layout_modes">
     274    <element value="create"/>
     275  </property>
    244276  <property name="hidden_readonly_layout_modes"/>
    245277  <property name="size_max">204800</property>
     
    256288  <property name="label_edit">Former Matric/RegNo</property>
    257289  <property name="readonly_layout_modes"/>
    258   <property name="hidden_layout_modes"/>
     290  <property name="hidden_layout_modes">
     291    <element value="create"/>
     292  </property>
    259293  <property name="hidden_readonly_layout_modes"/>
    260294 </widget>
     
    267301  <property name="label_edit">First Choice</property>
    268302  <property name="readonly_layout_modes"/>
    269   <property name="hidden_layout_modes"/>
     303  <property name="hidden_layout_modes">
     304    <element value="create"/>
     305  </property>
    270306  <property name="hidden_readonly_layout_modes"/>
    271307 </widget>
     
    278314  <property name="label_edit">Exam Date</property>
    279315  <property name="readonly_layout_modes"/>
    280   <property name="hidden_layout_modes"/>
     316  <property name="hidden_layout_modes">
     317    <element value="create"/>
     318  </property>
    281319  <property name="hidden_readonly_layout_modes"/>
    282320 </widget>
     
    291329     name="help">Fullname as it appears on certificate/result</property>
    292330  <property name="readonly_layout_modes"/>
    293   <property name="hidden_layout_modes"/>
     331  <property name="hidden_layout_modes">
     332    <element value="create"/>
     333  </property>
    294334  <property name="hidden_readonly_layout_modes"/>
    295335 </widget>
     
    302342  <property name="label_edit">Exam Number</property>
    303343  <property name="readonly_layout_modes"/>
    304   <property name="hidden_layout_modes"/>
     344  <property name="hidden_layout_modes">
     345    <element value="create"/>
     346  </property>
    305347  <property name="hidden_readonly_layout_modes"/>
    306348 </widget>
     
    313355  <property name="label_edit">Scan of First Sitting Result</property>
    314356  <property name="readonly_layout_modes"/>
    315   <property name="hidden_layout_modes"/>
     357  <property name="hidden_layout_modes">
     358    <element value="create"/>
     359  </property>
    316360  <property name="hidden_readonly_layout_modes"/>
    317361  <property name="size_max">204800</property>
     
    328372  <property name="label_edit">Exam Type</property>
    329373  <property name="readonly_layout_modes"/>
    330   <property name="hidden_layout_modes"/>
     374  <property name="hidden_layout_modes">
     375    <element value="create"/>
     376  </property>
    331377  <property name="hidden_readonly_layout_modes"/>
    332378  <property name="vocabulary">exam_types</property>
     
    340386  <property name="label_edit">Discipline</property>
    341387  <property name="readonly_layout_modes"/>
    342   <property name="hidden_layout_modes"/>
     388  <property name="hidden_layout_modes">
     389    <element value="create"/>
     390  </property>
    343391  <property name="hidden_readonly_layout_modes"/>
    344392 </widget>
     
    351399  <property name="label_edit">Higher Qualification Grade</property>
    352400  <property name="readonly_layout_modes"/>
    353   <property name="hidden_layout_modes"/>
     401  <property name="hidden_layout_modes">
     402    <element value="create"/>
     403  </property>
    354404  <property name="hidden_readonly_layout_modes"/>
    355405  <property name="vocabulary">high_grade</property>
     
    363413  <property name="label_edit">Matric Number</property>
    364414  <property name="readonly_layout_modes"/>
    365   <property name="hidden_layout_modes"/>
     415  <property name="hidden_layout_modes">
     416    <element value="create"/>
     417  </property>
    366418  <property name="hidden_readonly_layout_modes"/>
    367419 </widget>
     
    374426  <property name="label_edit">Scan of Higher Qualification Result</property>
    375427  <property name="readonly_layout_modes"/>
    376   <property name="hidden_layout_modes"/>
     428  <property name="hidden_layout_modes">
     429    <element value="create"/>
     430  </property>
    377431  <property name="hidden_readonly_layout_modes"/>
    378432  <property name="size_max">204800</property>
     
    389443  <property name="label_edit">School Attended</property>
    390444  <property name="readonly_layout_modes"/>
    391   <property name="hidden_layout_modes"/>
     445  <property name="hidden_layout_modes">
     446    <element value="create"/>
     447  </property>
    392448  <property name="hidden_readonly_layout_modes"/>
    393449 </widget>
     
    400456  <property name="label_edit">Session Obtained</property>
    401457  <property name="readonly_layout_modes"/>
    402   <property name="hidden_layout_modes"/>
     458  <property name="hidden_layout_modes">
     459    <element value="create"/>
     460  </property>
    403461  <property name="hidden_readonly_layout_modes"/>
    404462 </widget>
     
    411469  <property name="label_edit">Higher Qualification</property>
    412470  <property name="readonly_layout_modes"/>
    413   <property name="hidden_layout_modes"/>
     471  <property name="hidden_layout_modes">
     472    <element value="create"/>
     473  </property>
    414474  <property name="hidden_readonly_layout_modes"/>
    415475  <property name="vocabulary">high_qual</property>
     
    423483  <property name="label_edit">JAMB Letter</property>
    424484  <property name="readonly_layout_modes"/>
    425   <property name="hidden_layout_modes"/>
     485  <property name="hidden_layout_modes">
     486    <element value="create"/>
     487  </property>
    426488  <property name="hidden_readonly_layout_modes"/>
    427489  <property name="size_max">204800</property>
     
    438500  <property name="label_edit">JAMB Slip</property>
    439501  <property name="readonly_layout_modes"/>
    440   <property name="hidden_layout_modes"/>
     502  <property name="hidden_layout_modes">
     503    <element value="create"/>
     504  </property>
    441505  <property name="hidden_readonly_layout_modes"/>
    442506  <property name="size_max">204800</property>
     
    453517  <property name="label_edit">Local Government Area</property>
    454518  <property name="readonly_layout_modes"/>
    455   <property name="hidden_layout_modes"/>
     519  <property name="hidden_layout_modes">
     520    <element value="create"/>
     521  </property>
    456522  <property name="hidden_readonly_layout_modes"/>
    457523  <property name="vocabulary">local_gov_areas</property>
     
    465531  <property name="label_edit">LGA Identification</property>
    466532  <property name="readonly_layout_modes"/>
    467   <property name="hidden_layout_modes"/>
     533  <property name="hidden_layout_modes">
     534    <element value="create"/>
     535  </property>
    468536  <property name="hidden_readonly_layout_modes"/>
    469537  <property name="size_max">204800</property>
     
    480548  <property name="label_edit">Matriculation Number</property>
    481549  <property name="readonly_layout_modes"/>
    482   <property name="hidden_layout_modes"/>
     550  <property name="hidden_layout_modes">
     551    <element value="create"/>
     552  </property>
    483553  <property name="hidden_readonly_layout_modes"/>
    484554  <property name="display_width">10</property>
     
    493563  <property name="label_edit">Nationality</property>
    494564  <property name="readonly_layout_modes"/>
    495   <property name="hidden_layout_modes"/>
     565  <property name="hidden_layout_modes">
     566    <element value="create"/>
     567  </property>
    496568  <property name="hidden_readonly_layout_modes"/>
    497569  <property name="vocabulary">states</property>
     
    505577  <property name="label_edit">Referee Letter</property>
    506578  <property name="readonly_layout_modes"/>
    507   <property name="hidden_layout_modes"/>
     579  <property name="hidden_layout_modes">
     580    <element value="create"/>
     581  </property>
    508582  <property name="hidden_readonly_layout_modes"/>
    509583  <property name="size_max">204800</property>
     
    520594  <property name="label_edit">Result Statement</property>
    521595  <property name="readonly_layout_modes"/>
    522   <property name="hidden_layout_modes"/>
     596  <property name="hidden_layout_modes">
     597    <element value="create"/>
     598  </property>
    523599  <property name="hidden_readonly_layout_modes"/>
    524600  <property name="size_max">204800</property>
     
    535611  <property name="label_edit">Second Choice</property>
    536612  <property name="readonly_layout_modes"/>
    537   <property name="hidden_layout_modes"/>
     613  <property name="hidden_layout_modes">
     614    <element value="create"/>
     615  </property>
    538616  <property name="hidden_readonly_layout_modes"/>
    539617 </widget>
     
    546624  <property name="label_edit">Exam Date</property>
    547625  <property name="readonly_layout_modes"/>
    548   <property name="hidden_layout_modes"/>
     626  <property name="hidden_layout_modes">
     627    <element value="create"/>
     628  </property>
    549629  <property name="hidden_readonly_layout_modes"/>
    550630 </widget>
     
    559639     name="help">Fullname as it appears on certificate/result</property>
    560640  <property name="readonly_layout_modes"/>
    561   <property name="hidden_layout_modes"/>
     641  <property name="hidden_layout_modes">
     642    <element value="create"/>
     643  </property>
    562644  <property name="hidden_readonly_layout_modes"/>
    563645 </widget>
     
    570652  <property name="label_edit">Exam Number</property>
    571653  <property name="readonly_layout_modes"/>
    572   <property name="hidden_layout_modes"/>
     654  <property name="hidden_layout_modes">
     655    <element value="create"/>
     656  </property>
    573657  <property name="hidden_readonly_layout_modes"/>
    574658 </widget>
     
    581665  <property name="label_edit">Scan of Second Sitting Result</property>
    582666  <property name="readonly_layout_modes"/>
    583   <property name="hidden_layout_modes"/>
     667  <property name="hidden_layout_modes">
     668    <element value="create"/>
     669  </property>
    584670  <property name="hidden_readonly_layout_modes"/>
    585671  <property name="size_max">204800</property>
     
    596682  <property name="label_edit">Exam Type</property>
    597683  <property name="readonly_layout_modes"/>
    598   <property name="hidden_layout_modes"/>
     684  <property name="hidden_layout_modes">
     685    <element value="create"/>
     686  </property>
    599687  <property name="hidden_readonly_layout_modes"/>
    600688  <property name="vocabulary">exam_types</property>
     
    608696  <property name="label_edit">Statutory Declaration of Good Conduct</property>
    609697  <property name="readonly_layout_modes"/>
    610   <property name="hidden_layout_modes"/>
     698  <property name="hidden_layout_modes">
     699    <element value="create"/>
     700  </property>
    611701  <property name="hidden_readonly_layout_modes"/>
    612702  <property name="size_max">204800</property>
     
    623713  <property name="label_edit">Supplementary Addmission</property>
    624714  <property name="readonly_layout_modes"/>
    625   <property name="hidden_layout_modes"/>
     715  <property name="hidden_layout_modes">
     716    <element value="create"/>
     717  </property>
    626718  <property name="hidden_readonly_layout_modes"/>
    627719 </widget>
     
    634726  <property name="label_edit">Former UNIBEN Student</property>
    635727  <property name="readonly_layout_modes"/>
    636   <property name="hidden_layout_modes"/>
     728  <property name="hidden_layout_modes">
     729    <element value="create"/>
     730  </property>
    637731  <property name="hidden_readonly_layout_modes"/>
    638732 </widget>
  • WAeUP_SRP/trunk/profiles/default/layouts/student_clearance_fe.xml

    r775 r788  
    11<?xml version="1.0"?>
    22<object name="student_clearance" meta_type="CPS Layout">
    3  <property name="layout_create_method"></property>
     3 <property name="layout_create_method">layout_enter_access_code</property>
    44 <property name="layout_edit_method"></property>
    55 <property name="layout_view_method"></property>
    6  <property name="style_prefix">layout_waeup_</property>
     6 <property name="style_prefix">layout_clearance_</property>
    77 <property name="flexible_widgets"/>
    88 <property name="validate_values_expr"></property>
     
    1212   <element value="acc_inst"/>
    1313  </property>
    14  
    1514  <property name="label">Accepted by Institution</property>
    1615  <property name="label_edit">Accepted by Institution</property>
    1716  <property name="readonly_layout_modes"/>
    18   <property name="hidden_layout_modes"/>
     17  <property name="hidden_layout_modes">
     18    <element value="create"/>
     19  </property>
    1920  <property name="hidden_readonly_layout_modes"/>
    2021  <property name="size_max">204800</property>
     
    2829   <element value="acc_let"/>
    2930  </property>
    30  
    3131  <property name="label">Acceptance Letter </property>
    3232  <property name="label_edit">Acceptance Letter </property>
    3333  <property name="readonly_layout_modes"/>
    34   <property name="hidden_layout_modes"/>
     34  <property name="hidden_layout_modes">
     35    <element value="create"/>
     36  </property>
    3537  <property name="hidden_readonly_layout_modes"/>
    3638  <property name="size_max">204800</property>
     
    4951     name="help">I hereby acknowledge by ticking this check box that if it is discovered at any time that i do not possess any of the qualifications which i claim to have obtained, i will be expelled from the University and shall not be re-admitted for the same or any other programme, even if i have upgraded my previous qualifications or possess additional qualifications.</property>
    5052  <property name="readonly_layout_modes"/>
    51   <property name="hidden_layout_modes"/>
     53  <property name="hidden_layout_modes">
     54    <element value="create"/>
     55  </property>
    5256  <property name="hidden_readonly_layout_modes"/>
    5357 </widget>
     
    5761   <element value="age_dec"/>
    5862  </property>
    59  
    6063  <property name="label">Age Declaration</property>
    6164  <property name="label_edit">Age Declaration</property>
    6265  <property name="readonly_layout_modes"/>
    63   <property name="hidden_layout_modes"/>
     66  <property name="hidden_layout_modes">
     67    <element value="create"/>
     68  </property>
    6469  <property name="hidden_readonly_layout_modes"/>
    6570  <property name="size_max">204800</property>
     
    7681  <property name="label_edit">Exam Date</property>
    7782  <property name="readonly_layout_modes"/>
    78   <property name="hidden_layout_modes"/>
     83  <property name="hidden_layout_modes">
     84    <element value="create"/>
     85  </property>
    7986  <property name="hidden_readonly_layout_modes"/>
    8087 </widget>
     
    8996     name="help">Fullname as it appears on certificate/result</property>
    9097  <property name="readonly_layout_modes"/>
    91   <property name="hidden_layout_modes"/>
     98  <property name="hidden_layout_modes">
     99    <element value="create"/>
     100  </property>
    92101  <property name="hidden_readonly_layout_modes"/>
    93102 </widget>
     
    100109  <property name="label_edit">Exam Number</property>
    101110  <property name="readonly_layout_modes"/>
    102   <property name="hidden_layout_modes"/>
     111  <property name="hidden_layout_modes">
     112    <element value="create"/>
     113  </property>
    103114  <property name="hidden_readonly_layout_modes"/>
    104115 </widget>
     
    108119   <element value="alr_scan"/>
    109120  </property>
    110  
    111121  <property name="label">Scan of Advanced Level Result</property>
    112122  <property name="label_edit">Scan of Advanced Level Result</property>
    113123  <property name="readonly_layout_modes"/>
    114   <property name="hidden_layout_modes"/>
     124  <property name="hidden_layout_modes">
     125    <element value="create"/>
     126  </property>
    115127  <property name="hidden_readonly_layout_modes"/>
    116128  <property name="size_max">204800</property>
     
    124136   <element value="birth_certificate"/>
    125137  </property>
    126  
    127138  <property name="label">Birth Certificate</property>
    128139  <property name="label_edit">Birth Certificate</property>
    129140  <property name="readonly_layout_modes"/>
    130   <property name="hidden_layout_modes"/>
     141  <property name="hidden_layout_modes">
     142    <element value="create"/>
     143  </property>
    131144  <property name="hidden_readonly_layout_modes"/>
    132145  <property name="size_max">204800</property>
     
    143156  <property name="label_edit">Day of Birth</property>
    144157  <property name="readonly_layout_modes"/>
    145   <property name="hidden_layout_modes"/>
     158  <property name="hidden_layout_modes">
     159    <element value="create"/>
     160  </property>
    146161  <property name="hidden_readonly_layout_modes"/>
    147162 </widget>
     
    151166   <element value="cert"/>
    152167  </property>
    153  
    154168  <property name="label">Certificateficate</property>
    155169  <property name="label_edit">Certificateficate</property>
    156170  <property name="readonly_layout_modes"/>
    157   <property name="hidden_layout_modes"/>
     171  <property name="hidden_layout_modes">
     172    <element value="create"/>
     173  </property>
    158174  <property name="hidden_readonly_layout_modes"/>
    159175  <property name="size_max">204800</property>
     
    172188   <element value="edit"/>
    173189  </property>
    174   <property name="hidden_layout_modes">
    175    <element value="create"/>
    176   </property>
     190  <property name="hidden_layout_modes" />
    177191  <property name="hidden_readonly_layout_modes"/>
    178192  <property name="prefix">CLR</property>
     
    183197   <element value="cred"/>
    184198  </property>
    185  
    186199  <property name="label">Credential</property>
    187200  <property name="label_edit">Credential</property>
    188201  <property name="readonly_layout_modes"/>
    189   <property name="hidden_layout_modes"/>
     202  <property name="hidden_layout_modes">
     203    <element value="create"/>
     204  </property>
    190205  <property name="hidden_readonly_layout_modes"/>
    191206  <property name="size_max">204800</property>
     
    204219     name="help">Tick this box if you wish to defer admission till next session.</property>
    205220  <property name="readonly_layout_modes"/>
    206   <property name="hidden_layout_modes"/>
     221  <property name="hidden_layout_modes">
     222    <element value="create"/>
     223  </property>
    207224  <property name="hidden_readonly_layout_modes"/>
    208225 </widget>
     
    215232  <property name="label_edit">Email</property>
    216233  <property name="readonly_layout_modes"/>
    217   <property name="hidden_layout_modes"/>
     234  <property name="hidden_layout_modes">
     235    <element value="create"/>
     236  </property>
    218237  <property name="hidden_readonly_layout_modes"/>
    219238 </widget>
     
    226245  <property name="label_edit">Entry Date</property>
    227246  <property name="readonly_layout_modes"/>
    228   <property name="hidden_layout_modes"/>
     247  <property name="hidden_layout_modes">
     248    <element value="create"/>
     249  </property>
    229250  <property name="hidden_readonly_layout_modes"/>
    230251 </widget>
     
    237258  <property name="label_edit">Entry Session</property>
    238259  <property name="readonly_layout_modes"/>
    239   <property name="hidden_layout_modes"/>
     260  <property name="hidden_layout_modes">
     261    <element value="create"/>
     262  </property>
    240263  <property name="hidden_readonly_layout_modes"/>
    241264 </widget>
     
    245268   <element value="evid"/>
    246269  </property>
    247  
    248270  <property name="label">Evidence of Name</property>
    249271  <property name="label_edit">Evidence of Name</property>
    250272  <property name="readonly_layout_modes"/>
    251   <property name="hidden_layout_modes"/>
     273  <property name="hidden_layout_modes">
     274    <element value="create"/>
     275  </property>
    252276  <property name="hidden_readonly_layout_modes"/>
    253277  <property name="size_max">204800</property>
     
    264288  <property name="label_edit">Former Matric/RegNo</property>
    265289  <property name="readonly_layout_modes"/>
    266   <property name="hidden_layout_modes"/>
     290  <property name="hidden_layout_modes">
     291    <element value="create"/>
     292  </property>
    267293  <property name="hidden_readonly_layout_modes"/>
    268294 </widget>
     
    275301  <property name="label_edit">First Choice</property>
    276302  <property name="readonly_layout_modes"/>
    277   <property name="hidden_layout_modes"/>
     303  <property name="hidden_layout_modes">
     304    <element value="create"/>
     305  </property>
    278306  <property name="hidden_readonly_layout_modes"/>
    279307 </widget>
     
    286314  <property name="label_edit">Exam Date</property>
    287315  <property name="readonly_layout_modes"/>
    288   <property name="hidden_layout_modes"/>
     316  <property name="hidden_layout_modes">
     317    <element value="create"/>
     318  </property>
    289319  <property name="hidden_readonly_layout_modes"/>
    290320 </widget>
     
    299329     name="help">Fullname as it appears on certificate/result</property>
    300330  <property name="readonly_layout_modes"/>
    301   <property name="hidden_layout_modes"/>
     331  <property name="hidden_layout_modes">
     332    <element value="create"/>
     333  </property>
    302334  <property name="hidden_readonly_layout_modes"/>
    303335 </widget>
     
    310342  <property name="label_edit">Exam Number</property>
    311343  <property name="readonly_layout_modes"/>
    312   <property name="hidden_layout_modes"/>
     344  <property name="hidden_layout_modes">
     345    <element value="create"/>
     346  </property>
    313347  <property name="hidden_readonly_layout_modes"/>
    314348 </widget>
     
    318352   <element value="fst_sit_scan"/>
    319353  </property>
    320  
    321354  <property name="label">Scan of First Sitting Result</property>
    322355  <property name="label_edit">Scan of First Sitting Result</property>
    323356  <property name="readonly_layout_modes"/>
    324   <property name="hidden_layout_modes"/>
     357  <property name="hidden_layout_modes">
     358    <element value="create"/>
     359  </property>
    325360  <property name="hidden_readonly_layout_modes"/>
    326361  <property name="size_max">204800</property>
     
    337372  <property name="label_edit">Exam Type</property>
    338373  <property name="readonly_layout_modes"/>
    339   <property name="hidden_layout_modes"/>
     374  <property name="hidden_layout_modes">
     375    <element value="create"/>
     376  </property>
    340377  <property name="hidden_readonly_layout_modes"/>
    341378  <property name="vocabulary">exam_types</property>
     
    349386  <property name="label_edit">Discipline</property>
    350387  <property name="readonly_layout_modes"/>
    351   <property name="hidden_layout_modes"/>
     388  <property name="hidden_layout_modes">
     389    <element value="create"/>
     390  </property>
    352391  <property name="hidden_readonly_layout_modes"/>
    353392 </widget>
     
    360399  <property name="label_edit">Higher Qualification Grade</property>
    361400  <property name="readonly_layout_modes"/>
    362   <property name="hidden_layout_modes"/>
     401  <property name="hidden_layout_modes">
     402    <element value="create"/>
     403  </property>
    363404  <property name="hidden_readonly_layout_modes"/>
    364405  <property name="vocabulary">high_grade</property>
     
    372413  <property name="label_edit">Matric Number</property>
    373414  <property name="readonly_layout_modes"/>
    374   <property name="hidden_layout_modes"/>
     415  <property name="hidden_layout_modes">
     416    <element value="create"/>
     417  </property>
    375418  <property name="hidden_readonly_layout_modes"/>
    376419 </widget>
     
    380423   <element value="hq_scan"/>
    381424  </property>
    382  
    383425  <property name="label">Scan of Higher Qualification Result</property>
    384426  <property name="label_edit">Scan of Higher Qualification Result</property>
    385427  <property name="readonly_layout_modes"/>
    386   <property name="hidden_layout_modes"/>
     428  <property name="hidden_layout_modes">
     429    <element value="create"/>
     430  </property>
    387431  <property name="hidden_readonly_layout_modes"/>
    388432  <property name="size_max">204800</property>
     
    399443  <property name="label_edit">School Attended</property>
    400444  <property name="readonly_layout_modes"/>
    401   <property name="hidden_layout_modes"/>
     445  <property name="hidden_layout_modes">
     446    <element value="create"/>
     447  </property>
    402448  <property name="hidden_readonly_layout_modes"/>
    403449 </widget>
     
    410456  <property name="label_edit">Session Obtained</property>
    411457  <property name="readonly_layout_modes"/>
    412   <property name="hidden_layout_modes"/>
     458  <property name="hidden_layout_modes">
     459    <element value="create"/>
     460  </property>
    413461  <property name="hidden_readonly_layout_modes"/>
    414462 </widget>
     
    421469  <property name="label_edit">Higher Qualification</property>
    422470  <property name="readonly_layout_modes"/>
    423   <property name="hidden_layout_modes"/>
     471  <property name="hidden_layout_modes">
     472    <element value="create"/>
     473  </property>
    424474  <property name="hidden_readonly_layout_modes"/>
    425475  <property name="vocabulary">high_qual</property>
     
    430480   <element value="jamb_let"/>
    431481  </property>
    432  
    433482  <property name="label">JAMB Letter</property>
    434483  <property name="label_edit">JAMB Letter</property>
    435484  <property name="readonly_layout_modes"/>
    436   <property name="hidden_layout_modes"/>
     485  <property name="hidden_layout_modes">
     486    <element value="create"/>
     487  </property>
    437488  <property name="hidden_readonly_layout_modes"/>
    438489  <property name="size_max">204800</property>
     
    446497   <element value="jamb_slip"/>
    447498  </property>
    448  
    449499  <property name="label">JAMB Slip</property>
    450500  <property name="label_edit">JAMB Slip</property>
    451501  <property name="readonly_layout_modes"/>
    452   <property name="hidden_layout_modes"/>
     502  <property name="hidden_layout_modes">
     503    <element value="create"/>
     504  </property>
    453505  <property name="hidden_readonly_layout_modes"/>
    454506  <property name="size_max">204800</property>
     
    465517  <property name="label_edit">Local Government Area</property>
    466518  <property name="readonly_layout_modes"/>
    467   <property name="hidden_layout_modes"/>
     519  <property name="hidden_layout_modes">
     520    <element value="create"/>
     521  </property>
    468522  <property name="hidden_readonly_layout_modes"/>
    469523  <property name="vocabulary">local_gov_areas</property>
     
    474528   <element value="lga_ident"/>
    475529  </property>
    476  
    477530  <property name="label">LGA Identification</property>
    478531  <property name="label_edit">LGA Identification</property>
    479532  <property name="readonly_layout_modes"/>
    480   <property name="hidden_layout_modes"/>
     533  <property name="hidden_layout_modes">
     534    <element value="create"/>
     535  </property>
    481536  <property name="hidden_readonly_layout_modes"/>
    482537  <property name="size_max">204800</property>
     
    493548  <property name="label_edit">Matriculation Number</property>
    494549  <property name="readonly_layout_modes"/>
    495   <property name="hidden_layout_modes"/>
     550  <property name="hidden_layout_modes">
     551    <element value="create"/>
     552  </property>
    496553  <property name="hidden_readonly_layout_modes"/>
    497554  <property name="display_width">10</property>
     
    506563  <property name="label_edit">Nationality</property>
    507564  <property name="readonly_layout_modes"/>
    508   <property name="hidden_layout_modes"/>
     565  <property name="hidden_layout_modes">
     566    <element value="create"/>
     567  </property>
    509568  <property name="hidden_readonly_layout_modes"/>
    510569  <property name="vocabulary">states</property>
     
    515574   <element value="ref_let"/>
    516575  </property>
    517  
    518576  <property name="label">Referee Letter</property>
    519577  <property name="label_edit">Referee Letter</property>
    520578  <property name="readonly_layout_modes"/>
    521   <property name="hidden_layout_modes"/>
     579  <property name="hidden_layout_modes">
     580    <element value="create"/>
     581  </property>
    522582  <property name="hidden_readonly_layout_modes"/>
    523583  <property name="size_max">204800</property>
     
    531591   <element value="res_stat"/>
    532592  </property>
    533  
    534593  <property name="label">Result Statement</property>
    535594  <property name="label_edit">Result Statement</property>
    536595  <property name="readonly_layout_modes"/>
    537   <property name="hidden_layout_modes"/>
     596  <property name="hidden_layout_modes">
     597    <element value="create"/>
     598  </property>
    538599  <property name="hidden_readonly_layout_modes"/>
    539600  <property name="size_max">204800</property>
     
    550611  <property name="label_edit">Second Choice</property>
    551612  <property name="readonly_layout_modes"/>
    552   <property name="hidden_layout_modes"/>
     613  <property name="hidden_layout_modes">
     614    <element value="create"/>
     615  </property>
    553616  <property name="hidden_readonly_layout_modes"/>
    554617 </widget>
     
    561624  <property name="label_edit">Exam Date</property>
    562625  <property name="readonly_layout_modes"/>
    563   <property name="hidden_layout_modes"/>
     626  <property name="hidden_layout_modes">
     627    <element value="create"/>
     628  </property>
    564629  <property name="hidden_readonly_layout_modes"/>
    565630 </widget>
     
    574639     name="help">Fullname as it appears on certificate/result</property>
    575640  <property name="readonly_layout_modes"/>
    576   <property name="hidden_layout_modes"/>
     641  <property name="hidden_layout_modes">
     642    <element value="create"/>
     643  </property>
    577644  <property name="hidden_readonly_layout_modes"/>
    578645 </widget>
     
    585652  <property name="label_edit">Exam Number</property>
    586653  <property name="readonly_layout_modes"/>
    587   <property name="hidden_layout_modes"/>
     654  <property name="hidden_layout_modes">
     655    <element value="create"/>
     656  </property>
    588657  <property name="hidden_readonly_layout_modes"/>
    589658 </widget>
     
    593662   <element value="scd_sit_scan"/>
    594663  </property>
    595  
    596664  <property name="label">Scan of Second Sitting Result</property>
    597665  <property name="label_edit">Scan of Second Sitting Result</property>
    598666  <property name="readonly_layout_modes"/>
    599   <property name="hidden_layout_modes"/>
     667  <property name="hidden_layout_modes">
     668    <element value="create"/>
     669  </property>
    600670  <property name="hidden_readonly_layout_modes"/>
    601671  <property name="size_max">204800</property>
     
    612682  <property name="label_edit">Exam Type</property>
    613683  <property name="readonly_layout_modes"/>
    614   <property name="hidden_layout_modes"/>
     684  <property name="hidden_layout_modes">
     685    <element value="create"/>
     686  </property>
    615687  <property name="hidden_readonly_layout_modes"/>
    616688  <property name="vocabulary">exam_types</property>
     
    621693   <element value="stat_dec"/>
    622694  </property>
    623  
    624695  <property name="label">Statutory Declaration of Good Conduct</property>
    625696  <property name="label_edit">Statutory Declaration of Good Conduct</property>
    626697  <property name="readonly_layout_modes"/>
    627   <property name="hidden_layout_modes"/>
     698  <property name="hidden_layout_modes">
     699    <element value="create"/>
     700  </property>
    628701  <property name="hidden_readonly_layout_modes"/>
    629702  <property name="size_max">204800</property>
     
    640713  <property name="label_edit">Supplementary Addmission</property>
    641714  <property name="readonly_layout_modes"/>
    642   <property name="hidden_layout_modes"/>
     715  <property name="hidden_layout_modes">
     716    <element value="create"/>
     717  </property>
    643718  <property name="hidden_readonly_layout_modes"/>
    644719 </widget>
     
    651726  <property name="label_edit">Former UNIBEN Student</property>
    652727  <property name="readonly_layout_modes"/>
    653   <property name="hidden_layout_modes"/>
     728  <property name="hidden_layout_modes">
     729    <element value="create"/>
     730  </property>
    654731  <property name="hidden_readonly_layout_modes"/>
    655732 </widget>
    656733 <table>
    657734  <row>
     735   <cell name="matric_no"/>
     736  </row>
     737  <row>
     738   <cell name="clr_ac_pin"/>
     739  </row>
     740  <row>
     741   <cell name="entry_date"/>
     742  </row>
     743  <row>
     744   <cell name="entry_session"/>
     745  </row>
     746  <row>
    658747   <cell name="birthday"/>
    659748  </row>
     
    666755  <row>
    667756   <cell name="email"/>
     757  </row>
     758  <row>
     759   <cell name="fst_sit_fname"/>
     760  </row>
     761  <row>
     762   <cell name="fst_sit_no"/>
     763  </row>
     764  <row>
     765   <cell name="fst_sit_date"/>
     766  </row>
     767  <row>
     768   <cell name="fst_sit_type"/>
     769  </row>
     770  <row>
     771   <cell name="fst_sit_scan"/>
     772  </row>
     773  <row>
     774   <cell name="scd_sit_fname"/>
     775  </row>
     776  <row>
     777   <cell name="scd_sit_no"/>
     778  </row>
     779  <row>
     780   <cell name="scd_sit_date"/>
     781  </row>
     782  <row>
     783   <cell name="scd_sit_type"/>
     784  </row>
     785  <row>
     786   <cell name="scd_sit_scan"/>
     787  </row>
     788  <row>
     789   <cell name="alr_fname"/>
     790  </row>
     791  <row>
     792   <cell name="alr_no"/>
     793  </row>
     794  <row>
     795   <cell name="alr_date"/>
     796  </row>
     797  <row>
     798   <cell name="alr_scan"/>
     799  </row>
     800  <row>
     801   <cell name="hq_type"/>
     802  </row>
     803  <row>
     804   <cell name="hq_grade"/>
     805  </row>
     806  <row>
     807   <cell name="hq_school"/>
     808  </row>
     809  <row>
     810   <cell name="hq_matric_no"/>
     811  </row>
     812  <row>
     813   <cell name="hq_session"/>
     814  </row>
     815  <row>
     816   <cell name="hq_disc"/>
     817  </row>
     818  <row>
     819   <cell name="hq_scan"/>
     820  </row>
     821  <row>
     822   <cell name="birth_certificate"/>
     823  </row>
     824  <row>
     825   <cell name="lga_ident"/>
     826  </row>
     827  <row>
     828   <cell name="acc_let"/>
     829  </row>
     830  <row>
     831   <cell name="jamb_slip"/>
     832  </row>
     833  <row>
     834   <cell name="cert"/>
     835  </row>
     836  <row>
     837   <cell name="evid"/>
     838  </row>
     839  <row>
     840   <cell name="jamb_let"/>
     841  </row>
     842  <row>
     843   <cell name="res_stat"/>
     844  </row>
     845  <row>
     846   <cell name="ref_let"/>
     847  </row>
     848  <row>
     849   <cell name="cred"/>
     850  </row>
     851  <row>
     852   <cell name="stat_dec"/>
     853  </row>
     854  <row>
     855   <cell name="age_dec"/>
     856  </row>
     857  <row>
     858   <cell name="acc_inst"/>
     859  </row>
     860  <row>
     861   <cell name="fst_ch"/>
     862  </row>
     863  <row>
     864   <cell name="scd_ch"/>
     865  </row>
     866  <row>
     867   <cell name="sup_adm"/>
     868  </row>
     869  <row>
     870   <cell name="uniben"/>
     871  </row>
     872  <row>
     873   <cell name="form_matric_no"/>
     874  </row>
     875  <row>
     876   <cell name="def_adm"/>
     877  </row>
     878  <row>
     879   <cell name="acknow"/>
    668880  </row>
    669881 </table>
  • WAeUP_SRP/trunk/skins/waeup_custom/cpsdocument_edit.py

    r716 r788  
    3535# (We don't call getEditableContent here, validate does it when needed.)
    3636info = context.getStudentInfo()
    37 if info and info['is_student']:
    38     return
     37##if info and info['is_student']:
     38##    return
    3939doc = context.getContent()
    4040is_valid, ds = doc.validate(request=REQUEST, proxy=context, cluster=cluster,
  • WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py

    r785 r788  
    5656                da = {}
    5757                pin = request.get('pin')
     58                email = request.get('email')
    5859                app_doc = info['app_doc']
    5960                da['app_ac_pin'] = pin
     61                da['app_email'] = email
    6062                da['app_ac_date'] = current
    6163                app_doc.edit(mapping = da)
  • WAeUP_SRP/trunk/skins/waeup_student/application_edit.py

    r784 r788  
    55##bind script=script
    66##bind subpath=traverse_subpath
    7 ##parameters=REQUEST, cluster=None, cpsdocument_edit_and_view_button=None, action=None
     7##parameters=REQUEST,proceed=None, cpsdocument_edit_button=None, action=None
    88##title=
    99# $Id$
     
    1717
    1818# Until ajax posts directly to its own script...
    19 if 'ajax_edit' in REQUEST.form:
    20     return context.cpsdocument_edit_ajax(REQUEST, cluster=cluster)
     19##if 'ajax_edit' in REQUEST.form:
     20##    return context.cpsdocument_edit_ajax(REQUEST, cluster=cluster)
    2121
    2222# Check flexible controls
     
    3333clear_doc = info['clear_doc']
    3434state = context.getStudentInfo()['review_state']
    35 
    36 if context.portal_type == "Student":
    37     if app_doc.passport is None:
    38         is_valid, ds = app_doc.validate(request=REQUEST,
    39                                     proxy=app_doc,
    40                                     layout_id = "student_application_fe",
    41                                     layout_mode = 'edit',
    42                                     use_session=True)
    43         action = "/application_edit"
    44         if is_valid:
    45             if app_doc.passport is not None:
    46                 psm = 'You successfully uploaded your passport image.'
    47                 args = {'apply_button': 'Apply',}
    48             else:
    49                 psm = "You didn't upload a passport image."
    50                 args = {}
    51         else:
    52             psm = 'psm_content_error'
    53             args = getFormUidUrlArg(REQUEST)
    54     elif 'apply_admission' not in REQUEST.form:
    55         is_valid, ds = app_doc.validate(request=REQUEST,
    56                                     proxy=app_doc,
    57                                     layout_id = "student_application_fe",
    58                                     layout_mode = 'edit',
    59                                     use_session=True)
    60         action = "/application_edit"
    61         if is_valid:
    62             args = {}
    63             if 'apply_admission' not in REQUEST.form:
    64                 args = {'apply_button': 'Apply',}
    65                 psm = 'You successfully uploaded your passport image.'
    66             else:
    67                 psm = 'You applied for admission.'
    68         else:
    69             args = getFormUidUrlArg(REQUEST)
    70             psm = 'psm_content_error'
    71     else:
    72         psm = ''
    73         args = {}
    74         if info['review_state'] == "student_created":
    75             student.content_status_modify(workflow_action="apply_for_admission")
    76             wftool.doActionFor(app,'close',dest_container= app)
    77             psm = 'You applied for admission.'
    78             action = "/application_view"
    79         elif info['review_state'] == "admitted":
    80             student.content_status_modify(workflow_action="enter_clearance_pin")
    81             #wftool.doActionFor(info['clear'],'open',dest_container=info['clear'])
    82             app_doc = info['app_doc']
    83             dc = {}
    84             dc['email'] = app_doc.app_email
    85             info['clear_doc'].edit(mapping = dc)
    86             wftool.doActionFor(app,'close',dest_container= app)
    87             psm = 'You successfully started the clearance process.'
    88             action = "/clearance_edit"
    89         else:
    90             action = "/clearance_view"
    91 
    92 else:
    93     is_valid, ds = app_doc.validate(request=REQUEST, proxy=context, cluster=cluster,
     35is_valid, ds = app_doc.validate(request=REQUEST,
     36                                schema_id = 'student_application',
     37                                layout_id = 'student_application_fe',
     38                                proxy=app,
    9439                                use_session=True)
    9540
    96     if action is None:
    97         ti = app.getTypeInfo()
    98         action = ti.queryMethodID('edit', 'cpsdocument_edit_form')
    99         action = '/' + action
    100 
     41psm = ""
     42args = {}
     43action = "/application_edit_view"
     44if cpsdocument_edit_button:
    10145    if is_valid:
    102         comments = REQUEST.get('comments')
    103         context.cpsdocument_notify_modification(comments=comments)
    104         if cpsdocument_edit_and_view_button is not None:
    105             action = ''
    106         psm = 'psm_content_changed'
    107         args = {}
     46        if app_doc.passport is not None:
     47            args['proceed'] = 'Continue to Clearance'
     48            psm = 'You successfully uploaded your passport image.'
     49        else:
     50            psm = "You didn't upload a passport image."
     51elif proceed:
     52    if is_valid:
     53        action = "/request_clearance"
    10854    else:
    10955        psm = 'psm_content_error'
    110         args = getFormUidUrlArg(REQUEST)
    111 
    11256args['portal_status_message'] = psm
    113 url = context.absolute_url() + action + '?' + urlencode(args)
     57url = app.absolute_url() + action + '?' + urlencode(args)
    11458REQUEST.RESPONSE.redirect(url)
  • WAeUP_SRP/trunk/skins/waeup_student/check_admission.py

    r785 r788  
    55"""
    66import DateTime
     7from urllib import urlencode
    78current = DateTime.DateTime()
    89pr = context.portal_registration
    9 
    10 
    1110type_name = 'StudentApplication'
    1211ti = context.portal_types[type_name]
     
    4544elif psm == 'valid':
    4645    s_id = ds.get('s_id')
     46    email = ds.get('app_email')
    4747    student = getattr(context.campus.students, s_id)
    4848    review_state = wf.getInfoFor(student,'review_state',None)
     
    5151        return redirect(url)
    5252    pin = str(ds.get('app_ac_pin'))
    53     return redirect("%s/logged_in?__ac_name=%s&__ac_password=%s&pin=%s"
    54           % (context.absolute_url(),s_id,pin.split('-')[2],pin))
    55 return
     53    args = {}
     54    args['__ac_name'] = s_id
     55    args['__ac_password'] = pin.split('-')[2]
     56    args['pin'] = pin
     57    args['email'] = email
     58    url = "%s/logged_in?%s" % (context.absolute_url(),urlencode(args))
     59    return redirect(url)
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_view.pt

    r786 r788  
    11<tal:block define="
    22           info context/getStudentInfo;
    3            res python:info['clear_doc'].renderEditDetailed(request=request,
    4                                                       schema_id='student_clearance',
    5                                                       layout_id='student_clearance_fe',
    6                                                       layout_mode='edit',);
    7            rendered_main python: res[0];
     3           rendered_main python:info['clear_doc'].render(request=request,
     4                                               layout_mode = 'edit',
     5                                               schema_id='student_clearance',
     6                                               layout_id='student_clearance_fe',
     7                                               layout_mode='edit',);
    88           form_action string:clearance_edit;
    99           edition python:True;
     10           creation python:False;
    1011           metadata nothing;
    1112    ">
    1213<metal:block define-macro="edit_form">
    1314<metal:block use-macro="here/content_lib_master/macros/master">
     15  <metal:block fill-slot="style_slot">
     16    <link rel="Stylesheet" type="text/css" href=""
     17      tal:attributes="href string:${base_url}document.css" />
    1418
     19    <metal:block define-macro="widgets_javascript">
     20    <!-- XXX this has to move to CPSSchemas -->
     21    <style type="text/css"
     22      tal:content="string:@import url(${base_url}calendar-win2k-1.css);"></style>
     23    <script type="text/javascript" src="calendar.js"
     24      tal:attributes="src string:${base_url}calendar.js"></script>
     25    <script type="text/javascript" src="lang/calendar-en.js"
     26      tal:define="local cpsmcat/getSelectedLanguage"
     27      tal:attributes="src string:${base_url}lang/calendar-${local}.js"></script>
     28    <script type="text/javascript" src="calendar-setup.js"
     29      tal:attributes="src string:${base_url}calendar-setup.js"></script>
     30    <script type="text/javascript" src="prototype.js"
     31      tal:attributes="src string:${base_url}prototype.js"></script>
     32    <script type="text/javascript" src="effects.js"
     33      tal:attributes="src string:${base_url}effects.js"></script>
     34    <script type="text/javascript" src="controls.js"
     35      tal:attributes="src string:${base_url}controls.js"></script>
     36    <script type="text/javascript" src="cpsdocument.js"
     37      tal:attributes="src string:${base_url}cpsdocument.js"></script>
     38    <tal:block condition="python:modules['Products.CPSUtil.integration'].isProductPresent('Products.FCKeditor')">
     39      <script type="text/javascript">
     40        var popup_editor_form = 'popup_fckeditor_form';
     41        var width = 640;
     42        var height = 520;
     43      </script>
     44    </tal:block>
     45    <tal:block condition="python:modules['Products.CPSUtil.integration'].isProductPresent('Products.Epoz')">
     46      <script type="text/javascript">
     47        var popup_editor_form = 'popup_rte_form';
     48        var width = 640;
     49        var height = 480;
     50      </script>
     51    </tal:block>
     52    <script type="text/javascript">
     53     function popup_rte(input_id, label_edit) {
     54       var args, value;
     55       value = document.getElementById(input_id).value;
     56       args = '?input_id='+input_id+'&amp;label_edit='+escape(label_edit);
     57       str_window_features = 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,dependent=1,width=' + width + ',height=' + height;
     58       popup = window.open(popup_editor_form + args, input_id, str_window_features);
     59       if (!popup.opener) {
     60         popup.opener = window;
     61       }
     62       return false;
     63     }
     64   </script>
     65   </metal:block>
     66  </metal:block>
    1567
    16   <metal:block fill-slot="header">
    17     <h3>
    18       Edit your Clearance Data!
    19     </h3>
    20   </metal:block>
     68    <h1> Edit your clearance Data</h1>
    2169
    2270  <metal:block fill-slot="main">
     
    2876          <tal:block define="getFormUidHtml nocall:modules/Products.CPSDocument.utils/getFormUidHtml"
    2977                     replace="structure python:getFormUidHtml(request)"/>
    30          
    3178          <input type="hidden" id="button_placeholder" name="button_placeholder" value="" />
    3279          <div id="rendered_main" tal:content="structure rendered_main">
     
    3481          </div>
    3582        </div>
    36          
    37                
     83        <metal:block use-macro="here/cpsdocument_edit_buttons/macros/buttons"/>
    3884      </div>
    3985    </form>
     86    <div id="ajax_psm" style="display:none">
     87      ajax feedback
     88    </div>
    4089  </metal:block>
    4190
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_pin_form.pt

    r766 r788  
    2020          <ul>
    2121            <li>Buy a Clearance Scratch Card.</li>
    22             <li>Enter your JAMB registration number and the Clearance PIN above.</li>
    23             <li>Upload your passport picture.</li>
    2422            <li>Apply</li>
    2523          </ul>
  • WAeUP_SRP/trunk/skins/waeup_student/defer_view.pt

    r785 r788  
    3030      <table tal:define="sc python: info['course_doc']">
    3131        <tr>
     32          <td tal:content="sc/title" /> <td>ID: <span tal:content="sc/study_course" /></td>
     33        </tr>
     34        <tr>
    3235          <td tal:content="sc/title" /> <td tal:content="sc/study_course" />
    3336        </tr>
    3437      </table>
    35         <span tal:condition="python:0" tal:omit-tag=""
    36               tal:content="structure python: info['course_doc'].render(proxy=info['course_doc'],
    37               layout_mode='view_student_course',
    38               layout_id='student_study_course')"
    39               />
    4038     
    4139      <form action="." method="post" class="group"
     
    5149                       (cpsmcat('confirm that you defer'), )"
    5250                       />
    53                 <input type="submit" name="request_clearance:method"
    54                        class="context" value="request Clearance"
     51                <input type="submit" name="application_edit:method"
     52                       class="context" value="upload Passport"
    5553                       />
    5654            </td>
  • WAeUP_SRP/trunk/skins/waeup_student/layout_application_edit.pt

    r710 r788  
    66  ds options/datastructure;
    77  dm ds/getDataModel;
    8   formaction options/formaction|string:student_edit;
     8  formaction options/formaction|string:application_edit;
    99  creation creation|nothing;
    1010  metadata metadata|nothing;
     
    1212  ti python:type_name and getattr(here.portal_types,type_name,None) or getattr(here.portal_types,here.portal_type,None);
    1313  cpsmcat nocall:here/translation_service;
    14   apply request/apply_button|nothing;
     14  proceed options/proceed|nothing;
    1515  widgets python:context.getRenderedWidgets(layout);
    1616  ">
     
    121121         id="cpsdocument_edit_button"
    122122         tal:condition="not:creation" />
    123   <input type="submit" class="standalone" name="apply_admission"
     123  <input type="submit" class="standalone" name="proceed"
    124124         value="apply for admission"
    125125         id="cpsdocument_edit_and_view_button"
    126          tal:condition="apply"
    127          tal:attributes="value apply"/>
     126         tal:condition="proceed"
     127         tal:attributes="value proceed"/>
    128128  <input type="submit"
    129129         class="standalone"
  • WAeUP_SRP/trunk/skins/waeup_student/student_index.py

    r785 r788  
    3333        return redirect("%s/application_view" % student.absolute_url())
    3434    elif state in ('application_pin_entered',):
    35         return redirect("%s/application_edit" % student.absolute_url())
     35        return redirect("%s/application_edit" % info['app'].absolute_url())
    3636    elif state in ('admitted',):
    3737        return redirect("%s/defer_view" % student.absolute_url())
Note: See TracChangeset for help on using the changeset viewer.