Changeset 2101
- Timestamp:
- 16 Aug 2007, 10:08:56 (17 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/profiles/default/layouts/application.xml
r2100 r2101 202 202 </property> 203 203 <property name="label"></property> 204 <property name="label_edit"> </property>204 <property name="label_edit">label field</property> 205 205 <property name="description"></property> 206 206 <property name="help"></property> … … 243 243 </property> 244 244 <property name="label"></property> 245 <property name="label_edit"> </property>245 <property name="label_edit">label field</property> 246 246 <property name="description"></property> 247 247 <property name="help"></property> … … 284 284 </property> 285 285 <property name="label"></property> 286 <property name="label_edit"> </property>286 <property name="label_edit">label field</property> 287 287 <property name="description"></property> 288 288 <property name="help"></property> … … 545 545 <property name="css_class_expr">string:row</property> 546 546 </widget> 547 <widget name="verdict" meta_type="WAeUP Verdict Widget"> 548 <property name="title">Verdict</property> 549 <property name="fields"> 550 <element value="status"/> 551 </property> 552 <property name="label">Verdict</property> 553 <property name="label_edit">Verdict</property> 554 <property name="description"></property> 555 <property name="help"></property> 556 <property name="is_i18n">False</property> 557 <property name="widget_mode_expr"></property> 558 <property name="readonly_layout_modes"/> 559 <property name="hidden_layout_modes"/> 560 <property name="hidden_readonly_layout_modes"/> 561 <property name="css_class_expr">string:row</property> 562 </widget> 547 <widget name="course1" meta_type="String Widget"> 548 <property name="title">1st Choice Course of Study</property> 549 <property name="fields"> 550 <element value="course1"/> 551 </property> 552 <property name="label">1st Choice Course of Study</property> 553 <property name="label_edit">1st Choice Course of Study</property> 554 <property name="description"></property> 555 <property name="help"></property> 556 <property name="is_i18n">False</property> 557 <property name="widget_mode_expr"></property> 558 <property name="readonly_layout_modes"> 559 <element value="edit"/> 560 </property> 561 <property name="hidden_layout_modes"> 562 <element value="create"/> 563 </property> 564 <property name="hidden_readonly_layout_modes"/> 565 <property name="css_class_expr">string:row</property> 566 </widget> 567 <widget name="course2" meta_type="String Widget"> 568 <property name="title">2nd Choice Course of Study</property> 569 <property name="fields"> 570 <element value="course2"/> 571 </property> 572 <property name="label">2nd Choice Course of Study</property> 573 <property name="label_edit">2nd Choice Course of Study</property> 574 <property name="description"></property> 575 <property name="help"></property> 576 <property name="is_i18n">False</property> 577 <property name="widget_mode_expr"></property> 578 <property name="readonly_layout_modes"> 579 <element value="edit"/> 580 </property> 581 <property name="hidden_layout_modes"> 582 <element value="create"/> 583 </property> 584 <property name="hidden_readonly_layout_modes"/> 585 <property name="css_class_expr">string:row</property> 586 </widget> 587 <widget name="course3" meta_type="String Widget"> 588 <property name="title">3rd Choice Course of Study</property> 589 <property name="fields"> 590 <element value="course3"/> 591 </property> 592 <property name="label">3rd Choice Course of Study</property> 593 <property name="label_edit">3rd Choice Course of Study</property> 594 <property name="description"></property> 595 <property name="help"></property> 596 <property name="is_i18n">False</property> 597 <property name="widget_mode_expr"></property> 598 <property name="readonly_layout_modes"> 599 </property> 600 <property name="hidden_layout_modes"> 601 <element value="create"/> 602 </property> 603 <property name="hidden_readonly_layout_modes"/> 604 <property name="css_class_expr">string:row</property> 605 </widget> 606 563 607 <table> 564 608 <row> … … 595 639 <cell name="aggregate" ncols="2"/> 596 640 </row> 641 <row> 642 <cell name="course1" ncols="2"/> 643 </row> 644 <row> 645 <cell name="course2" ncols="2"/> 646 </row> 647 <row> 648 <cell name="course3" ncols="2"/> 649 </row> 597 650 </table> 598 651 </object> -
WAeUP_SRP/trunk/profiles/default/schemas/application.xml
r2099 r2101 31 31 <field name="passport" meta_type="CPS String Field"/> 32 32 <field name="status" meta_type="CPS String Field"/> 33 <field name="verdict" meta_type="CPS String Field"/>34 33 </object> -
WAeUP_SRP/trunk/skins/waeup_student/apply_pume_form.pt
r2100 r2101 19 19 tal:condition="ds/reg_no|nothing"/> 20 20 <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 28 31 29 32 <input type="submit" class="standalone" 30 33 name="edit" 31 value="Save "34 value="Save & Return Later" 32 35 tal:condition="python: mode == 'edit'" /> 33 36 <input type="submit" class="standalone" name="apply" 34 value="Save & Apply for PUME"37 value="Save & Apply" 35 38 tal:condition="python: mode == 'edit'" 36 39 /> … … 42 45 /> 43 46 </form> 47 <metal:block tal:condition="python: mode in ('create','edit')"> 44 48 <p>Instructions :</p> 45 <ul tal:condition="python: mode in ('create','edit')">49 <ul> 46 50 <li>Enter your JAMB Registration Number and the Application PIN above.</li> 47 51 <li>Upload your passport picture.</li> 48 52 <li>Apply for PUME.</li> 49 53 </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> 55 55 </metal:block> 56 56 </metal:block> -
WAeUP_SRP/trunk/skins/waeup_student/layout_apply_pume_create.pt
r2098 r2101 4 4 <!-- $Id$ --> 5 5 6 <metal:block define-macro="default_ edit"6 <metal:block define-macro="default_table" 7 7 tal:define="layout options/layout; 8 8 ds options/datastructure; … … 11 11 metadata metadata|nothing; 12 12 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 32 40 <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> 41 50 </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> 111 56 </table> 112 <br 57 <br/> 113 58 </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 3 here Application Slip Button
Note: See TracChangeset for help on using the changeset viewer.