{{t "editYamlPipeline.title" name=model.displayName}}

{{#if loading}} {{t "generic.loading"}} {{else if branchesChoices.length}}
{{#searchable-select optionLabelPath="branch" optionValuePath="branch" value=branch customLabel=true content=branchesChoices as |item| }}
{{item.branch}}
{{/searchable-select}}
{{input-yaml showUpload=false showDownload=false canChangeName=false value=config autoResize=true loading=loading }}
{{copy-to-clipboard tooltipText="" buttonText="copyToClipboard.tooltip" clipboardText=config class="with-clip" }} {{top-errors errors=errors}} {{save-cancel createLabel="generic.push" save=(action "save") cancel=(action "cancel") }} {{else}} {{#banner-message color="bg-warning"}}

{{t "generic.noBranch"}}

{{/banner-message}} {{save-cancel createLabel="generic.push" save=(action "save") saveDisabled=true cancel=(action "cancel") }} {{/if}}