Changeset 2738 for WAeUP_SRP/base/skins/waeup_layout
- Timestamp:
- 22 Nov 2007, 10:28:41 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_layout/layout_apply_admission_create.pt
r2329 r2738 3 3 <!-- a layout_lib macro --> 4 4 <!-- $Id: layout_apply_admission_create.pt 2141 2007-08-21 16:50:33Z henrik $ --> 5 6 5 <metal:block define-macro="default_table" 7 tal:define="layout options/layout; 8 ds options/datastructure; 9 dm ds/getDataModel; 10 creation creation|nothing; 11 metadata metadata|nothing; 12 cpsmcat nocall:here/translation_service; 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 widget_css_class cell/widget_css_class|nothing; 25 css_class python:test(err, 'row error','row')"> 6 tal:define="layout options/layout; 7 ds options/datastructure; 8 dm ds/getDataModel; 9 creation creation|nothing; 10 metadata metadata|nothing; 11 cpsmcat nocall:here/translation_service; 12 apply request/apply_button|nothing;" 13 > 14 <table cellpadding="2" cellspacing="2" summary="Form layout" border=0 15 tal:condition="layout/rows"> 16 <span tal:repeat="row layout/rows" valign="top" tal:omit-tag=""> 17 <span tal:repeat="cell row" tal:omit-tag=""> 18 <tal:block define="widget cell/widget; 19 wid widget/getWidgetId; 20 err python:ds.getError(wid); 21 err_mapping python:ds.getErrorMapping(wid); 22 widget_css_class cell/widget_css_class|nothing; 23 css_class python:test(err, 'row error','row')"> 26 24 <span tal:attributes="class widget_css_class; 27 id python:widget.getHtmlWidgetId()+'_widget'; 28 "> 29 30 31 <td valign="middle" tal:condition="python:widget.label_edit and widget.label_edit!='label field'"> 32 <div class="label"> 33 <label tal:content="widget/label_edit" 34 tal:attributes="for cell/widget_input_area_id|nothing;">label</label> 35 </div> 36 </td> 37 38 <td tal:condition="cell/widget_rendered"> 39 <div tal:attributes="class python:test(widget.label_edit == 'label field', 'label','')"> 40 <label tal:replace="structure cell/widget_rendered"/> 41 </div> 42 <tal:block condition="err"> 25 id python:widget.getHtmlWidgetId()+'_widget';" 26 > 27 <tr tal:condition="widget/description|nothing" class="even ajaxtd"> 28 <th colspan="5" align="left"><h3 tal:replace="widget/description" /></th> 29 </tr> 30 <tr> 31 <td valign="middle" tal:condition="python:widget.label_edit and widget.label_edit!='label field'"> 32 <div class="label"> 33 <label tal:content="widget/label_edit" 34 tal:attributes="for cell/widget_input_area_id|nothing;">label</label> 35 </div> 36 </td> 37 <td tal:condition="cell/widget_rendered"> 38 <div tal:attributes="class python:test(widget.label_edit == 'label field', 'label','')"> 39 <label tal:replace="structure cell/widget_rendered"/> 40 </div> 41 <tal:block condition="err"> 43 42 <tal:block define="msg python:cpsmcat(err, mapping=err_mapping)"> 44 43 <br /><em style="color: red" 45 tal:content="msg">err</em>44 tal:content="msg">err</em> 46 45 </tal:block> 47 </tal:block>48 </td>49 46 </tal:block> 47 </td> 48 </tr> 50 49 </span> 51 50 </tal:block> 52 </span>53 </tr>51 </span> 52 </span> 54 53 </table> 55 54 <br/> 56 55 </metal:block> 56
Note: See TracChangeset for help on using the changeset viewer.