1
0
Fork 0
mirror of synced 2024-06-02 19:04:49 +12:00
This commit is contained in:
Eldad Fux 2021-08-30 09:36:30 +03:00
parent 95e08d7a49
commit 0d57a59f70

View file

@ -92,7 +92,21 @@ $logs = $this->getParam('logs', null);
<div data-ls-if="{{attribute.required}}" class="text-size-xs text-danger text-fade">required</div>
<div data-ls-if="!{{attribute.required}}" class="text-size-xs text-fade">optional</div>
</label>
<div data-ls-template="template-{{attribute.type}}" data-type="script"></div>
<div data-ls-if="!{{attribute.array}}" data-ls-template="template-{{attribute.type}}" data-type="script"></div>
<div data-ls-if="{{attribute.array}}" class="margin-bottom">
<div data-forms-clone="" data-label="Add Attribute" data-target="attributes-section" data-first="1">
<div class="row responsive thin margin-bottom-tiny">
<div class="col span-11 margin-bottom-small">
<div data-ls-template="template-{{attribute.type}}" data-type="script"></div>
</div>
<div class="col span-1 margin-bottom-small">
<button type="button" data-remove class="dark danger small round pull-end" style="margin-top: 10px;"><i class="icon-cancel"></i></button>
</div>
</div>
</div>
</div>
</li>
</ul>
</fieldset>
@ -169,9 +183,6 @@ $logs = $this->getParam('logs', null);
<?php echo $logs->render(); ?>
</li>
<?php endif; ?>
<!-- <li data-ls-if="{{project-document.$id}}" data-state="/console/database/document/activity?id={{router.params.id}}&collection={{router.params.collection}}&project={{router.params.project}}">
<h2>Activity</h2>
</li> -->
</ul>
</div>
</div>
@ -181,6 +192,10 @@ $logs = $this->getParam('logs', null);
<textarea data-forms-text-resize data-forms-text-direction data-ls-attrs="name={{attribute.key}}" data-ls-bind="{{project-document|documentAttribute}}"></textarea>
</script>
<script type="text/html" id="template-string-array">
<textarea data-forms-text-resize data-forms-text-direction data-ls-attrs="name={{attribute.key}}" data-ls-bind="{{project-document|documentAttribute}}"></textarea>
</script>
<script type="text/html" id="template-integer">
<input type="number" step="1" data-ls-attrs="name={{attribute.key}}" data-ls-bind="{{project-document|documentAttribute}}" data-cast-to="integer" />
</script>