diff --git a/app/views/console/database/collection.phtml b/app/views/console/database/collection.phtml index 1ac1454f5c..b2b35fa1e2 100644 --- a/app/views/console/database/collection.phtml +++ b/app/views/console/database/collection.phtml @@ -88,11 +88,12 @@ - + - - [] + + [...] {...} + @@ -156,7 +157,7 @@ -
+
@@ -244,6 +245,10 @@ + + + +
@@ -257,7 +262,9 @@
- + + +
@@ -317,6 +324,24 @@
+ + - - - getId()) { - continue; // Do not allow rec recrusion - } - - Authorization::disable(); //TODO Try and avoid calling the DB from the template - $childCollection = $db->getDocument($item, false); - Authorization::reset(); - - if(!$childCollection->getId()) { - continue; - } - ?> - - - \ No newline at end of file + \ No newline at end of file diff --git a/app/views/console/database/form.phtml b/app/views/console/database/form.phtml index 64911d2036..59ce352763 100644 --- a/app/views/console/database/form.phtml +++ b/app/views/console/database/form.phtml @@ -3,6 +3,7 @@ use Utopia\View; $collection = $this->getParam('collection', null); +$collections = $this->getParam('collections', []); $rules = $collection->getAttribute('rules', []); $key = $this->getParam('key', null); $parent = $this->getParam('parent', true); @@ -24,7 +25,7 @@ $array = $this->getParam('array', false); */ ?> -
data-cast-to="object"> +
data-cast-to="object" class=" info"> @@ -58,10 +59,11 @@ $array = $this->getParam('array', false); ->setParam('list', $list) ->setParam('namespace', $namespace.'.'.$key) ->setParam('comp', $comp) + ->setParam('collections', $collections) ; ?>
  • -