ui/lib/shared/addon/components/modal-edit-namespace/template.hbs

37 lines
1.5 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
}}
<label class="pt-20 pb-5">{{t 'editStack.group.label'}}</label>
<div class="input-group">
{{input type="text" value=tags classNames="form-control" placeholder=(t 'editStack.group.placeholder')}}
<div class="input-group-btn bg-primary">
<button type="button" class="btn bg-primary dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="icon icon-chevron-down"></i></button>
<ul class="dropdown-menu dropdown-menu-right" role="menu">
{{#each tagChoices as |key|}}
<li><a {{action "addTag" key}}>{{key}}</a></li>
{{/each}}
</ul>
</div>
</div>
<p class="text-info">{{t 'editStack.group.help'}}</p>
</section>
{{top-errors errors=errors}}
{{save-cancel editing=editing save="save" cancel="cancel"}}