1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

fix(ui): prevent double inerstion on clone

This commit is contained in:
Torsten Dittmann 2021-11-02 11:04:43 +01:00
parent b2bf63df15
commit ada4b993d6

View file

@ -97,7 +97,7 @@ $logs = $this->getParam('logs', null);
<div data-ls-if="!{{attribute.format}}" data-ls-template="template-{{attribute.type}}" data-type="script"></div>
</div>
<div data-ls-if="{{attribute.array}}" data-ls-loop="project-document.{{attribute.key}}" data-ls-as="item" data-ls-attrs="id=attribute-{{attribute.key}}">
<div data-ls-if="{{attribute.array}}" data-ls-loop="project-document.{{attribute.key}}" data-ls-as="item">
<div class="row responsive thin margin-bottom-tiny" data-forms-remove>
<div class="col span-11 margin-bottom-small">
<div data-ls-if="{{attribute.format}}" data-ls-template="template-{{attribute.format}}-array" data-type="script"></div>
@ -109,6 +109,8 @@ $logs = $this->getParam('logs', null);
</div>
</div>
<div data-ls-attrs="id=attribute-{{attribute.key}}"></div>
<div data-ls-if="{{attribute.array}}" class="margin-bottom">
<div data-forms-clone="" data-label="Add Attribute" data-target="attribute-{{attribute.key}}" data-first="0">
<div class="row responsive thin margin-bottom-tiny" data-forms-remove>