tailbone/tailbone/templates/deform/date_plain.pt
Lance Edgar 0f5d668f86 Add "plain" date widget
to avoid deform.addCallback() JS for mobile forms

surely there's a better solution, but this works for now...
2019-02-22 20:46:54 -06:00

17 lines
581 B
XML

<div tal:define="css_class css_class|field.widget.css_class;
oid oid|field.oid;
style style|field.widget.style;
type_name type_name|field.widget.type_name;"
tal:omit-tag="">
${field.start_mapping()}
<input type="${type_name}"
name="date"
value="${cstruct}"
tal:attributes="class string: ${css_class or ''} form-control hasDatepicker;
style style;
attributes|field.widget.attributes|{};"
id="${oid}"/>
${field.end_mapping()}
</div>