Commit 9595c4e9 authored by Boris Kocherov's avatar Boris Kocherov Committed by Boris Kocherov

erp5_xhtml_style: field with error marked

parent fb4a0349
......@@ -10,7 +10,7 @@
render_prefix render_prefix | nothing;
key_prefix key_prefix | nothing;
field_errors python: request.get('field_errors', {});
field_has_error python: field_errors.has_key(field_id);
field_has_error python: field_errors.has_key(field_id) and 'has-error' or '';
global form_id form_id | form/id | nothing;
field_description field/Field_getDescription;
field_label_width python: gid in ['center'] and '2' or '3';
......@@ -28,6 +28,7 @@
</tal:block>
<tal:block tal:repeat="html_tuple html_render">
<div class="form-group row"
tal:attributes="class string:form-group row ${field_has_error}"
tal:condition="python: field_editable or html_tuple[1]">
<tal:block tal:condition="python:(gid != 'bottom') and html_tuple[0]">
<label class="control-label col-md-2"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment