Changeset 2101 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
16 Aug 2007, 10:08:56 (17 years ago)
Author:
Henrik Bettermann
Message:

no comment

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
1 added
4 edited

Legend:

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

    r2100 r2101  
    1919                 tal:condition="ds/reg_no|nothing"/>
    2020          <div tal:replace="structure rendered_main" />
    21           <div class="" tal:condition="python: mode=='edit'">
    22           <input type="checkbox" class="standalone"
    23                  name="confirm"
    24                  value=""
    25             />
    26             I confirm that the Passport Photograph uploaded on this form is a true picture of me.
    27           </div>
     21         
     22          <metal:block tal:condition="python: mode=='edit'">
     23            <br/>
     24            <input type="checkbox" class="standalone"
     25                   name="confirm"
     26                   value="" />
     27              I confirm that the Passport Photograph uploaded on this form is a true picture of me.
     28            <br/><br/>
     29          </metal:block>
     30
    2831         
    2932          <input type="submit" class="standalone"
    3033                 name="edit"
    31                  value="Save"
     34                 value="Save & Return Later"
    3235                 tal:condition="python: mode == 'edit'" />
    3336          <input type="submit" class="standalone" name="apply"
    34                  value="Save & Apply for PUME"
     37                 value="Save & Apply"
    3538                 tal:condition="python: mode == 'edit'"
    3639                 />
     
    4245                 />
    4346          </form>
     47          <metal:block tal:condition="python: mode in ('create','edit')">
    4448          <p>Instructions :</p>
    45           <ul tal:condition="python: mode in ('create','edit')">
     49          <ul>
    4650            <li>Enter your JAMB Registration Number and the Application PIN above.</li>
    4751            <li>Upload your passport picture.</li>
    4852            <li>Apply for PUME.</li>
    4953          </ul>
    50           <ul tal:condition="python: mode == 'view'">
    51             <li>Print the Pume Acknowledgement Slip.</li>
    52           </ul>
    53       </metal:block>
    54       <metal:block fill-slot="sub">
     54          </metal:block>
    5555      </metal:block>
    5656    </metal:block>
  • WAeUP_SRP/trunk/skins/waeup_student/layout_apply_pume_create.pt

    r2098 r2101  
    44<!-- $Id$ -->
    55
    6 <metal:block define-macro="default_edit"
     6<metal:block define-macro="default_table"
    77  tal:define="layout options/layout;
    88  ds options/datastructure;
     
    1111  metadata metadata|nothing;
    1212  cpsmcat nocall:here/translation_service;
    13   apply request/apply_button|nothing;
    14   ">
    15   <table class="layoutDefault" summary="Form layout"
    16          tal:condition="layout/rows">
    17     <span tal:repeat="row python: layout['rows']" valign="top" >
    18       <span tal:repeat="cell row">
    19         <tr tal:define="widget cell/widget;
    20               wid widget/getWidgetId;
    21               err python:ds.getError(wid);
    22               err_mapping python:ds.getErrorMapping(wid);
    23               is_required python: widget.is_required and creation and ('create' not in widget.readonly_layout_modes);
    24               tooltip_id python:wid + '_help';
    25               widget_css_class cell/widget_css_class|nothing;
    26               css_class python:test(err, 'row error','row')"
    27               tal:condition="python: wid != 'passport'"
    28               >
    29           <div tal:attributes="class widget_css_class;
    30           id python:widget.getHtmlWidgetId()+'_widget';"
    31           >
     13  apply request/apply_button|nothing;">
     14 
     15  <table  cellpadding="2" cellspacing="2" summary="Form layout" border=0
     16       tal:condition="layout/rows">
     17  <tr tal:repeat="row layout/rows" valign="top">
     18
     19  <span tal:repeat="cell row">
     20        <tal:block define="widget cell/widget;
     21                           wid widget/getWidgetId;
     22                           err python:ds.getError(wid);
     23                           err_mapping python:ds.getErrorMapping(wid);
     24                           is_required widget/is_required|nothing;
     25                           tooltip_id python:wid + '_help';
     26                           widget_css_class cell/widget_css_class|nothing;
     27                           css_class python:test(err, 'row error','row')">
     28          <span tal:attributes="class widget_css_class;
     29                               id python:widget.getHtmlWidgetId()+'_widget';
     30                              ">
     31                             
     32                   
     33            <td tal:condition="python:widget.label_edit and widget.label_edit!='label field'">               
     34              <div tal:attributes="class python:test(is_required, 'label required','label')">
     35                <label tal:content="widget/label_edit"
     36                  tal:attributes="for cell/widget_input_area_id|nothing;">label</label>
     37              </div>
     38            </td>
     39           
    3240            <td>
    33             <div class="label" tal:condition="widget/label_edit"
    34                  tal:attributes="class python:test(is_required, 'label required','label')">
    35               <label tal:content="widget/label_edit"
    36                      tal:attributes="for cell/widget_input_area_id|nothing;">label</label>:
    37             </div>
    38             <button type="button" class="tooltipControl"
    39                     tal:condition="widget/help"
    40                     tal:attributes="onclick python:'toggleElementVisibility(\'%s\')' % tooltip_id;"> ? </button>
     41              <div tal:attributes="class python:test(widget.label_edit == 'label field', 'label','')">         
     42              <label tal:replace="structure cell/widget_rendered"/>
     43              </div>         
     44              <tal:block condition="err">
     45                  <tal:block define="msg python:cpsmcat(err, mapping=err_mapping)">
     46                    <br /><em style="color: red"
     47                      tal:content="msg">err</em>
     48                  </tal:block>
     49              </tal:block>
    4150            </td>
    42             <td>
    43             <span class="field">
    44               <div tal:replace="structure cell/widget_rendered"/>
    45             </span>
    46             <div class="tooltipArea" style="visibility: hidden;"
    47                  tal:condition="widget/help"
    48                  tal:attributes="id tooltip_id;
    49                  onclick python:'showElement(false, \'%s\')' % tooltip_id;"
    50                  >
    51               <tal:block tal:content="widget/help">This is the help for this field
    52               </tal:block>
    53             </div>
    54             <tal:block condition="err">
    55               <tal:block define="msg python:cpsmcat(err, mapping=err_mapping)">
    56                 <br /><em style="color: red"
    57                           tal:content="msg">err</em>
    58               </tal:block>
    59             </tal:block>
    60             </td>
    61           </div>
    62         </tr>
    63       </span>
    64     </span>
    65     <tr tal:condition="widgets/passport|nothing"
    66         tal:define="cell widgets/passport|nothing;">
    67       <tal:block tal:define="widget cell/widget;
    68       wid widget/getWidgetId;
    69       err python:ds.getError(wid);
    70       err_mapping python:ds.getErrorMapping(wid);
    71       is_required python: widget.is_required and creation and ('create' not in widget.readonly_layout_modes);
    72       tooltip_id python:wid + '_help';
    73       widget_css_class widget/widget_css_class|nothing;
    74       css_class python:test(err, 'row error','row')"
    75       >
    76         <div tal:attributes="class widget_css_class;
    77         id python:widget.getHtmlWidgetId()+'_widget';"
    78         >
    79           <td>
    80             <div class="label" tal:condition="widget/label_edit"
    81                  tal:attributes="class python:test(is_required, 'label required','label')">
    82               <label tal:content="widget/label_edit"
    83                      tal:attributes="for cell/widget_input_area_id|nothing;">label</label>:
    84             </div>
    85             <button type="button" class="tooltipControl"
    86                     tal:condition="widget/help"
    87                     tal:attributes="onclick python:'toggleElementVisibility(\'%s\')' % tooltip_id;"> ? </button>
    88           </td>
    89           <td>
    90             <span class="field">
    91               <div tal:replace="structure cell/widget_rendered"/>
    92             </span>
    93             <div class="tooltipArea" style="visibility: hidden;"
    94                  tal:condition="widget/help"
    95                  tal:attributes="id tooltip_id;
    96                  onclick python:'showElement(false, \'%s\')' % tooltip_id;"
    97                  >
    98               <tal:block tal:content="widget/help">This is the help for this field
    99               </tal:block>
    100             </div>
    101             <tal:block condition="err">
    102               <tal:block define="msg python:cpsmcat(err, mapping=err_mapping)">
    103                 <br /><em style="color: red"
    104                           tal:content="msg">err</em>
    105               </tal:block>
    106             </tal:block>
    107           </td>
    108         </div>
    109       </tal:block>
    110     </tr>
     51 
     52          </span>
     53        </tal:block>
     54  </span>     
     55  </tr>
    11156  </table>
    112   <br />
     57  <br/>
    11358</metal:block>
  • WAeUP_SRP/trunk/skins/waeup_student/layout_apply_pume_edit.pt

    r2100 r2101  
    1 <metal:block define-macro="default_edit"
    2   tal:define="layout options/layout;
    3   ds options/datastructure;
    4   dm ds/getDataModel;
    5   creation creation|nothing;
    6   cpsmcat nocall:here/translation_service;
    7   proceed options/proceed|nothing;
    8   ">
    9 <table width="100%" cellpadding="2" cellspacing="2" summary="Form layout" border=1
    10        tal:condition="layout/rows">
    11   <tr tal:repeat="row layout/rows" valign="top">
    12 
    13 <span tal:repeat="cell row">
    14       <tal:block define="widget cell/widget;
    15                          wid widget/getWidgetId;
    16                          err python:ds.getError(wid);
    17                          err_mapping python:ds.getErrorMapping(wid);
    18                          is_required widget/is_required|nothing;
    19                          tooltip_id python:wid + '_help';
    20                          widget_css_class cell/widget_css_class|nothing;
    21                          css_class python:test(err, 'row error','row')">
    22         <span tal:attributes="class widget_css_class;
    23                              id python:widget.getHtmlWidgetId()+'_widget';
    24                             ">
    25                            
    26           <td tal:condition="widget/label_edit">               
    27           <div tal:attributes="class python:test(is_required, 'label required','label')">
    28             <label tal:content="widget/label_edit"
    29               tal:attributes="for cell/widget_input_area_id|nothing;">label</label>
    30           </div>
    31           </td>
    32           <td>
    33           <label tal:replace="structure cell/widget_rendered"/>
    34           </td>
    35           <tal:block condition="err">
    36               <tal:block define="msg python:cpsmcat(err, mapping=err_mapping)">
    37                 <br /><em style="color: red"
    38                   tal:content="msg">err</em>
    39               </tal:block>
    40           </tal:block>
    41         </span>
    42       </tal:block>
    43 </span>     
    44    
    45   </tr>
    46 </table>
    47                                
    48 </metal:block>
     1<metal:block use-macro="here/layout_apply_pume_create/macros/default_table" />
  • WAeUP_SRP/trunk/skins/waeup_student/layout_apply_pume_view.pt

    r2098 r2101  
    1 <metal:block define-macro="default_edit"
    2   tal:define="layout options/layout;
    3   ds options/datastructure;
    4   cpsmcat nocall:here/translation_service;
    5   ">
    6   <table class="layoutDefault" summary="Form layout"
    7          tal:condition="layout/rows">
    8     <span tal:repeat="row python: layout['rows']" valign="top" >
    9       <span tal:repeat="cell row">
    10         <tr tal:define="widget cell/widget;
    11               wid widget/getWidgetId;
    12               err python:ds.getError(wid);
    13               err_mapping python:ds.getErrorMapping(wid);
    14               is_required python: widget.is_required;
    15               tooltip_id python:wid + '_help';
    16               widget_css_class cell/widget_css_class|nothing;
    17               css_class python:test(err, 'row error','row')"
    18               tal:condition="python: wid != 'passport'"
    19               >
    20           <div tal:attributes="class widget_css_class;
    21           id python:widget.getHtmlWidgetId()+'_widget';"
    22           >
    23             <td>
    24             <div class="label" tal:condition="widget/label_edit"
    25                  tal:attributes="class python:test(is_required, 'label required','label')">
    26               <label tal:content="widget/label_edit"
    27                      tal:attributes="for cell/widget_input_area_id|nothing;">label</label>:
    28             </div>
    29             <button type="button" class="tooltipControl"
    30                     tal:condition="widget/help"
    31                     tal:attributes="onclick python:'toggleElementVisibility(\'%s\')' % tooltip_id;"> ? </button>
    32             </td>
    33             <td>
    34             <span class="field">
    35               <div tal:replace="structure cell/widget_rendered"/>
    36             </span>
    37             <div class="tooltipArea" style="visibility: hidden;"
    38                  tal:condition="widget/help"
    39                  tal:attributes="id tooltip_id;
    40                  onclick python:'showElement(false, \'%s\')' % tooltip_id;"
    41                  >
    42               <tal:block tal:content="widget/help">This is the help for this field
    43               </tal:block>
    44             </div>
    45             <tal:block condition="err">
    46               <tal:block define="msg python:cpsmcat(err, mapping=err_mapping)">
    47                 <br /><em style="color: red"
    48                           tal:content="msg">err</em>
    49               </tal:block>
    50             </tal:block>
    51             </td>
    52           </div>
    53         </tr>
    54       </span>
    55     </span>
    56     <tr tal:condition="widgets/passport|nothing"
    57         tal:define="cell widgets/passport|nothing;">
    58       <tal:block tal:define="widget cell/widget;
    59       wid widget/getWidgetId;
    60       err python:ds.getError(wid);
    61       err_mapping python:ds.getErrorMapping(wid);
    62       is_required python: widget.is_required and creation and ('create' not in widget.readonly_layout_modes);
    63       tooltip_id python:wid + '_help';
    64       widget_css_class widget/widget_css_class|nothing;
    65       css_class python:test(err, 'row error','row')"
    66       >
    67         <div tal:attributes="class widget_css_class;
    68         id python:widget.getHtmlWidgetId()+'_widget';"
    69         >
    70           <td>
    71             <div class="label" tal:condition="widget/label_edit"
    72                  tal:attributes="class python:test(is_required, 'label required','label')">
    73               <label tal:content="widget/label_edit"
    74                      tal:attributes="for cell/widget_input_area_id|nothing;">label</label>:
    75             </div>
    76             <button type="button" class="tooltipControl"
    77                     tal:condition="widget/help"
    78                     tal:attributes="onclick python:'toggleElementVisibility(\'%s\')' % tooltip_id;"> ? </button>
    79           </td>
    80           <td>
    81             <span class="field">
    82               <div tal:replace="structure cell/widget_rendered"/>
    83             </span>
    84             <div class="tooltipArea" style="visibility: hidden;"
    85                  tal:condition="widget/help"
    86                  tal:attributes="id tooltip_id;
    87                  onclick python:'showElement(false, \'%s\')' % tooltip_id;"
    88                  >
    89               <tal:block tal:content="widget/help">This is the help for this field
    90               </tal:block>
    91             </div>
    92             <tal:block condition="err">
    93               <tal:block define="msg python:cpsmcat(err, mapping=err_mapping)">
    94                 <br /><em style="color: red"
    95                           tal:content="msg">err</em>
    96               </tal:block>
    97             </tal:block>
    98           </td>
    99         </div>
    100       </tal:block>
    101     </tr>
    102   </table>
    103 </metal:block>
     1<metal:block use-macro="here/layout_apply_pume_create/macros/default_table" />
     2
     3here Application Slip Button
Note: See TracChangeset for help on using the changeset viewer.