ui/app/components/modal-edit-namespace/template.hbs

45 lines
1.7 KiB
Handlebars

<section class="horizontal-form container-fluid">
<h2>{{t 'editStack.title'}}</h2>
<label class="acc-label pb-5">{{t 'editStack.name.label'}}</label>
{{input type="text" value=primaryResource.name classNames="form-control" placeholder=(t 'editStack.name.placeholder') disabled=true}}
<label class="pt-20 pb-5">{{t 'editStack.description.label'}}</label>
{{textarea value=primaryResource.description classNames="form-control no-resize" rows="5" placeholder=(t 'editStack.description.placeholder')}}
<label class="pt-20 pb-5">{{t 'editStack.project.label'}}</label>
{{new-select
classNames="form-control"
optionValuePath="id"
optionLabelPath="displayName"
content=allProjects
value=primaryResource.projectId
prompt="editStack.project.prompt"
localizedPrompt=true
}}
{{#if primaryResource.project.resourceQuota}}
<div class="row mt-20">
{{#accordion-list showExpandAll=false as | al expandFn | }}
{{#accordion-list-item
title=(t 'editStack.resourceQuota.title')
detail=(t 'editStack.resourceQuota.detail')
expandAll=al.expandAll
expand=(action expandFn)
expandOnInit=true
}}
{{namespace-resource-quota
editing=(or editing isNew)
expanded=expanded
limit=primaryResource.resourceQuota.limit
nsDefaultQuota=primaryResource.project.namespaceDefaultResourceQuota.limit
changed=(action "updateNsQuota")
}}
{{/accordion-list-item}}
{{/accordion-list}}
</div>
{{/if}}
</section>
{{top-errors errors=errors}}
{{save-cancel editing=editing save="save" cancel="cancel"}}