From 2e190ba31b4ec3cb0642cf5aecfab1a82fc053e9 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Mon, 27 Apr 2020 21:37:42 +0300 Subject: [PATCH] Added file input type --- app/views/console/database/rules/array.phtml | 25 ++++++++++++++++--- app/views/console/database/rules/fileId.phtml | 19 ++++++++++++++ 2 files changed, 40 insertions(+), 4 deletions(-) create mode 100644 app/views/console/database/rules/fileId.phtml diff --git a/app/views/console/database/rules/array.phtml b/app/views/console/database/rules/array.phtml index 67cefa716a..2792530b6a 100644 --- a/app/views/console/database/rules/array.phtml +++ b/app/views/console/database/rules/array.phtml @@ -5,6 +5,7 @@ $required = $this->getParam('required', ''); $comp = $this->getParam('comp', ''); $namespace = $this->getParam('namespace', ''); $list = $this->getParam('list', []); +$collections = $this->getParam('collections', []); $comp->setParam('namespace', 'node'); @@ -15,8 +16,10 @@ if($type === 'document') { required data-cast-to="array-empty"> - + + +
+ +
+ diff --git a/app/views/console/database/rules/fileId.phtml b/app/views/console/database/rules/fileId.phtml new file mode 100644 index 0000000000..aa9b9e5004 --- /dev/null +++ b/app/views/console/database/rules/fileId.phtml @@ -0,0 +1,19 @@ +getParam('key', ''); +$required = $this->getParam('required', ''); +$namespace = $this->getParam('namespace', ''); +?> + required + class="margin-bottom-no"> \ No newline at end of file