Changeset 477 for WAeUP_SRP


Ignore:
Timestamp:
3 Sep 2006, 11:42:20 (18 years ago)
Author:
Henrik Bettermann
Message:

more layout work

Location:
WAeUP_SRP/trunk
Files:
1 added
3 deleted
6 edited

Legend:

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

    r472 r477  
    11<?xml version="1.0"?>
    2 <object name="student_application_fe" meta_type="CPS Layout">
     2<object name="student_application" meta_type="CPS Layout">
    33 <property name="layout_create_method"></property>
    44 <property name="layout_edit_method"></property>
     
    1919     name="help"></property>
    2020  <property name="readonly_layout_modes">
    21    <element value="edit"/>
     21     <element value="edit"/>
     22  </property>     
     23  <property name="hidden_layout_modes">
     24   <element value="create"/>
    2225  </property>
    23   <property name="hidden_layout_modes"/>
    2426  <property name="size_max">12</property>
    2527 </widget>
     
    3335  <property name="label">JAMB Registration Number</property>
    3436  <property name="label_edit">JAMB Registration Number</property>
    35     <property name="readonly_layout_modes">
    36    <element value="edit"/>
     37  <property name="readonly_layout_modes">
     38     <element value="edit"/>
    3739  </property>
    3840  <property name="hidden_layout_modes"/>
     
    4143  <property name="size_max">10</property>
    4244 </widget>
     45
     46 <widget name="jamb_firstname" meta_type="String Widget">
     47  <property name="title">JAMB First Name</property>
     48  <property name="fields">
     49   <element value="jamb_firstname"/>
     50  </property>
     51  <property name="is_required">False</property>
     52  <property name="label">Name</property>
     53  <property name="label_edit"></property>
     54  <property name="readonly_layout_modes">
     55     <element value="edit"/>
     56  </property>
     57  <property name="hidden_layout_modes"/>
     58  <property name="hidden_readonly_layout_modes"/>
     59 </widget>
     60
     61 <widget name="jamb_lastname" meta_type="String Widget">
     62  <property name="title">JAMB Lastname</property>
     63  <property name="fields">
     64   <element value="jamb_lastname"/>
     65  </property>
     66  <property name="label"></property>
     67  <property name="label_edit"></property>
     68  <property name="readonly_layout_modes">
     69     <element value="edit"/>
     70  </property>
     71  <property name="hidden_layout_modes"/>
     72  <property name="hidden_readonly_layout_modes"/>
     73 </widget>
     74
     75 <widget name="jamb_middlename" meta_type="String Widget">
     76  <property name="title">JAMB Middle Name</property>
     77  <property name="fields">
     78   <element value="jamb_middlename"/>
     79  </property>
     80  <property name="label"></property>
     81  <property name="label_edit"></property>
     82  <property name="readonly_layout_modes">
     83     <element value="edit"/>
     84  </property>
     85  <property name="hidden_layout_modes"/>
     86  <property name="hidden_readonly_layout_modes"/>
     87 </widget>
     88
     89 <widget name="entry_mode" meta_type="String Widget">
     90  <property name="title">Mode of Entry</property>
     91  <property name="fields">
     92   <element value="entry_mode"/>
     93  </property>
     94  <property name="label">Mode of Entry</property>
     95  <property name="label_edit">Mode of Entry</property>
     96  <property name="readonly_layout_modes">
     97     <element value="edit"/>
     98  </property>
     99  <property name="hidden_layout_modes"/>
     100  <property name="hidden_readonly_layout_modes"/>
     101 </widget>
     102
     103 <widget name="jamb_sex" meta_type="String Widget">
     104  <property name="title">JAMB Sex</property>
     105  <property name="fields">
     106   <element value="jamb_sex"/>
     107  </property>
     108  <property name="label">JAMB Sex</property>
     109  <property name="label_edit">JAMB Sex</property>
     110  <property name="readonly_layout_modes">
     111     <element value="edit"/>
     112  </property>
     113  <property name="hidden_layout_modes"/>
     114  <property name="hidden_readonly_layout_modes"/>
     115 </widget>
     116
     117
     118 <widget name="jamb_first_cos" meta_type="String Widget">
     119  <property name="title">JAMB First Choice Course of Study</property>
     120  <property name="fields">
     121   <element value="jamb_first_cos"/>
     122  </property>
     123  <property name="label">JAMB First Choice Course of Study</property>
     124  <property name="label_edit">JAMB First Choice Course of Study</property>
     125  <property name="readonly_layout_modes">
     126     <element value="edit"/>
     127  </property>
     128  <property name="hidden_layout_modes"/>
     129  <property name="hidden_readonly_layout_modes"/>
     130 </widget>
     131
     132 <widget name="jamb_second_cos" meta_type="String Widget">
     133  <property name="title">JAMB Second Choice Course of Study</property>
     134  <property name="fields">
     135   <element value="jamb_second_cos"/>
     136  </property>
     137  <property name="label">JAMB Second Choice Course of Study</property>
     138  <property name="label_edit">JAMB Second Choice Course of Study</property>
     139  <property name="readonly_layout_modes">
     140     <element value="edit"/>
     141  </property>
     142  <property name="hidden_layout_modes"/>
     143  <property name="hidden_readonly_layout_modes"/>
     144 </widget>
     145
    43146
    44147 <widget name="passport" meta_type="Image Widget">
     
    49152  <property name="label">Passport Picture</property>
    50153  <property name="label_edit">Passport Picture</property>
    51     <property name="readonly_layout_modes">
    52    <element value=""/>
    53   </property>
     154  <property name="readonly_layout_modes"/>
    54155  <property name="hidden_layout_modes"/>
    55156  <property name="hidden_readonly_layout_modes"/>
     
    69170  </row>
    70171  <row>
     172   <cell name="jamb_firstname"/>
     173  </row>
     174  <row>
     175   <cell name="jamb_middlename"/>
     176  </row>
     177  <row>
     178   <cell name="jamb_lastname"/>
     179  </row>
     180  <row>
     181   <cell name="jamb_sex"/>
     182  </row>
     183  <row>
     184   <cell name="jamb_first_cos"/>
     185  </row>
     186  <row>
     187   <cell name="jamb_second_cos"/>
     188  </row>
     189  <row>
    71190   <cell name="passport"/>
    72191  </row>
    73192 </table>
    74193
     194
    75195</object>
    76196
  • WAeUP_SRP/trunk/profiles/default/layouts/student_check_pin.xml

    r464 r477  
    1313  </property>
    1414  <property name="is_required">True</property>
    15   <property name="label_edit">Enter Jamb Registration Nr</property>
     15  <property name="label_edit">Enter Jamb Registration Number</property>
    1616  <property name="readonly_layout_modes"/>
    1717  <property name="hidden_layout_modes"/>
     
    3030 <table>
    3131  <row>
    32    <cell name="pin"/>
     32   <cell name="jamb_id"/>
    3333  </row>
    3434  <row>
    35    <cell name="jamb_id"/>
     35   <cell name="pin"/>
    3636  </row>
    3737 </table>
  • WAeUP_SRP/trunk/skins/waeup_default/layout_waeup_create.pt

    r290 r477  
    11<tal:block define="global creation python:1" />
    2 <metal:block use-macro="here/layout_lib_default_edit/macros/default_edit" />
     2<metal:block use-macro="here/layout_waeup_lib/macros/default_edit" />
  • WAeUP_SRP/trunk/skins/waeup_default/layout_waeup_edit.pt

    r290 r477  
    1 <metal:block use-macro="here/layout_lib_default_edit/macros/default_edit" />
     1<metal:block use-macro="here/layout_waeup_lib/macros/default_edit" />
  • WAeUP_SRP/trunk/skins/waeup_default/layout_waeup_lib.pt

    r474 r477  
    2727
    2828<!-- table view -->
     29
    2930<metal:block define-macro="table_view"
    3031             tal:define="layout options/layout">
    31 <table border="0">
     32<table border="0" width=100%>
    3233    <tal:block repeat="row layout/rows">
    3334      <tr>
     
    4041                 >
    4142              <tal:block condition="widget/label">
    42               <td valign="top">
     43              <td valign="top" width=40%>
    4344                <span i18n:translate="" tal:condition="widget/is_i18n">
    4445                    <span tal:content="widget/label" />:</span>
  • WAeUP_SRP/trunk/skins/waeup_student/application_form.pt

    r476 r477  
    1919      <tal:block tal:define="
    2020                          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();"
     21                          appl_proxy python:appl.getContent();"
    2622                          >
    2723
    28       <h2>Acknowledgement Slip for <span tal:content="pers_proxy/firstname" /> <span tal:content="pers_proxy/lastname" /></h2>     
    29  
     24      <h2>Application Form for <span tal:content="appl_proxy/jamb_firstname" /> <span tal:content="appl_proxy/jamb_lastname" /></h2>     
    3025   
    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 
     26      <tal:block tal:content="structure python:appl_proxy.renderEdit(request=request, layout_id='student_application_fe', proxy=appl_proxy, layout_mode='edit')" />
     27     
     28      <tal:block tal:content="structure python:appl_proxy.renderEdit(layout_id='student_application_fe', layout_mode='view')" />
     29           
     30      <tal:block tal:content="structure python:appl_proxy.render(layout_id='student_application_fe')" />
    3531
    3632      </tal:block> 
Note: See TracChangeset for help on using the changeset viewer.