fix(ui): forms and database list
This commit is contained in:
parent
b19217cc56
commit
9e8cb3a3f2
|
@ -211,7 +211,7 @@
|
|||
required
|
||||
maxlength="36"
|
||||
class=""
|
||||
pattern="^[a-z0-9][a-z0-9_-]{1,36}$"
|
||||
pattern="^[a-zA-Z0-9][a-z0-9_-]{1,36}$"
|
||||
name="projectId" />
|
||||
|
||||
<label>Name</label>
|
||||
|
|
|
@ -155,7 +155,8 @@ $logs = $this->getParam('logs', null);
|
|||
<th width="100"></th>
|
||||
<th width="130">Attribute ID</th>
|
||||
<th width="100">Type</th>
|
||||
<th width="180">Default</th>
|
||||
<th>Length</th>
|
||||
<th>Default</th>
|
||||
<th></th>
|
||||
<th width="80"></th>
|
||||
</tr>
|
||||
|
@ -176,15 +177,19 @@ $logs = $this->getParam('logs', null);
|
|||
</td>
|
||||
|
||||
<td data-title="Attribute ID: ">
|
||||
<span class="text-size-small" data-ls-bind="{{attribute.key}}"></span><span class="text-size-small" data-ls-if="{{attribute.size}}" data-ls-bind="({{attribute.size}})"></span>
|
||||
<span class="text-size-small" data-ls-bind="{{attribute.key}}"></span>
|
||||
</td>
|
||||
|
||||
<td data-title="Type:">
|
||||
<span class="text-size-small" data-ls-bind="{{attribute.type}}"></span>
|
||||
<span class="text-size-small" data-ls-if="{{attribute.array}}">[]</span>
|
||||
<span class="text-size-small" data-ls-if="!{{attribute.array}}" data-ls-bind="{{attribute.type}}"></span>
|
||||
<span class="text-size-small" data-ls-if="{{attribute.array}}" data-ls-bind="{{attribute.type}}[]"></span>
|
||||
<span class="text-size-small" data-ls-if="{{attribute.format}}" data-ls-bind="({{attribute.format}})"></span>
|
||||
</td>
|
||||
|
||||
<td data-title="Length:">
|
||||
<span class="text-size-small" data-ls-if="{{attribute.size}}" data-ls-bind="{{attribute.size}}"></span>
|
||||
</td>
|
||||
|
||||
<td data-title="Default:">
|
||||
<span class="text-size-small" data-ls-bind="{{attribute.default}}" data-ls-attr="title={{attribute.default}}"></span>
|
||||
<span class="text-fade text-size-small" data-ls-if="!({{attribute.default}})">n/a</span>
|
||||
|
@ -553,7 +558,7 @@ $logs = $this->getParam('logs', null);
|
|||
<input type="hidden" name="collectionId" data-ls-bind="{{router.params.id}}" />
|
||||
|
||||
<label for="string-attributeId">Attribute ID</label>
|
||||
<input type="text" class="full-width" name="attributeId" required autocomplete="off" maxlength="36" pattern="^[a-z0-9][a-z0-9_-]{1,36}$" />
|
||||
<input type="text" class="full-width" name="attributeId" required autocomplete="off" maxlength="36" pattern="^[a-zA-Z0-9][a-z0-9_-]{1,36}$" />
|
||||
<div class="text-fade text-size-xs margin-top-negative-small margin-bottom">Allowed Characters A-Z, a-z, 0-9, and non-leading underscore</div>
|
||||
|
||||
<label for="string-length">Size</label>
|
||||
|
@ -638,7 +643,7 @@ $logs = $this->getParam('logs', null);
|
|||
<input type="hidden" name="collectionId" data-ls-bind="{{router.params.id}}" />
|
||||
|
||||
<label for="integer-attributeId">Attribute ID</label>
|
||||
<input id="integer-attributeId" type="text" class="full-width" name="attributeId" required autocomplete="off" maxlength="36" pattern="^[a-z0-9][a-z0-9_-]{1,36}$" />
|
||||
<input id="integer-attributeId" type="text" class="full-width" name="attributeId" required autocomplete="off" maxlength="36" pattern="^[a-zA-Z0-9][a-z0-9_-]{1,36}$" />
|
||||
<div class="text-fade text-size-xs margin-top-negative-small margin-bottom">Allowed Characters A-Z, a-z, 0-9, and non-leading underscore</div>
|
||||
|
||||
<div class="margin-bottom">
|
||||
|
@ -728,7 +733,7 @@ $logs = $this->getParam('logs', null);
|
|||
<input type="hidden" name="collectionId" data-ls-bind="{{router.params.id}}" />
|
||||
|
||||
<label for="float-attributeId">Attribute ID</label>
|
||||
<input id="float-attributeId" type="text" class="full-width" name="attributeId" required autocomplete="off" maxlength="36" pattern="^[a-z0-9][a-z0-9_-]{1,36}$" />
|
||||
<input id="float-attributeId" type="text" class="full-width" name="attributeId" required autocomplete="off" maxlength="36" pattern="^[a-zA-Z0-9][a-z0-9_-]{1,36}$" />
|
||||
<div class="text-fade text-size-xs margin-top-negative-small margin-bottom">Allowed Characters A-Z, a-z, 0-9, and non-leading underscore</div>
|
||||
|
||||
<div class="margin-bottom">
|
||||
|
@ -817,7 +822,7 @@ $logs = $this->getParam('logs', null);
|
|||
<input type="hidden" name="collectionId" data-ls-bind="{{router.params.id}}" />
|
||||
|
||||
<label for="email-attributeId">Attribute ID</label>
|
||||
<input id="email-attributeId" type="text" class="full-width" name="attributeId" required autocomplete="off" maxlength="128" maxlength="36" pattern="^[a-z0-9][a-z0-9_-]{1,36}$" />
|
||||
<input id="email-attributeId" type="text" class="full-width" name="attributeId" required autocomplete="off" maxlength="128" maxlength="36" pattern="^[a-zA-Z0-9][a-z0-9_-]{1,36}$" />
|
||||
<div class="text-fade text-size-xs margin-top-negative-small margin-bottom">Allowed Characters A-Z, a-z, 0-9, and non-leading underscore</div>
|
||||
|
||||
<div class="margin-bottom">
|
||||
|
@ -895,7 +900,7 @@ $logs = $this->getParam('logs', null);
|
|||
<input type="hidden" name="collectionId" data-ls-bind="{{router.params.id}}" />
|
||||
|
||||
<label for="boolean-attributeId">Attribute ID</label>
|
||||
<input id="boolean-attributeId" type="text" class="full-width" name="attributeId" required autocomplete="off" maxlength="36" pattern="^[a-z0-9][a-z0-9_-]{1,36}$" />
|
||||
<input id="boolean-attributeId" type="text" class="full-width" name="attributeId" required autocomplete="off" maxlength="36" pattern="^[a-zA-Z0-9][a-z0-9_-]{1,36}$" />
|
||||
<div class="text-fade text-size-xs margin-top-negative-small margin-bottom">Allowed Characters A-Z, a-z, 0-9, and non-leading underscore</div>
|
||||
|
||||
<div class="margin-bottom">
|
||||
|
@ -976,7 +981,7 @@ $logs = $this->getParam('logs', null);
|
|||
<input type="hidden" name="collectionId" data-ls-bind="{{router.params.id}}" />
|
||||
|
||||
<label for="ip-attributeId">Attribute ID</label>
|
||||
<input id="ip-attributeId" type="text" class="full-width" name="attributeId" required autocomplete="off" maxlength="36" pattern="^[a-z0-9][a-z0-9_-]{1,36}$" />
|
||||
<input id="ip-attributeId" type="text" class="full-width" name="attributeId" required autocomplete="off" maxlength="36" pattern="^[a-zA-Z0-9][a-z0-9_-]{1,36}$" />
|
||||
<div class="text-fade text-size-xs margin-top-negative-small margin-bottom">Allowed Characters A-Z, a-z, 0-9, and non-leading underscore</div>
|
||||
|
||||
<div class="margin-bottom">
|
||||
|
@ -1054,7 +1059,7 @@ $logs = $this->getParam('logs', null);
|
|||
<input type="hidden" name="collectionId" data-ls-bind="{{router.params.id}}" />
|
||||
|
||||
<label for="url-attributeId">Attribute ID</label>
|
||||
<input id="url-attributeId" type="text" class="full-width" name="attributeId" required autocomplete="off" maxlength="36" pattern="^[a-z0-9][a-z0-9_-]{1,36}$" />
|
||||
<input id="url-attributeId" type="text" class="full-width" name="attributeId" required autocomplete="off" maxlength="36" pattern="^[a-zA-Z0-9][a-z0-9_-]{1,36}$" />
|
||||
<div class="text-fade text-size-xs margin-top-negative-small margin-bottom">Allowed Characters A-Z, a-z, 0-9, and non-leading underscore</div>
|
||||
|
||||
<div class="margin-bottom">
|
||||
|
@ -1132,7 +1137,7 @@ $logs = $this->getParam('logs', null);
|
|||
<input type="hidden" name="collectionId" data-ls-bind="{{router.params.id}}" />
|
||||
|
||||
<label for="enum-attributeId">Attribute ID</label>
|
||||
<input id="enum-attributeId" type="text" class="full-width" name="attributeId" required autocomplete="off" maxlength="36" pattern="^[a-z0-9][a-z0-9_-]{1,36}$" />
|
||||
<input id="enum-attributeId" type="text" class="full-width" name="attributeId" required autocomplete="off" maxlength="36" pattern="^[a-zA-Z0-9][a-z0-9_-]{1,36}$" />
|
||||
<div class="text-fade text-size-xs margin-top-negative-small margin-bottom">Allowed Characters A-Z, a-z, 0-9, and non-leading underscore</div>
|
||||
|
||||
<label>Elements</label>
|
||||
|
@ -1237,7 +1242,7 @@ $logs = $this->getParam('logs', null);
|
|||
<input type="hidden" name="collectionId" data-ls-bind="{{router.params.id}}" />
|
||||
|
||||
<label for="index-indexId">Index ID</label>
|
||||
<input id="index-indexId" type="text" class="full-width" name="indexId" required autocomplete="off" maxlength="36" pattern="^[a-z0-9][a-z0-9_-]{1,36}$" />
|
||||
<input id="index-indexId" type="text" class="full-width" name="indexId" required autocomplete="off" maxlength="36" pattern="^[a-zA-Z0-9][a-z0-9_-]{1,36}$" />
|
||||
<div class="text-fade text-size-xs margin-top-negative-small margin-bottom">Allowed Characters A-Z, a-z, 0-9, and non-leading underscore</div>
|
||||
|
||||
<label for="index-type">Type</label>
|
||||
|
|
|
@ -83,7 +83,7 @@ $logs = $this->getParam('logs', null);
|
|||
name="documentId"
|
||||
id="documentId"
|
||||
maxlength="36"
|
||||
pattern="^[a-z0-9][a-z0-9_-]{1,36}$" />
|
||||
pattern="^[a-zA-Z0-9][a-z0-9_-]{1,36}$" />
|
||||
<?php endif; ?>
|
||||
|
||||
<fieldset name="data" data-cast-to="object">
|
||||
|
|
|
@ -102,7 +102,7 @@
|
|||
data-validator="database.getCollection"
|
||||
required
|
||||
maxlength="36"
|
||||
pattern="^[a-z0-9][a-z0-9_-]{1,36}$"
|
||||
pattern="^[a-zA-Z0-9][a-z0-9_-]{1,36}$"
|
||||
name="collectionId" />
|
||||
|
||||
<label for="collection-name">Name</label>
|
||||
|
|
|
@ -113,7 +113,7 @@ $runtimes = $this->getParam('runtimes', []);
|
|||
data-validator="functions.get"
|
||||
required
|
||||
maxlength="36"
|
||||
pattern="^[a-z0-9][a-z0-9_-]{1,36}$"
|
||||
pattern="^[a-zA-Z0-9][a-z0-9_-]{1,36}$"
|
||||
name="functionId" />
|
||||
|
||||
<label for="name">Name</label>
|
||||
|
|
|
@ -245,7 +245,7 @@ $fileLimitHuman = $this->getParam('fileLimitHuman', 0);
|
|||
data-validator="storage.getFile"
|
||||
required
|
||||
maxlength="36"
|
||||
pattern="^[a-z0-9][a-z0-9_-]{1,36}$"
|
||||
pattern="^[a-zA-Z0-9][a-z0-9_-]{1,36}$"
|
||||
name="fileId"
|
||||
id="fileId" />
|
||||
|
||||
|
|
|
@ -163,7 +163,7 @@ $smtpEnabled = $this->getParam('smtpEnabled', false);
|
|||
data-validator="users.get"
|
||||
required
|
||||
maxlength="36"
|
||||
pattern="^[a-z0-9][a-z0-9_-]{1,36}$"
|
||||
pattern="^[a-zA-Z0-9][a-z0-9_-]{1,36}$"
|
||||
id="userId"
|
||||
name="userId" />
|
||||
|
||||
|
@ -311,7 +311,7 @@ $smtpEnabled = $this->getParam('smtpEnabled', false);
|
|||
data-validator="teams.get"
|
||||
required
|
||||
maxlength="36"
|
||||
pattern="^[a-z0-9][a-z0-9_-]{1,36}$"
|
||||
pattern="^[a-zA-Z0-9][a-z0-9_-]{1,36}$"
|
||||
id="teamId"
|
||||
name="teamId" />
|
||||
|
||||
|
|
3
public/dist/scripts/app-all.js
vendored
3
public/dist/scripts/app-all.js
vendored
|
@ -3571,8 +3571,7 @@ else if(undefined!==element.value){if((json[name]!==undefined)&&(!Array.isArray(
|
|||
if(Array.isArray(json[name])){json[name].push(element.value);}
|
||||
else{json[name]=element.value;}}
|
||||
json[name]=cast(json[name],castTo);}}
|
||||
for(let i=0;i<element.children.length;i++){if(element.children[i].disabled){return;}
|
||||
if(Array.isArray(ref)){ref.push({});toJson(element.children[i],ref[ref.length]);}
|
||||
for(let i=0;i<element.children.length;i++){if(Array.isArray(ref)){ref.push({});toJson(element.children[i],ref[ref.length]);}
|
||||
else{toJson(element.children[i],ref);}}
|
||||
return json;}
|
||||
return{'toJson':toJson}},true,false);})(window);(function(window){"use strict";window.ls.container.set('markdown',function(window){var md=window.markdownit();function renderEm(tokens,idx,opts,_,slf){var token=tokens[idx];if(token.markup==='__'){token.tag='u';}
|
||||
|
|
3
public/dist/scripts/app.js
vendored
3
public/dist/scripts/app.js
vendored
|
@ -637,8 +637,7 @@ else if(undefined!==element.value){if((json[name]!==undefined)&&(!Array.isArray(
|
|||
if(Array.isArray(json[name])){json[name].push(element.value);}
|
||||
else{json[name]=element.value;}}
|
||||
json[name]=cast(json[name],castTo);}}
|
||||
for(let i=0;i<element.children.length;i++){if(element.children[i].disabled){return;}
|
||||
if(Array.isArray(ref)){ref.push({});toJson(element.children[i],ref[ref.length]);}
|
||||
for(let i=0;i<element.children.length;i++){if(Array.isArray(ref)){ref.push({});toJson(element.children[i],ref[ref.length]);}
|
||||
else{toJson(element.children[i],ref);}}
|
||||
return json;}
|
||||
return{'toJson':toJson}},true,false);})(window);(function(window){"use strict";window.ls.container.set('markdown',function(window){var md=window.markdownit();function renderEm(tokens,idx,opts,_,slf){var token=tokens[idx];if(token.markup==='__'){token.tag='u';}
|
||||
|
|
|
@ -120,9 +120,6 @@
|
|||
}
|
||||
|
||||
for (let i = 0; i < element.children.length; i++) {
|
||||
if (element.children[i].disabled) {
|
||||
return;
|
||||
}
|
||||
if (Array.isArray(ref)) {
|
||||
ref.push({});
|
||||
toJson(element.children[i], ref[ref.length]);
|
||||
|
|
Loading…
Reference in a new issue