Commit e8bbbd1d authored by Boris Kocherov's avatar Boris Kocherov Committed by Boris Kocherov

erp5_xhtml_style: readonly field fix

parent a56cbc34
......@@ -22,7 +22,7 @@
i18n:attributes="title" i18n:domain="ui">
<tal:block tal:repeat="html_tuple html_render">
<div class="form-group row"
tal:define="field_offset python:repeat['html_tuple'].start == True and ' ' or 'col-md-offset-' + field_label_width;"
tal:define="field_offset python:repeat['html_tuple'].start and ' ' or 'col-md-offset-' + field_label_width;"
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]">
......@@ -43,10 +43,9 @@
tal:condition="field_editable"
tal:content="structure python: html_tuple[1]" />
<div class="col-md-10"
tal:attributes="class string:col-md-${field_input_width} ${field_offset};"
tal:condition="not:field_editable">
<p class="form-control-static" tal:content="structure python: html_tuple[1]" />
</div>
tal:attributes="class string:form-control-static col-md-${field_input_width} ${field_offset};"
tal:condition="not:field_editable"
tal:content="structure python: html_tuple[1]"/>
</tal:block>
<tal:block tal:condition="python:gid == 'bottom' or not html_tuple[0]">
<div class="col-md-12" tal:content="structure python: html_tuple[1]" />
......
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