ui/app/components/form-node-scheduling-row/template.hbs

27 lines
837 B
Handlebars

<div class="box mb-20">
<div class="row">
<div class="col span-6">
<label class="pb-5 acc-label" for="input-project-select">
{{t "nodeDriver.harvester.scheduling.input.priority.label"}}
</label>
{{new-select
value=model.priority
content=priorityChoices
optionValuePath="value"
optionLabelPath="translationKey"
localizedLabel=true
}}
</div>
{{#if editing}}
<div class="col span-6 text-right mt-0">
<button class="btn bg-link icon-btn" type="button" {{action "remove" }}>
<i class="icon icon-minus text-small" />
<span>{{t "formNodeAffinity.removeRuleLabel"}}</span>
</button>
</div>
{{/if}}
</div>
{{form-node-requirement term=model.nodeSelectorTerms initialRules=false editing=editing}}
</div>