2020-04-21 06:47:26 +12:00
<?php
$key = $this->getParam('key', '');
$array = $this->getParam('array', false);
$required = $this->getParam('required', '');
$namespace = $this->getParam('namespace', '');
2020-04-21 20:13:08 +12:00
$list = $this->getParam('list', []);
$list = (is_array($list)) ? $list : [];
$list = ($array) ? $list : array_shift($list);
2020-04-21 06:47:26 +12:00
?>
2020-04-21 20:13:08 +12:00
<?php if ( $array ) : ?>
2020-04-21 06:47:26 +12:00
< 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 >
2020-04-21 20:13:08 +12:00
<?php endif ; ?>
2020-04-21 06:47:26 +12:00
< div class = "info" >
2020-04-21 20:13:08 +12:00
<?php if ( ! empty ( $list )) : ?>
2020-04-23 15:25:00 +12:00
< div data-ls-template = "/console/database/form?collection= <?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}}&buster={{project-collection.dateUpdated}}" class = "margin-bottom-negative-small" ></ div >
2020-04-21 20:13:08 +12:00
<?php endif ; ?>
2020-04-21 06:47:26 +12:00
< / div >