ui/lib/shared/addon/components/add-host/template.hbs

44 lines
1.7 KiB
Handlebars

{{!-- {{#if model.apiHostSet}} --}}
<section class="pt-10">
{{#if showPicker}}
<div class="row nav nav-boxes checked-active">
{{#each sortedDrivers as |choice|}}
{{#if choice.hasUi}}
<a {{action "switchDriver" choice.name}} alt={{choice.name}} class="col span-2 nav-box-item driver machine-driver {{choice.name}} {{if (eq choice.name driver) 'active'}}" href="#"><p class="sr-only">{{choice.displayName}}</p></a>
{{/if}}
{{/each}}
{{#if (and allowOther hasOther)}}
<a {{action "switchDriver" "other"}} alt="other" class="col span-2 nav-box-item driver machine-driver other {{if (eq driver 'other') 'active'}}" href="#"><p class="sr-only">{{t 'machine.driver.other'}}</p></a>
{{/if}}
{{#if allowCustom}}
<a {{action "switchDriver" "custom"}} alt="custom" class="col span-2 nav-box-item driver machine-driver custom {{if (eq driver 'custom') 'active'}}" href="#"><p class="sr-only">{{t 'machine.driver.custom'}}</p></a>
{{/if}}
</div>
{{/if}}
</section>
{{#if driver}}
{{component (concat 'machine/driver-' driver)
cancel=(action cancel)
clonedModel=model.clonedModel
driver=(concat driver 'Config')
cluster=cluster
schemas=model.schemas
typeDocumentations=model.typeDocumentations
availableDrivers=model.availableDrivers
inModal=inModal
showNameScale=showNameScale
completed=(action completed)
goBack=(action goBack)
}}
{{/if}}
{{!-- {{else}}
<section>
<div class="box">
{{settings/host-registration saved=(action 'hostSet')}}
</div>
</section>
{{/if}} --}}