{{#if statusFetching}} {{else}}
{{#if (eq modalOpts.type 'review')}}
{{#if profileComponent}} {{#identity-block principal=profileComponent link=false }} {{/identity-block}} {{else}} N/A {{/if}}
{{else}} {{#if accountsInfo}}
{{#if profileComponent}} {{#identity-block principal=profileComponent link=false }} {{/identity-block}} {{else}} N/A {{/if}}
{{else}}
{{top-errors errors=authErrors}} {{#unless testing}} {{else}} {{/unless}}
{{/if}} {{/if}}

{{#if (eq modalOpts.type 'review')}} {{input class="form-control" value=selectedModel.sourceCodeConfig.url disabled=(if (eq modalOpts.type 'review') true false)}} {{else}} {{#if state.repoRefresh}} {{else}} {{searchable-select content=repositories allowCustom=true value=selectedModel.sourceCodeConfig.url optionLabelPath="url" optionValuePath="url" readOnly=readOnly }} {{#if fetchPipelineFromRepoMessageShow}} {{#if fetchPipelineFromRepoMessageSuccess}} {{banner-message color='bg-success mb-0 mt-10' message=(t 'newPipelineStep.stepType.scm.importPipelineSuccess' htmlSafe=true branch=importFromBranch)}} {{else}} {{banner-message color='bg-warning mb-0 mt-10' message=(t 'newPipelineStep.stepType.scm.importPipelineFail') }} {{/if}} {{/if}} {{/if}} {{/if}}
{{#each branchTypes as |type| }}
{{radio-button disabled=(or (eq modalOpts.type 'review') (and (not-eq type.value 'only') allowOnly)) id=type.value selection=selectedModel.sourceCodeConfig.branchCondition value=type.value}}
{{#if (not-eq type.value 'all')}}
{{input class="form-control js-disable-hint js-auto-focus" value=selectedModel.sourceCodeConfig.branch placeholder="master" disabled=(if (eq modalOpts.type 'review') true (if (eq type.value selectedModel.sourceCodeConfig.branchCondition) false true))}}
{{/if}}
{{/each}}
{{#pipeline-trigger selectedModel=selectedModel modalOpts=modalOpts selectedRepo=selectedRepo triggerOptionsChange=(action 'triggerOptionsChange') disabled=(if (eq modalOpts.type 'review') true false) }} {{/pipeline-trigger}} {{/if}}