diff --git a/app/views/console/database/collection.phtml b/app/views/console/database/collection.phtml
index 1bdef71d18..eb045c9f2c 100644
--- a/app/views/console/database/collection.phtml
+++ b/app/views/console/database/collection.phtml
@@ -621,7 +621,7 @@ $logs = $this->getParam('logs', null);
data-failure-param-alert-text="Failed to create attribute"
data-failure-param-alert-classname="error"
@reset="array = required = false"
- x-data="{ array: false, required: false }">
+ x-data="{ array: false, required: false, size: null }">
@@ -631,7 +631,7 @@ $logs = $this->getParam('logs', null);
Allowed Characters A-Z, a-z, 0-9, and non-leading underscore, hyphen and dot
-
+
Required
@@ -643,7 +643,7 @@ $logs = $this->getParam('logs', null);
-
+
@@ -677,7 +677,7 @@ $logs = $this->getParam('logs', null);
data-failure-param-alert-text="Failed to create attribute"
data-failure-param-alert-classname="error"
@reset="array = required = false"
- x-data="{ array: false, required: false }">
+ x-data="{ array: false, required: false, min: null, max: null }">
@@ -697,18 +697,18 @@ $logs = $this->getParam('logs', null);
-
+
@@ -742,7 +742,7 @@ $logs = $this->getParam('logs', null);
data-failure-param-alert-text="Failed to create attribute"
data-failure-param-alert-classname="error"
@reset="array = required = false"
- x-data="{ array: false, required: false }">
+ x-data="{ array: false, required: false, min: null, max: null }">
@@ -762,18 +762,18 @@ $logs = $this->getParam('logs', null);
-
+
diff --git a/app/views/console/database/document.phtml b/app/views/console/database/document.phtml
index 793def259a..8324c680d0 100644
--- a/app/views/console/database/document.phtml
+++ b/app/views/console/database/document.phtml
@@ -104,6 +104,8 @@ $logs = $this->getParam('logs', null);
:placeholder="attr.default"
:name="attr.key"
:required="attr.required"
+ :min="attr.min"
+ :max="attr.max"
x-model="doc[attr.key]"
data-cast-to="integer" />
@@ -114,6 +116,8 @@ $logs = $this->getParam('logs', null);
:placeholder="attr.default"
:name="attr.key"
:required="attr.required"
+ :min="attr.min"
+ :max="attr.max"
x-model="doc[attr.key]"
data-cast-to="float" />
@@ -131,6 +135,7 @@ $logs = $this->getParam('logs', null);
:placeholder="attr.default"
:name="attr.key"
:required="attr.required"
+ :maxlength="attr.size"
x-model="doc[attr.key]"
data-cast-to="string">
@@ -197,6 +202,8 @@ $logs = $this->getParam('logs', null);
:placeholder="attr.default"
:name="attr.key"
:required="attr.required"
+ :min="attr.min"
+ :max="attr.max"
x-model="doc[attr.key][index]"
data-cast-to="integer" />
@@ -207,6 +214,8 @@ $logs = $this->getParam('logs', null);
:placeholder="attr.default"
:name="attr.key"
:required="attr.required"
+ :min="attr.min"
+ :max="attr.max"
x-model="doc[attr.key][index]"
data-cast-to="float" />
@@ -226,6 +235,7 @@ $logs = $this->getParam('logs', null);
:placeholder="attr.default"
:name="attr.key"
:required="attr.required"
+ :maxlength="attr.size"
x-model="doc[attr.key][index]"
data-cast-to="string">