- Timestamp:
- 27 Dec 2010, 10:14:11 (14 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_layout
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_layout/layout_student_acco_create.pt
r2857 r5615 69 69 </span> 70 70 </span> 71 <tr tal:condition="widgets/passport|nothing" 72 tal:define="cell widgets/passport|nothing;"> 73 <tal:block tal:define="widget cell/widget; 74 wid widget/getWidgetId; 75 err python:ds.getError(wid); 76 err_mapping python:ds.getErrorMapping(wid); 77 is_required python: widget.is_required and creation and ('create' not in widget.readonly_layout_modes); 78 tooltip_id python:wid + '_help'; 79 widget_css_class widget/widget_css_class|nothing; 80 css_class python:test(err, 'row error','row')" 81 > 82 <div tal:attributes="class widget_css_class; 83 id python:widget.getHtmlWidgetId()+'_widget';" 84 > 85 <td> 86 <div class="label" tal:condition="widget/label_edit" 87 tal:attributes="class python:test(is_required, 'label required','label')"> 88 <label tal:content="widget/label_edit" 89 tal:attributes="for cell/widget_input_area_id|nothing;">label</label>: 90 </div> 91 <button type="button" class="tooltipControl" 92 tal:condition="widget/help" 93 tal:attributes="onclick python:'toggleElementVisibility(\'%s\')' % tooltip_id;"> ? </button> 94 </td> 95 <td> 96 <span class="field"> 97 <div tal:replace="structure cell/widget_rendered"/> 98 </span> 99 <div class="tooltipArea" style="visibility: hidden;" 100 tal:condition="widget/help" 101 tal:attributes="id tooltip_id; 102 onclick python:'showElement(false, \'%s\')' % tooltip_id;" 103 > 104 <tal:block tal:content="widget/help">This is the help for this field 105 </tal:block> 106 </div> 107 <tal:block condition="err"> 108 <tal:block define="msg python:cpsmcat(err, mapping=err_mapping)"> 109 <br /><em style="color: red" 110 tal:content="msg">err</em> 111 </tal:block> 112 </tal:block> 113 </td> 114 </div> 115 </tal:block> 116 </tr> 71 117 72 </table> 118 73 <br /> -
WAeUP_SRP/trunk/skins/waeup_layout/layout_student_acco_edit.pt
r2891 r5615 16 16 apply request/apply_button|nothing; 17 17 widgets python:context.getRenderedWidgets(layout); 18 info python: context.getAccommodationInfo();19 maintenance_online info/online_payment|nothing;20 21 22 23 24 18 "> 25 19 <form action="" id="editForm" method="post" … … 55 49 <div tal:replace="structure cell/widget_rendered"/> 56 50 </span> 51 52 <input type="submit" class="standalone" name="cpsdocument_edit_button" 53 tal:attributes="value options/button" 54 id="cpsdocument_edit_button" 55 tal:condition="python:not creation and wid == 'acco_maint_sc_pin'" /> 57 56 </td> 57 58 58 </div> 59 59 </tr> 60 60 </span> 61 61 </span> 62 <tr tal:condition="widgets/passport|nothing" 63 tal:define="cell widgets/passport|nothing;"> 64 <tal:block tal:define="widget cell/widget; 65 wid widget/getWidgetId; 66 err python:ds.getError(wid); 67 err_mapping python:ds.getErrorMapping(wid); 68 is_required python: widget.is_required and creation and ('create' not in widget.readonly_layout_modes); 69 tooltip_id python:wid + '_help'; 70 widget_css_class widget/widget_css_class|nothing; 71 css_class python:test(err, 'row error','row')" 72 > 73 <div tal:attributes="class widget_css_class; 74 id python:widget.getHtmlWidgetId()+'_widget';" 75 > 76 <td> 77 <div class="label" tal:condition="widget/label_edit" 78 tal:attributes="class python:test(is_required, 'label required','label')"> 79 <label tal:content="widget/label_edit" 80 tal:attributes="for cell/widget_input_area_id|nothing;">label</label>: 81 </div> 82 </td> 83 <td> 84 <span class="field"> 85 <div tal:replace="structure cell/widget_rendered"/> 86 </span> 87 </td> 88 </div> 89 </tal:block> 90 </tr> 62 91 63 </table> 92 <br /> 93 <input type="submit" class="standalone" name="cpsdocument_edit_button" 94 value="Save" 95 id="cpsdocument_edit_button" 96 tal:condition="python:not creation and not maintenance_online" /> 64 97 65 98 66 </form>
Note: See TracChangeset for help on using the changeset viewer.