Ignore:
Timestamp:
4 Sep 2006, 13:03:08 (18 years ago)
Author:
joachim
Message:

apply_admission basics

Location:
WAeUP_SRP/trunk/profiles/default
Files:
1 added
6 edited

Legend:

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

    r472 r478  
    2222  </property>
    2323  <property name="hidden_layout_modes">
    24    <element value="create"/>
     24    <element value="create"/>
     25    <element value="edit"/>
    2526  </property>
    2627  <property name="size_max">12</property>
     
    3536  <property name="label">JAMB Registration Number</property>
    3637  <property name="label_edit">JAMB Registration Number</property>
    37   <property name="readonly_layout_modes"/>
     38  <property name="readonly_layout_modes">
     39   <element value="edit"/>
     40  </property>
    3841  <property name="hidden_layout_modes"/>
    3942  <property name="hidden_readonly_layout_modes"/>
     
    5053  <property name="label">JAMB First Name</property>
    5154  <property name="label_edit">JAMB First Name</property>
    52   <property name="readonly_layout_modes"/>
    53   <property name="hidden_layout_modes"/>
     55  <property name="readonly_layout_modes">
     56   <element value="edit"/>
     57  </property>
    5458  <property name="hidden_readonly_layout_modes"/>
    5559 </widget>
     
    7478  <property name="label">JAMB Middl Name</property>
    7579  <property name="label_edit">JAMB Middle Name</property>
    76   <property name="readonly_layout_modes"/>
     80  <property name="readonly_layout_modes">
     81   <element value="edit"/>
     82  </property>
    7783  <property name="hidden_layout_modes"/>
    7884  <property name="hidden_readonly_layout_modes"/>
     
    8692  <property name="label">Mode of Entry</property>
    8793  <property name="label_edit">Mode of Entry</property>
    88   <property name="readonly_layout_modes"/>
    89   <property name="hidden_layout_modes"/>
     94  <property name="readonly_layout_modes">
     95   <element value="edit"/>
     96  </property>
     97  <property name="hidden_layout_modes">
     98    <element value="create"/>
     99    <element value="edit"/>
     100  </property>
    90101  <property name="hidden_readonly_layout_modes"/>
    91102 </widget>
     
    98109  <property name="label">JAMB Sex</property>
    99110  <property name="label_edit">JAMB Sex</property>
    100   <property name="readonly_layout_modes"/>
     111  <property name="readonly_layout_modes">
     112   <element value="edit"/>
     113  </property>
    101114  <property name="hidden_layout_modes"/>
    102115  <property name="hidden_readonly_layout_modes"/>
     
    110123  <property name="label">JAMB Age</property>
    111124  <property name="label_edit">JAMB Age</property>
    112   <property name="readonly_layout_modes"/>
     125  <property name="readonly_layout_modes">
     126   <element value="edit"/>
     127  </property>
    113128  <property name="hidden_layout_modes"/>
    114129  <property name="hidden_readonly_layout_modes"/>
     
    122137  <property name="label">JAMB State</property>
    123138  <property name="label_edit">JAMB State</property>
    124   <property name="readonly_layout_modes"/>
     139  <property name="readonly_layout_modes">
     140   <element value="edit"/>
     141  </property>
    125142  <property name="hidden_layout_modes"/>
    126143  <property name="hidden_readonly_layout_modes"/>
     
    134151  <property name="label">JAMB Local Government Area</property>
    135152  <property name="label_edit">JAMB Local Government Area</property>
    136   <property name="readonly_layout_modes"/>
     153  <property name="readonly_layout_modes">
     154   <element value="edit"/>
     155  </property>
    137156  <property name="hidden_layout_modes"/>
    138157  <property name="hidden_readonly_layout_modes"/>
     
    146165  <property name="label">JAMB Score</property>
    147166  <property name="label_edit">JAMB Score</property>
    148   <property name="readonly_layout_modes"/>
     167  <property name="readonly_layout_modes">
     168   <element value="edit"/>
     169  </property>
    149170  <property name="hidden_layout_modes"/>
    150171  <property name="hidden_readonly_layout_modes"/>
     
    158179  <property name="label">JAMB First Choice Course of Study</property>
    159180  <property name="label_edit">JAMB First Choice Course of Study</property>
    160   <property name="readonly_layout_modes"/>
     181  <property name="readonly_layout_modes">
     182   <element value="edit"/>
     183  </property>
    161184  <property name="hidden_layout_modes"/>
    162185  <property name="hidden_readonly_layout_modes"/>
     
    170193  <property name="label">JAMB Second Choice Course of Study</property>
    171194  <property name="label_edit">JAMB Second Choice Course of Study</property>
    172   <property name="readonly_layout_modes"/>
     195  <property name="readonly_layout_modes">
     196   <element value="edit"/>
     197  </property>
    173198  <property name="hidden_layout_modes"/>
    174199  <property name="hidden_readonly_layout_modes"/>
     
    182207  <property name="label">JAMB First Choice University</property>
    183208  <property name="label_edit">JAMB First Choice University</property>
    184   <property name="readonly_layout_modes"/>
     209  <property name="readonly_layout_modes">
     210   <element value="edit"/>
     211  </property>
    185212  <property name="hidden_layout_modes"/>
    186213  <property name="hidden_readonly_layout_modes"/>
     
    194221  <property name="label">JAMB Second Choice University</property>
    195222  <property name="label_edit">JAMB Second Choice University</property>
    196   <property name="readonly_layout_modes"/>
     223  <property name="readonly_layout_modes">
     224   <element value="edit"/>
     225  </property>
    197226  <property name="hidden_layout_modes"/>
    198227  <property name="hidden_readonly_layout_modes"/>
     
    206235  <property name="label">PUME General Paper</property>
    207236  <property name="label_edit">PUME General Paper</property>
    208   <property name="readonly_layout_modes"/>
     237  <property name="readonly_layout_modes">
     238   <element value="edit"/>
     239  </property>
    209240  <property name="hidden_layout_modes"/>
    210241  <property name="hidden_readonly_layout_modes"/>
     
    218249  <property name="label">PUME English Score</property>
    219250  <property name="label_edit">PUME English Score</property>
    220   <property name="readonly_layout_modes"/>
     251  <property name="readonly_layout_modes">
     252   <element value="edit"/>
     253  </property>
    221254  <property name="hidden_layout_modes"/>
    222255  <property name="hidden_readonly_layout_modes"/>
     
    230263  <property name="label">PUME Mathematics Score</property>
    231264  <property name="label_edit">PUME Mathematics Score</property>
    232   <property name="readonly_layout_modes"/>
     265  <property name="readonly_layout_modes">
     266   <element value="edit"/>
     267  </property>
    233268  <property name="hidden_layout_modes"/>
    234269  <property name="hidden_readonly_layout_modes"/>
     
    242277  <property name="label">PUME Total Score</property>
    243278  <property name="label_edit">PUME Total Score</property>
    244   <property name="readonly_layout_modes"/>
     279  <property name="readonly_layout_modes">
     280   <element value="edit"/>
     281  </property>
    245282  <property name="hidden_layout_modes"/>
    246283  <property name="hidden_readonly_layout_modes"/>
     
    254291  <property name="label">Passport Picture</property>
    255292  <property name="label_edit">Passport Picture</property>
    256   <property name="readonly_layout_modes"/>
     293  <property name="readonly_layout_modes">
     294   <element value="edit"/>
     295  </property>
    257296  <property name="hidden_layout_modes"/>
    258297  <property name="hidden_readonly_layout_modes"/>
  • WAeUP_SRP/trunk/profiles/default/layouts/student_application_fe.xml

    r477 r478  
    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_student_</property>
    77 <property name="flexible_widgets"/>
    88 <property name="validate_values_expr"></property>
  • WAeUP_SRP/trunk/profiles/default/layouts/student_check_pin.xml

    r477 r478  
    11<?xml version="1.0"?>
    22<object name="student_check_pin" meta_type="CPS Layout">
    3  <property name="layout_create_method">layout_check_pin_create</property>
     3 <property name="layout_create_method"></property>
    44 <property name="layout_edit_method"></property>
    55 <property name="layout_view_method"></property>
    6  <property name="style_prefix">layout_default_</property>
     6 <property name="style_prefix">layout_waeup_</property>
    77 <property name="flexible_widgets"/>
    88 <property name="validate_values_expr"></property>
    9  <widget name="jamb_id" meta_type="JambRegNo Widget">
    10   <property name="title">Jamb Registration No</property>
     9 <widget name="batch_no" meta_type="String Widget">
     10  <property name="title">Batch Nr</property>
    1111  <property name="fields">
    12    <element value="jamb_reg_no"/>
     12   <element value="batch_no"/>
     13  </property>
     14  <property name="readonly_layout_modes">
     15   <element value="create"/>
     16  </property>
     17  <property name="hidden_layout_modes"/>
     18  <property name="hidden_readonly_layout_modes"/>
     19  <property name="display_width">2</property>
     20  <property name="size_max">2</property>
     21 </widget>
     22 <widget name="jamb_reg_no" meta_type="JambRegNo Widget">
     23  <property name="title">Student Jamb RegNo</property>
     24  <property name="fields">
     25   <element value="reg_no"/>
    1326  </property>
    1427  <property name="is_required">True</property>
     
    2134  <property name="title">Scratchcard Pin</property>
    2235  <property name="fields">
    23    <element value="app_ac_pin"/>
     36   <element value="pin"/>
    2437  </property>
     38  <property name="is_required">True</property>
    2539  <property name="label_edit">Enter Scratch Card Pin</property>
    2640  <property name="readonly_layout_modes"/>
     
    2842  <property name="hidden_readonly_layout_modes"/>
    2943 </widget>
     44 <widget name="prefix" meta_type="String Widget">
     45  <property name="title">Prefix</property>
     46  <property name="fields">
     47   <element value="prefix"/>
     48  </property>
     49  <property name="label">Prefix</property>
     50  <property name="readonly_layout_modes">
     51   <element value="create"/>
     52  </property>
     53  <property name="hidden_layout_modes"/>
     54  <property name="hidden_readonly_layout_modes"/>
     55  <property name="display_width">3</property>
     56  <property name="size_max">3</property>
     57 </widget>
    3058 <table>
    3159  <row>
    32    <cell name="jamb_id"/>
     60   <cell name="jamb_reg_no" ncols="3"/>
    3361  </row>
    3462  <row>
     63   <cell name="prefix"/>
     64   <cell name="batch_no"/>
    3565   <cell name="pin"/>
    3666  </row>
  • WAeUP_SRP/trunk/profiles/default/schemas.xml

    r472 r478  
    1414 <object name="student" meta_type="CPS Schema"/>
    1515 <object name="student_study_course" meta_type="CPS Schema"/>
    16  <object name="scratch_card_batch.xml" meta_type="CPS Schema"/>
     16 <object name="scratch_card_batch" meta_type="CPS Schema"/>
    1717 <object name="student_accommodation" meta_type="CPS Schema"/>
    1818 <object name="student_application" meta_type="CPS Schema"/>
     19 <object name="student_check_pin" meta_type="CPS Schema"/>
    1920 <object name="student_clearance" meta_type="CPS Schema"/>
    2021 <object name="student_personal" meta_type="CPS Schema"/>
  • WAeUP_SRP/trunk/profiles/default/types/StudentsFolder.xml

    r472 r478  
    3636  <permission value="View"/>
    3737 </action>
    38  <action title="Add JAMB Data" action_id="add_jamb" category="object"
    39     condition_expr="" url_expr="string:${object/absolute_url}/create_jamb"
    40     visible="False"/>
     38 <action title="Apply for PUME " action_id="apply_admission" category="object"
     39    condition_expr="" url_expr="string:${object/absolute_url}/apply_admission"
     40    visible="True">
     41  <permission value="View"/>
     42 </action>
    4143 <action title="Check Application Status" action_id="check_application"
    4244    category="object"
    43     condition_expr="object/portal_membership/isAnonymousUser"
     45    condition_expr=""
    4446    url_expr="string:${object/absolute_url}/check_application" visible="False">
    4547  <permission value="View"/>
  • WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/definition.xml

    r473 r478  
    6363 <transition transition_id="admit" title=""
    6464             new_state="admitted" trigger="USER"
    65              before_script="" after_script="open_clearance">
     65             before_script="" after_script="">
    6666
    6767  <guard>
     
    7474             new_state="admission_applied" trigger="USER"
    7575             before_script=""
    76              after_script="close_application">
     76             after_script="">
    7777
    7878  <guard>
     
    8585             new_state="cleared_and_validated"
    8686             trigger="USER" before_script=""
    87              after_script="open_personal">
     87             after_script="">
    8888
    8989  <guard>
     
    123123             new_state="application_pin_entered"
    124124             trigger="USER"
    125              before_script="validate_application_pin"
    126              after_script="open_application">
     125             before_script=""
     126             after_script="">
    127127
    128128  <guard>
     
    135135             new_state="clearance_pin_entered"
    136136             trigger="USER"
    137              before_script="validate_clearance_pin"
    138              after_script="open_clearance">
     137             before_script=""
     138             after_script="">
    139139
    140140  <guard>
     
    195195 <transition transition_id="reject_clearance" title=""
    196196             new_state="clearance_pin_entered"
    197              trigger="USER" before_script="open_clearance"
     197             trigger="USER" before_script=""
    198198             after_script="">
    199199
     
    206206 <transition transition_id="request_clearence" title=""
    207207             new_state="clearence_requested" trigger="USER"
    208              before_script="" after_script="close_clearance">
    209 
    210   <guard>
    211    <guard-role>Manager</guard-role>
    212    <guard-role>SectionManager</guard-role>
    213    <guard-role>Owner</guard-role>
    214   </guard>
    215  </transition>
    216  <script script_id="close_application"
    217          type="Script (Python)"
    218          filename="workflows/waeup_student_wf/scripts/close_application.py"/>
    219  <script script_id="close_clearance" type="Script (Python)"
    220          filename="workflows/waeup_student_wf/scripts/close_clearance.py"/>
    221  <script script_id="close_personal" type="Script (Python)"
    222          filename="workflows/waeup_student_wf/scripts/close_personal.py"/>
    223  <script script_id="open_application" type="Script (Python)"
    224          filename="workflows/waeup_student_wf/scripts/open_application.py"/>
    225  <script script_id="open_clearance" type="Script (Python)"
    226          filename="workflows/waeup_student_wf/scripts/open_clearance.py"/>
    227  <script script_id="open_personal" type="Script (Python)"
    228          filename="workflows/waeup_student_wf/scripts/open_personal.py"/>
    229  <script script_id="validate_application_pin"
    230          type="Script (Python)"
    231          filename="workflows/waeup_student_wf/scripts/validate_application_pin.py"/>
    232  <script script_id="validate_clearance_pin"
    233          type="Script (Python)"
    234          filename="workflows/waeup_student_wf/scripts/validate_clearance_pin.py"/>
     208             before_script="" after_script="">
     209
     210  <guard>
     211   <guard-role>Manager</guard-role>
     212   <guard-role>SectionManager</guard-role>
     213   <guard-role>Owner</guard-role>
     214  </guard>
     215 </transition>
    235216</cps-workflow>
Note: See TracChangeset for help on using the changeset viewer.