refactor: minify XML structure by removing unnecessary whitespace in sign item templates
This commit is contained in:
parent
1074212728
commit
bf48212bf3
@ -1,12 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<templates xml:space="preserve">
|
<templates>
|
||||||
<t t-name="sign.signItem" t-inherit="sign.signItem" t-inherit-mode="extension">
|
<t t-name="sign.signItem" t-inherit="sign.signItem" t-inherit-mode="extension">
|
||||||
<xpath expr="//t[@t-if="type == 'selection'"]" position="after">
|
<xpath expr="//t[@t-if="type == 'selection'"]" position="after"><t t-if="type == 'sequence'" t-call="sign.sequenceSignItem"/></xpath>
|
||||||
<t t-if="type == 'sequence'" t-call="sign.sequenceSignItem"/>
|
|
||||||
</xpath>
|
|
||||||
<!-- This second xpath seems to be for the editor drag-drop preview or specific state -->
|
<!-- This second xpath seems to be for the editor drag-drop preview or specific state -->
|
||||||
<xpath expr="//div[@t-if="type == 'selection'"]" position="after">
|
<xpath expr="//div[@t-if="type == 'selection'"]" position="after"><div t-if="type == 'sequence'" t-att-title="role" t-attf-class="{{classes}} o_sign_sign_item o_sign_sequence_item" t-att-style="style" t-att-data-value="value" t-att-data-type="'sequence'" style="text-align:center; display:flex; align-items:center; justify-content:center;">
|
||||||
<div t-if="type == 'sequence'" t-att-title="role" t-attf-class="{{classes}} o_sign_sign_item o_sign_sequence_item" t-att-style="style" t-att-data-value="value" t-att-data-type="'sequence'" style="text-align:center; display:flex; align-items:center; justify-content:center;">
|
|
||||||
<t t-if="value">
|
<t t-if="value">
|
||||||
<span t-esc="value" style="font-family:monospace;"/>
|
<span t-esc="value" style="font-family:monospace;"/>
|
||||||
</t>
|
</t>
|
||||||
@ -16,8 +13,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</t>
|
</t>
|
||||||
<t t-if="isSignItemEditable" t-call="sign.signItemConfiguration"/>
|
<t t-if="isSignItemEditable" t-call="sign.signItemConfiguration"/>
|
||||||
</div>
|
</div></xpath>
|
||||||
</xpath>
|
|
||||||
</t>
|
</t>
|
||||||
|
|
||||||
<t t-name="sign.sequenceSignItem">
|
<t t-name="sign.sequenceSignItem">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user