[4541] | 1 | <tal:block define="global creation python:1;
|
---|
| 2 | global formaction string:apply_admission;
|
---|
| 3 | global fields python:('reg_no ',
|
---|
| 4 | 'pin','firstname',
|
---|
| 5 | 'middlenames','lastname',
|
---|
| 6 | 'passport','screening_venue',
|
---|
| 7 | 'application_date','course_admitted',
|
---|
| 8 | 'screening_score','notice',
|
---|
| 9 | 'screening_date','status',
|
---|
| 10 | 'screening_date',
|
---|
[4552] | 11 | 'course_admitted',
|
---|
[4555] | 12 | 'total_score',
|
---|
[4541] | 13 | )" />
|
---|
| 14 |
|
---|
| 15 | <metal:block define-macro="default_table"
|
---|
| 16 | tal:define="layout options/layout;
|
---|
| 17 | ds options/datastructure;
|
---|
| 18 | dm ds/getDataModel;
|
---|
[5201] | 19 | longform python: not 'admitted' in ds['status'];
|
---|
[4541] | 20 | creation creation|nothing;
|
---|
| 21 | metadata metadata|nothing;
|
---|
| 22 | cpsmcat nocall:here/translation_service;
|
---|
| 23 | apply request/apply_button|nothing;">
|
---|
| 24 |
|
---|
| 25 | <table cellpadding="2" cellspacing="2" summary="Form layout" border=0
|
---|
| 26 | tal:condition="layout/rows">
|
---|
| 27 |
|
---|
| 28 | <tal:block repeat="row layout/rows">
|
---|
[5201] | 29 | <tal:block define="widget python:row[0]['widget']" condition="python:longform or widget.getWidgetId() in fields">
|
---|
[4541] | 30 |
|
---|
| 31 | <tr tal:condition="widget/description|nothing" class="even ajaxtd">
|
---|
| 32 | <th colspan="5" align="left"><span tal:replace="widget/description" /></th>
|
---|
| 33 | </tr>
|
---|
| 34 |
|
---|
| 35 | <tr valign="top">
|
---|
| 36 | <span tal:repeat="cell row">
|
---|
| 37 | <tal:block define="widget cell/widget;
|
---|
| 38 | wid widget/getWidgetId;
|
---|
| 39 | err python:ds.getError(wid);
|
---|
| 40 | err_mapping python:ds.getErrorMapping(wid);
|
---|
| 41 | widget_css_class cell/widget_css_class|nothing;
|
---|
| 42 | css_class python:test(err, 'row error','row')">
|
---|
| 43 | <span tal:attributes="class widget_css_class;
|
---|
| 44 | id python:widget.getHtmlWidgetId()+'_widget';
|
---|
| 45 | ">
|
---|
| 46 | <td valign="middle" tal:condition="python:widget.label_edit and widget.label_edit!='label field'">
|
---|
| 47 | <div class="label">
|
---|
| 48 | <label tal:content="widget/label_edit"
|
---|
| 49 | tal:attributes="for cell/widget_input_area_id|nothing;">label</label>
|
---|
| 50 | </div>
|
---|
| 51 | </td>
|
---|
| 52 |
|
---|
| 53 | <td tal:condition="cell/widget_rendered">
|
---|
| 54 | <div tal:attributes="class python:test(widget.label_edit == 'label field', 'label','')">
|
---|
| 55 | <label tal:replace="structure cell/widget_rendered"/>
|
---|
| 56 | </div>
|
---|
| 57 | <tal:block condition="err">
|
---|
| 58 | <tal:block define="msg python:cpsmcat(err, mapping=err_mapping)">
|
---|
| 59 | <em style="color: red"
|
---|
| 60 | tal:content="msg">err</em>
|
---|
| 61 | </tal:block>
|
---|
| 62 | </tal:block>
|
---|
| 63 | </td>
|
---|
| 64 |
|
---|
| 65 | </span>
|
---|
| 66 | </tal:block>
|
---|
| 67 | </span>
|
---|
| 68 | </tr>
|
---|
| 69 |
|
---|
| 70 | </tal:block>
|
---|
| 71 | </tal:block>
|
---|
| 72 | </table>
|
---|
| 73 | <br/>
|
---|
| 74 | </metal:block>
|
---|