Merge branch 'feat-sb-uis' into feat-s3-integration
This commit is contained in:
commit
e1c413120a
8 changed files with 222 additions and 130 deletions
|
@ -86,49 +86,210 @@ $logs = $this->getParam('logs', null);
|
||||||
pattern="^[a-zA-Z0-9][a-zA-Z0-9_-]{1,36}$" />
|
pattern="^[a-zA-Z0-9][a-zA-Z0-9_-]{1,36}$" />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<fieldset name="data" data-cast-to="object">
|
<fieldset name="data" data-cast-to="object" data-ls-attrs="x-init=doc = {{project-document}}" x-data="{doc: {}}">
|
||||||
<ul data-ls-loop="project-collection.attributes" data-ls-as="attribute">
|
<ul data-ls-attrs="x-init=attributes = {{project-collection.attributes}}" x-data="{attributes: []}">
|
||||||
<li data-ls-if="{{attribute.status}} === 'available'">
|
<template x-for="attr in attributes">
|
||||||
|
<li>
|
||||||
<label>
|
<label>
|
||||||
<div data-ls-bind="{{attribute.key}}" class="margin-bottom-tiny"></div>
|
<div x-text="attr.key" class="margin-bottom-tiny"></div>
|
||||||
<div data-ls-if="{{attribute.required}}" class="text-size-xs text-danger text-fade">required</div>
|
<span x-show="attr.required" class="text-size-xs text-danger text-fade">required</span>
|
||||||
<div data-ls-if="!{{attribute.required}}" class="text-size-xs text-fade">optional</div>
|
<span x-show="!attr.required" class="text-size-xs text-fade">optional</span>
|
||||||
</label>
|
</label>
|
||||||
<div data-ls-if="!{{attribute.array}}">
|
<template x-if="!attr.array">
|
||||||
<div data-ls-if="{{attribute.format}}" data-ls-template="template-{{attribute.format}}" data-type="script"></div>
|
<div>
|
||||||
<div data-ls-if="!{{attribute.format}}" data-ls-template="template-{{attribute.type}}" data-type="script"></div>
|
<template x-if="attr.type === 'integer'">
|
||||||
|
<input
|
||||||
|
type="number"
|
||||||
|
step="1"
|
||||||
|
:placeholder="attr.default"
|
||||||
|
:name="attr.key"
|
||||||
|
:required="attr.required"
|
||||||
|
x-model="doc[attr.key]"
|
||||||
|
data-cast-to="integer" />
|
||||||
|
</template>
|
||||||
|
<template x-if="attr.type === 'double'">
|
||||||
|
<input
|
||||||
|
type="number"
|
||||||
|
step="0.01"
|
||||||
|
:placeholder="attr.default"
|
||||||
|
:name="attr.key"
|
||||||
|
:required="attr.required"
|
||||||
|
x-model="doc[attr.key]"
|
||||||
|
data-cast-to="integer" />
|
||||||
|
</template>
|
||||||
|
<template x-if="attr.type === 'boolean'">
|
||||||
|
<input
|
||||||
|
class="button switch margin-bottom"
|
||||||
|
type="checkbox"
|
||||||
|
:name="attr.key"
|
||||||
|
:checked="doc[attr.key]" />
|
||||||
|
</template>
|
||||||
|
<template x-if="attr.type === 'string' && !attr.format">
|
||||||
|
<textarea
|
||||||
|
data-forms-text-resize
|
||||||
|
data-forms-text-direction
|
||||||
|
:placeholder="attr.default"
|
||||||
|
:name="attr.key"
|
||||||
|
:required="attr.required"
|
||||||
|
x-model="doc[attr.key]"
|
||||||
|
data-cast-to="string"></textarea>
|
||||||
|
</template>
|
||||||
|
<template x-if="attr.format === 'ip'">
|
||||||
|
<textarea
|
||||||
|
data-forms-text-resize
|
||||||
|
data-forms-text-direction
|
||||||
|
pattern="((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))"
|
||||||
|
:placeholder="attr.default"
|
||||||
|
:name="attr.key"
|
||||||
|
:required="attr.required"
|
||||||
|
x-model="doc[attr.key]"
|
||||||
|
data-cast-to="string"></textarea>
|
||||||
|
</template>
|
||||||
|
<template x-if="attr.format === 'email'">
|
||||||
|
<textarea
|
||||||
|
data-forms-text-resize
|
||||||
|
data-forms-text-direction
|
||||||
|
type="email"
|
||||||
|
:placeholder="attr.default"
|
||||||
|
:name="attr.key"
|
||||||
|
:required="attr.required"
|
||||||
|
x-model="doc[attr.key]"
|
||||||
|
data-cast-to="string"></textarea>
|
||||||
|
</template>
|
||||||
|
<template x-if="attr.format === 'url'">
|
||||||
|
<textarea
|
||||||
|
data-forms-text-resize
|
||||||
|
data-forms-text-direction
|
||||||
|
type="url"
|
||||||
|
:placeholder="attr.default"
|
||||||
|
:name="attr.key"
|
||||||
|
:required="attr.required"
|
||||||
|
x-model="doc[attr.key]"
|
||||||
|
data-cast-to="string"></textarea>
|
||||||
|
</template>
|
||||||
|
<template x-if="attr.format === 'enum'">
|
||||||
|
<select
|
||||||
|
:name="attr.key"
|
||||||
|
data-cast-to="string">
|
||||||
|
<template x-for="element in attr.elements">
|
||||||
|
<option
|
||||||
|
:value="element"
|
||||||
|
x-text="element"
|
||||||
|
:selected="doc[attr.key] === element"></option>
|
||||||
|
</template>
|
||||||
|
</select>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
</template>
|
||||||
<div data-ls-if="{{attribute.array}}">
|
<template x-if="attr.array">
|
||||||
<input type="hidden" data-forms-required="{{attribute.required}}" data-ls-attrs="name={{attribute.key}}" data-cast-to="array-empty">
|
<div>
|
||||||
<div data-ls-loop="project-document.{{attribute.key}}" data-ls-as="item">
|
<input type="hidden" :required="attr.required" :name="attr.key" data-cast-to="array-empty">
|
||||||
<div class="row responsive thin margin-bottom-tiny" data-forms-remove>
|
<template x-for="(node, index) in doc[attr.key]">
|
||||||
|
<div class="row responsive thin margin-bottom-tiny">
|
||||||
<div class="col span-11 margin-bottom-small">
|
<div class="col span-11 margin-bottom-small">
|
||||||
<div data-ls-if="{{attribute.format}}" data-ls-template="template-{{attribute.format}}-array" data-type="script"></div>
|
<template x-if="attr.type === 'integer'">
|
||||||
<div data-ls-if="!{{attribute.format}}" data-ls-template="template-{{attribute.type}}-array" data-type="script"></div>
|
<input
|
||||||
|
type="number"
|
||||||
|
step="1"
|
||||||
|
:placeholder="attr.default"
|
||||||
|
:name="attr.key"
|
||||||
|
:required="attr.required"
|
||||||
|
x-model="doc[attr.key][index]"
|
||||||
|
data-cast-to="integer" />
|
||||||
|
</template>
|
||||||
|
<template x-if="attr.type === 'double'">
|
||||||
|
<input
|
||||||
|
type="number"
|
||||||
|
step="0.01"
|
||||||
|
:placeholder="attr.default"
|
||||||
|
:name="attr.key"
|
||||||
|
:required="attr.required"
|
||||||
|
x-model="doc[attr.key][index]"
|
||||||
|
data-cast-to="integer" />
|
||||||
|
</template>
|
||||||
|
<template x-if="attr.type === 'boolean'">
|
||||||
|
<input
|
||||||
|
class="button switch"
|
||||||
|
:class="(doc[attr.key].length - 1) === index ? 'margin-bottom' : ''"
|
||||||
|
type="checkbox"
|
||||||
|
:name="attr.key"
|
||||||
|
:checked="doc[attr.key][index]" />
|
||||||
|
</template>
|
||||||
|
<template x-if="attr.type === 'string' && !attr.format">
|
||||||
|
<textarea
|
||||||
|
data-forms-text-resize
|
||||||
|
data-forms-text-direction
|
||||||
|
:placeholder="attr.default"
|
||||||
|
:name="attr.key"
|
||||||
|
:required="attr.required"
|
||||||
|
x-model="doc[attr.key][index]"
|
||||||
|
data-cast-to="string"></textarea>
|
||||||
|
</template>
|
||||||
|
<template x-if="attr.format === 'ip'">
|
||||||
|
<textarea
|
||||||
|
data-forms-text-resize
|
||||||
|
data-forms-text-direction
|
||||||
|
pattern="((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))"
|
||||||
|
:placeholder="attr.default"
|
||||||
|
:name="attr.key"
|
||||||
|
:required="attr.required"
|
||||||
|
x-model="doc[attr.key][index]"
|
||||||
|
data-cast-to="string"></textarea>
|
||||||
|
</template>
|
||||||
|
<template x-if="attr.format === 'email'">
|
||||||
|
<textarea
|
||||||
|
data-forms-text-resize
|
||||||
|
data-forms-text-direction
|
||||||
|
type="email"
|
||||||
|
:placeholder="attr.default"
|
||||||
|
:name="attr.key"
|
||||||
|
:required="attr.required"
|
||||||
|
x-model="doc[attr.key][index]"
|
||||||
|
data-cast-to="string"></textarea>
|
||||||
|
</template>
|
||||||
|
<template x-if="attr.format === 'url'">
|
||||||
|
<textarea
|
||||||
|
data-forms-text-resize
|
||||||
|
data-forms-text-direction
|
||||||
|
type="url"
|
||||||
|
:placeholder="attr.default"
|
||||||
|
:name="attr.key"
|
||||||
|
:required="attr.required"
|
||||||
|
x-model="doc[attr.key][index]"
|
||||||
|
data-cast-to="string"></textarea>
|
||||||
|
</template>
|
||||||
|
<template x-if="attr.format === 'enum'">
|
||||||
|
<select
|
||||||
|
:name="attr.key"
|
||||||
|
data-cast-to="string">
|
||||||
|
<template x-for="element in attr.elements">
|
||||||
|
<option
|
||||||
|
:value="element"
|
||||||
|
x-text="element"
|
||||||
|
:selected="doc[attr.key][index] === element"></option>
|
||||||
|
</template>
|
||||||
|
</select>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<div class="col span-1 margin-bottom-small">
|
<div class="col span-1 margin-bottom-small">
|
||||||
<button type="button" data-remove class="dark danger small round pull-end" style="margin-top: 10px;"><i class="icon-cancel"></i></button>
|
<button type="button" class="dark danger small round pull-end" style="margin-top: 10px;" @click="doc[attr.key].splice(index, 1)"><i class="icon-cancel"></i></button>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div data-ls-attrs="id=attribute-{{attribute.key}}"></div>
|
|
||||||
|
|
||||||
<div class="margin-bottom">
|
|
||||||
<div data-forms-clone data-label="Add Attribute" data-target="attribute-{{attribute.key}}" data-first="0">
|
|
||||||
<div class="row responsive thin margin-bottom-tiny" data-forms-remove>
|
|
||||||
<div class="col span-11 margin-bottom-small">
|
|
||||||
<div data-ls-if="{{attribute.format}}" data-ls-template="template-{{attribute.format}}-array" data-type="script"></div>
|
|
||||||
<div data-ls-if="!{{attribute.format}}" data-ls-template="template-{{attribute.type}}-array" data-type="script"></div>
|
|
||||||
</div>
|
|
||||||
<div class="col span-1 margin-bottom-small">
|
|
||||||
<button type="button" data-remove class="dark danger small round pull-end" style="margin-top: 10px;"><i class="icon-cancel"></i></button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</template>
|
||||||
|
<button type="button" class="margin-end margin-bottom-small reverse" @click="doc = addAttribute(doc, attr.key)"> Add Attribute </button>
|
||||||
</div>
|
</div>
|
||||||
|
</template>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function addAttribute(doc, key) {
|
||||||
|
if (!Array.isArray(doc[key])) {
|
||||||
|
doc[key] = [];
|
||||||
|
}
|
||||||
|
doc[key].push(null);
|
||||||
|
return doc;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</li>
|
</li>
|
||||||
|
</template>
|
||||||
</ul>
|
</ul>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
@ -208,71 +369,3 @@ $logs = $this->getParam('logs', null);
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/html" id="template-string">
|
|
||||||
<textarea data-forms-text-resize data-forms-text-direction data-ls-attrs="placeholder={{attribute.default}},name={{attribute.key}}" data-forms-required="{{attribute.required}}" data-ls-bind="{{project-document|documentAttribute}}" data-cast-to="string"></textarea>
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script type="text/html" id="template-string-array">
|
|
||||||
<textarea data-forms-text-resize data-forms-text-direction data-ls-attrs="placeholder={{attribute.default}},name={{attribute.key}}" data-ls-bind="{{item}}" data-cast-to="string"></textarea>
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script type="text/html" id="template-integer">
|
|
||||||
<input type="number" step="1" data-ls-attrs="placeholder={{attribute.default}},name={{attribute.key}}" data-forms-required="{{attribute.required}}" data-ls-bind="{{project-document|documentAttribute}}" data-cast-to="integer" />
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script type="text/html" id="template-integer-array">
|
|
||||||
<input type="number" step="1" data-ls-attrs="placeholder={{attribute.default}},name={{attribute.key}}" data-ls-bind="{{item}}" data-cast-to="integer" />
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script type="text/html" id="template-double">
|
|
||||||
<input type="number" step="0.01" data-ls-attrs="placeholder={{attribute.default}},name={{attribute.key}}" data-forms-required="{{attribute.required}}" data-ls-bind="{{project-document|documentAttribute}}" data-cast-to="float" />
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script type="text/html" id="template-double-array">
|
|
||||||
<input type="number" step="0.01" data-ls-attrs="placeholder={{attribute.default}},name={{attribute.key}}" data-ls-bind="{{item}}" data-cast-to="float" />
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script type="text/html" id="template-boolean">
|
|
||||||
<input type="hidden" data-forms-switch data-ls-attrs="name={{attribute.key}}" data-ls-bind="{{project-document|documentAttribute}}" data-cast-to="boolean" />
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script type="text/html" id="template-boolean-array">
|
|
||||||
<input type="hidden" data-forms-switch data-ls-attrs="name={{attribute.key}}" data-ls-bind="{{item}}" data-cast-to="boolean" />
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script type="text/html" id="template-url">
|
|
||||||
<input type="url" data-ls-attrs="placeholder={{attribute.default}},name={{attribute.key}}" data-forms-required="{{attribute.required}}" data-ls-bind="{{project-document|documentAttribute}}" data-cast-to="string" />
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script type="text/html" id="template-url-array">
|
|
||||||
<input type="url" data-ls-attrs="placeholder={{attribute.default}},name={{attribute.key}}" data-ls-bind="{{item}}" data-cast-to="string" />
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script type="text/html" id="template-email">
|
|
||||||
<input type="email" data-ls-attrs="placeholder={{attribute.default}},name={{attribute.key}}" data-forms-required="{{attribute.required}}" data-ls-bind="{{project-document|documentAttribute}}" data-cast-to="string" />
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script type="text/html" id="template-email-array">
|
|
||||||
<input type="email" data-ls-attrs="placeholder={{attribute.default}},name={{attribute.key}}" data-ls-bind="{{item}}" data-cast-to="string" />
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script type="text/html" id="template-ip">
|
|
||||||
<input type="text" data-ls-attrs="placeholder={{attribute.default}},name={{attribute.key}}" data-forms-required="{{attribute.required}}" data-ls-bind="{{project-document|documentAttribute}}" data-cast-to="string" pattern="((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))" title="Enter a valid IPV4 or IPV6 address" />
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script type="text/html" id="template-ip-array">
|
|
||||||
<input type="text" data-ls-attrs="placeholder={{attribute.default}},name={{attribute.key}}" data-ls-bind="{{item}}" data-cast-to="string" pattern="((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))" title="Enter a valid IPV4 or IPV6 address" />
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script type="text/html" id="template-enum">
|
|
||||||
<select data-ls-attrs="name={{attribute.key}}" data-ls-loop="attribute.elements" data-ls-as="element" data-cast-to="string">
|
|
||||||
<option data-ls-attrs="value={{element}}" data-ls-bind="{{element}}" data-forms-selected="{{project-document|documentAttribute}}"></option>
|
|
||||||
</select>
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script type="text/html" id="template-enum-array">
|
|
||||||
<select data-ls-attrs="name={{attribute.key}}" data-ls-loop="attribute.elements" data-ls-as="element" data-cast-to="string">
|
|
||||||
<option data-ls-attrs="value={{element}}" data-ls-bind="{{element}}" data-forms-selected="{{item}}"></option>
|
|
||||||
</select>
|
|
||||||
</script>
|
|
|
@ -421,7 +421,8 @@ $fileLimitHuman = $this->getParam('fileLimitHuman', 0);
|
||||||
<div class="col span-1"><input name="permission" value="file" type="radio" class="margin-top-no" data-ls-bind="{{project-bucket.permission}}" /></div>
|
<div class="col span-1"><input name="permission" value="file" type="radio" class="margin-top-no" data-ls-bind="{{project-bucket.permission}}" /></div>
|
||||||
<div class="col span-11">
|
<div class="col span-11">
|
||||||
<b>File Level</b>
|
<b>File Level</b>
|
||||||
<p class="text-fade margin-top-tiny">File permission take effect instead of bucket permission</p>
|
<p class="text-fade margin-top-tiny">With File Level permissions, you have granular access control over every file. Users will only be able to access files for which they have explicit permissions.</p>
|
||||||
|
<p class="text-fade margin-top-tiny">In this permission level file permissions take precedence and bucket permissions are ignored.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -429,7 +430,9 @@ $fileLimitHuman = $this->getParam('fileLimitHuman', 0);
|
||||||
<div class="col span-1"><input name="permission" value="bucket" type="radio" class="margin-top-tiny" data-ls-bind="{{project-bucket.permission}}" /></div>
|
<div class="col span-1"><input name="permission" value="bucket" type="radio" class="margin-top-tiny" data-ls-bind="{{project-bucket.permission}}" /></div>
|
||||||
<div class="col span-11">
|
<div class="col span-11">
|
||||||
<b>Bucket Level</b>
|
<b>Bucket Level</b>
|
||||||
<p class="text-fade margin-top-tiny">Bucket permissions override the file permissions</p>
|
<p class="text-fade margin-top-tiny">With Bucket Level permissions, you assign permissions only once in the bucket.</p>
|
||||||
|
<p class="text-fade margin-top-tiny">In this permission level permissions assigned to bucket takes the precedence and file permissions are ignored</p>
|
||||||
|
<div data-ls-if="{{project-bucket.permission}} == 'bucket'">
|
||||||
|
|
||||||
<label for="bucket-read">Read Access <span class="text-size-small">(<a data-ls-attrs="href={{env.HOME}}/docs/permissions" target="_blank" rel="noopener">Learn more</a>)</span></label>
|
<label for="bucket-read">Read Access <span class="text-size-small">(<a data-ls-attrs="href={{env.HOME}}/docs/permissions" target="_blank" rel="noopener">Learn more</a>)</span></label>
|
||||||
<input type="hidden" id="bucket-read" name="read" data-forms-tags data-cast-to="json" data-ls-bind="{{project-bucket.$permissions.read}}" placeholder="User ID, Team ID or Role" />
|
<input type="hidden" id="bucket-read" name="read" data-forms-tags data-cast-to="json" data-ls-bind="{{project-bucket.$permissions.read}}" placeholder="User ID, Team ID or Role" />
|
||||||
|
@ -440,6 +443,7 @@ $fileLimitHuman = $this->getParam('fileLimitHuman', 0);
|
||||||
<div class="text-fade text-size-xs margin-top-negative-small margin-bottom">Add * for wildcard access</div>
|
<div class="text-fade text-size-xs margin-top-negative-small margin-bottom">Add * for wildcard access</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<hr class="margin-top-no" />
|
<hr class="margin-top-no" />
|
||||||
|
|
||||||
|
|
3
public/dist/scripts/app-all.js
vendored
3
public/dist/scripts/app-all.js
vendored
|
@ -3605,8 +3605,7 @@ else{if(!Array.isArray(json[name])){json[name]=[];}
|
||||||
json[name].push({});ref=json[name][json[name].length-1];}}
|
json[name].push({});ref=json[name][json[name].length-1];}}
|
||||||
else if(undefined!==element.value){if('SELECT'===element.tagName&&element.children>0){json[name]=element.children[element.selectedIndex].value;}
|
else if(undefined!==element.value){if('SELECT'===element.tagName&&element.children>0){json[name]=element.children[element.selectedIndex].value;}
|
||||||
else if('radio'===type){if(element.checked){json[name]=element.value;}}
|
else if('radio'===type){if(element.checked){json[name]=element.value;}}
|
||||||
else if('checkbox'===type){if(!Array.isArray(json[name])){json[name]=[];}
|
else if('checkbox'===type){if(Array.isArray(json[name])){json[name].push(element.checked);}else{json[name]=element.checked;}}
|
||||||
if(element.checked){json[name].push(element.value);}}
|
|
||||||
else if('file'===type){json[name]=element.files[0];}
|
else if('file'===type){json[name]=element.files[0];}
|
||||||
else if(undefined!==element.value){if((json[name]!==undefined)&&(!Array.isArray(json[name]))){json[name]=[json[name]];}
|
else if(undefined!==element.value){if((json[name]!==undefined)&&(!Array.isArray(json[name]))){json[name]=[json[name]];}
|
||||||
if(Array.isArray(json[name])){json[name].push(element.value);}
|
if(Array.isArray(json[name])){json[name].push(element.value);}
|
||||||
|
|
3
public/dist/scripts/app.js
vendored
3
public/dist/scripts/app.js
vendored
|
@ -631,8 +631,7 @@ else{if(!Array.isArray(json[name])){json[name]=[];}
|
||||||
json[name].push({});ref=json[name][json[name].length-1];}}
|
json[name].push({});ref=json[name][json[name].length-1];}}
|
||||||
else if(undefined!==element.value){if('SELECT'===element.tagName&&element.children>0){json[name]=element.children[element.selectedIndex].value;}
|
else if(undefined!==element.value){if('SELECT'===element.tagName&&element.children>0){json[name]=element.children[element.selectedIndex].value;}
|
||||||
else if('radio'===type){if(element.checked){json[name]=element.value;}}
|
else if('radio'===type){if(element.checked){json[name]=element.value;}}
|
||||||
else if('checkbox'===type){if(!Array.isArray(json[name])){json[name]=[];}
|
else if('checkbox'===type){if(Array.isArray(json[name])){json[name].push(element.checked);}else{json[name]=element.checked;}}
|
||||||
if(element.checked){json[name].push(element.value);}}
|
|
||||||
else if('file'===type){json[name]=element.files[0];}
|
else if('file'===type){json[name]=element.files[0];}
|
||||||
else if(undefined!==element.value){if((json[name]!==undefined)&&(!Array.isArray(json[name]))){json[name]=[json[name]];}
|
else if(undefined!==element.value){if((json[name]!==undefined)&&(!Array.isArray(json[name]))){json[name]=[json[name]];}
|
||||||
if(Array.isArray(json[name])){json[name].push(element.value);}
|
if(Array.isArray(json[name])){json[name].push(element.value);}
|
||||||
|
|
2
public/dist/styles/default-ltr.css
vendored
2
public/dist/styles/default-ltr.css
vendored
File diff suppressed because one or more lines are too long
2
public/dist/styles/default-rtl.css
vendored
2
public/dist/styles/default-rtl.css
vendored
File diff suppressed because one or more lines are too long
|
@ -90,12 +90,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ('checkbox' === type) { // Checkbox
|
else if ('checkbox' === type) { // Checkbox
|
||||||
if (!Array.isArray(json[name])) {
|
if (Array.isArray(json[name])) {
|
||||||
json[name] = [];
|
json[name].push(element.checked);
|
||||||
}
|
} else {
|
||||||
|
json[name] = element.checked;
|
||||||
if (element.checked) {
|
|
||||||
json[name].push(element.value);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ('file' === type) { // File upload
|
else if ('file' === type) { // File upload
|
||||||
|
|
|
@ -821,7 +821,6 @@ label.switch {
|
||||||
background: var(--config-color-fade);
|
background: var(--config-color-fade);
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
margin-bottom: 32px;
|
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
.func-padding-start(5px);
|
.func-padding-start(5px);
|
||||||
.func-padding-end(30px);
|
.func-padding-end(30px);
|
||||||
|
|
Loading…
Reference in a new issue