struct_selec_test python:struct_selec_len == 1 or struct_input_len == 2;
struct_test python:struct_selec_test and struct_input_test">
<div tal:replace="nothing">
- rendering final output string through 'field.render'.
- replacing all ' ' with '' to prevent error in rendering
- making two tests : first one (struct_input_test) is used to test if
rendering is single field (StringField, ) or multi-field
(DateTimeField, RelationStringField, ).
PLEASE note : CheckboxField is rendered as a single field in html_style
but as a multi-field in xhtml_style
Second one takes care of the RelationStrinField item when it is filled
as it is composed of 1 input field + 1 select field
</div>
<div tal:omit-tag=""
tal:condition="struct_test"><!-- begining single field processing -->
<div tal:replace="nothing">
this bloc has been implemented to take care of the textarea
and single inputfield renderings. this just process the
output rendering as a single field.
UPDATE : with xhtml_style, this
</div>
<div class="input" tal:attributes="class python: ('<' not in struct) and '%s_class' % name or ''" tal:condition="python:(not field_errors.has_key(field.id))"><!-- field has no error -->
<div tal:replace="structure struct"
tal:attributes="class string:${name}_class;
title field/title"/>
</div>
<div class="input" tal:attributes="class python: ('<' not in struct) and '%s_class' % name or ''" tal:condition="python: field_errors.has_key(field.id)"><!-- field has errors-->