64 tal:condition="python:widget.mode == 'hidden'" |
64 tal:condition="python:widget.mode == 'hidden'" |
65 tal:replace="structure widget/render" /> |
65 tal:replace="structure widget/render" /> |
66 <tal:if condition="python:widget.mode != 'hidden'"> |
66 <tal:if condition="python:widget.mode != 'hidden'"> |
67 <div tal:define="required python:'required-field' if widget.required and (widget.mode != 'display') else ''" |
67 <div tal:define="required python:'required-field' if widget.required and (widget.mode != 'display') else ''" |
68 tal:attributes="class string:form-group ${required}"> |
68 tal:attributes="class string:form-group ${required}"> |
69 <label tal:attributes="class view/label_css_class"> |
69 <label tal:attributes="class widget/label_css_class | group/label_css_class | view/label_css_class"> |
70 <span> |
70 <span> |
71 <tal:var content="widget/label" /> |
71 <tal:var content="widget/label" /> |
72 <i class="fa fa-question-circle hint" title="Input hint" |
72 <i class="fa fa-question-circle hint" title="Input hint" |
73 tal:define="description widget/field/description" |
73 tal:define="description widget/field/description" |
74 tal:condition="description" |
74 tal:condition="description" |
75 tal:attributes="title description; |
75 tal:attributes="title description; |
76 data-ams-hint-html python:'<' in description;"></i> |
76 data-ams-hint-html python:'<' in description;"></i> |
77 </span> |
77 </span> |
78 </label> |
78 </label> |
79 <div tal:attributes="class view/input_css_class"> |
79 <div tal:attributes="class widget/input_css_class | group/input_css_class | view/input_css_class"> |
80 <label class="input" |
80 <label class="input" |
81 tal:attributes="data-ams-data widget/myams:data; |
81 tal:attributes="class widget/widget_css_class | default; |
|
82 data-ams-data widget/myams:data; |
82 data-ams-form-validator python:view.getWidgetCallback(widget.field.getName())"> |
83 data-ams-form-validator python:view.getWidgetCallback(widget.field.getName())"> |
83 <input tal:replace="structure widget/render" /> |
84 <input tal:replace="structure widget/render" /> |
84 </label> |
85 </label> |
85 </div> |
86 </div> |
86 </div> |
87 </div> |