ui/lib/pipeline/addon/components/modal-pipeline-run/template.hbs

36 lines
892 B
Handlebars

<h2>
{{t "runPipeline.title" name=model.displayName}}
</h2>
{{#if loading}}
<i class="icon icon-spinner icon-spin"/> {{t "generic.loading"}}
{{else if branchesChoices.length}}
<div class="row mb-10">
<div class="col span-12">
<label class="acc-label">
{{t "runPipeline.branch.label"}}{{field-required}}
</label>
{{searchable-select
class="form-control"
content=branchesChoices
value=branch
}}
</div>
</div>
{{top-errors errors=errors}}
{{save-cancel
editing=editing
createLabel="action.run"
save=(action "save")
cancel=(action "cancel")
}}
{{else}}
<div class="mt-20 mb-20">
{{t "runPipeline.noBranch" htmlSafe=true}}
</div>
<div class="footer-actions">
<button class="btn bg-primary" type="button" {{action "cancel"}}>
{{t "generic.closeModal"}}
</button>
</div>
{{/if}}