1
0
Fork 0
mirror of synced 2024-06-02 10:54:44 +12:00
appwrite/app/views/console/database/rules/document.phtml
2020-04-21 11:13:08 +03:00

31 lines
1.4 KiB
PHTML

<?php
$key = $this->getParam('key', '');
$array = $this->getParam('array', false);
$required = $this->getParam('required', '');
$namespace = $this->getParam('namespace', '');
$list = $this->getParam('list', []);
$list = (is_array($list)) ? $list : [];
$list = ($array) ? $list : array_shift($list);
?>
<?php if($array): ?>
<div class="drop-list bottom end" data-ls-ui-open="" data-button-text="" data-button-icon="icon-plus" data-button-selector="[data-toggler]" data-button-class="round dark small margin-top-negative-large pull-end" data-blur="1" tabindex="1">
<ul class="margin-top-negative-small">
<li data-move-up>
<button type="button" class="link"><i class="icon-up-dir"></i> Move Up</button>
</li>
<li data-move-down>
<button type="button" class="link"><i class="icon-down-dir"></i> Move Down</button>
</li>
<li data-remove>
<button type="button" class="link"><i class="icon-cancel"></i> Remove</button>
</li>
</ul>
</div>
<?php endif; ?>
<div class="info">
<?php if(!empty($list)): ?>
<div data-ls-template="/console/database/form?collectionId=<?php echo $this->escape($list); ?>&namespace=<?php echo $this->escape($namespace); ?>&key=<?php echo $this->escape($key); ?>&parent=0&project={{router.params.project}}&version={{env.VERSION}}" class="margin-bottom-negative-small"></div>
<?php endif; ?>
</div>