This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
themis.fields/themis/fields/dochistoline_input.pt

35 lines
1.5 KiB
XML

<div lang="en"
xml:lang="en"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
i18n:domain="plone.app.textfield"
tal:attributes="id view/id">
<tal:define define="fieldName view/name">
<div class="histoline">
<div class="fieldDate">
<label>Date</label>
<input type="text" tal:condition="view/value"
tal:attributes="id string:${fieldName}_date;
name string:${fieldName}.date;
value view/value/date"/>
<input type="text" tal:condition="not:view/value"
tal:attributes="id string:${fieldName}_date;
name string:${fieldName}.date;"/>
</div>
<div class="fieldComment">
<label>Comment</label>
<input type="text" tal:condition="view/value"
tal:attributes="id string:${fieldName}_comment;
name string:${fieldName}.comment;
value view/value/comment"/>
<input type="text" tal:condition="not:view/value"
tal:attributes="id string:${fieldName}_comment;
name string:${fieldName}.comment;"/>
</div>
</div>
</tal:define>
</div>