Changeset 2920 for WAeUP_SRP/base/skins/waeup_layout
- Timestamp:
- 11 Dec 2007, 15:40:35 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_layout/layout_application_edit.pt
r2581 r2920 2 2 isStudent context/isStudent; 3 3 info context/getApplicationInfo; 4 app_email info/app_doc/app_email"> 4 app_email info/app_doc/app_email|nothing; 5 app_passport info/has_passport; 6 "> 5 7 6 8 <metal:block tal:condition="isStaff"> … … 10 12 11 13 <metal:block define-macro="application_student_edit" 12 tal:condition="python:isStudent and not app_email"14 tal:condition="python:isStudent" 13 15 tal:define="layout options/layout; 14 16 ds options/datastructure; … … 19 21 proceed options/proceed|nothing; 20 22 widgets python:context.getRenderedWidgets(layout); 21 fields python:( 'app_email', 22 'app_mobile',)"> 23 widget_email widgets/app_email|nothing; 24 widget_passport widgets/passport|nothing; 25 "> 23 26 <table class="layoutDefault" summary="Form layout" 24 tal:condition="layout/rows">27 > 25 28 26 <tr tal:condition=" widgets/app_email|nothing"27 tal:define="cell widget s/app_email|nothing;">29 <tr tal:condition="python: widget_email and not app_email" 30 tal:define="cell widget_email"> 28 31 <tal:block tal:define="widget cell/widget; 29 32 wid widget/getWidgetId; … … 56 59 </tal:block> 57 60 </tr> 61 <tr tal:condition="python: widget_passport and not app_passport" 62 tal:define="cell widget_passport"> 63 <tal:block tal:define="widget cell/widget; 64 wid widget/getWidgetId; 65 err python:ds.getError(wid); 66 err_mapping python:ds.getErrorMapping(wid); 67 is_required python: widget.is_required and creation and ('create' not in widget.readonly_layout_modes); 68 tooltip_id python:wid + '_help'; 69 widget_css_class widget/widget_css_class|nothing; 70 css_class python:test(err, 'row error','row')" 71 > 72 <div tal:attributes="class widget_css_class; 73 id python:widget.getHtmlWidgetId()+'_widget';" 74 > 75 <td> 76 <div class="label" tal:condition="widget/label_edit" 77 tal:attributes="class python:test(is_required, 'label required','label')"> 78 <label tal:content="widget/label_edit" 79 tal:attributes="for cell/widget_input_area_id|nothing;">label</label>: 80 81 <button type="button" class="tooltipControl" 82 tal:condition="widget/help" 83 tal:attributes="onclick python:'toggleElementVisibility(\'%s\')' % tooltip_id;"> ? </button> 84 </div> 85 </td> 86 <td> 87 <span class="field"> 88 <div tal:replace="structure cell/widget_rendered"/> 89 </span> 90 <div class="tooltipArea" style="visibility: hidden;" 91 tal:condition="widget/help" 92 tal:attributes="id tooltip_id; 93 onclick python:'showElement(false, \'%s\')' % tooltip_id;" 94 > 95 <tal:block tal:content="widget/help">This is the help for this field 96 </tal:block> 97 </div> 98 <tal:block condition="err"> 99 <tal:block define="msg python:cpsmcat(err, mapping=err_mapping)"> 100 <br /><em style="color: red" 101 tal:content="msg">err</em> 102 </tal:block> 103 </tal:block> 104 </td> 105 </div> 106 </tal:block> 107 </tr> 58 108 </table> 59 109 </metal:block>
Note: See TracChangeset for help on using the changeset viewer.