ui/lib/shared/addon/components/form-cluster-select/template.hbs

40 lines
1.4 KiB
Handlebars

<h4>{{t 'hostsPage.new.addCluster.label' htmlSafe=true }}</h4>
<div class="row">
<div class="col span-6">
<label>
{{t 'hostsPage.new.addCluster.cluster.label'}}
{{#unless hasCluster}}{{field-required}}{{/unless}}
</label>
{{#if hasCluster }}
<input type="text" value="{{requestedClusterName}}" disabled=true />
{{else}}
{{searchable-select content=filteredClusters value=requestedClusterId optionLabelPath="name" optionValuePath="id" localizedLabel=false}}
{{/if}}
</div>
<div class="col span-6">
{{!-- <label class="acc-label" for="">{{t 'hostsPage.new.addCluster.roles.label'}}</label> --}}
<table class="table fixed no-lines no-top-padding">
<thead>
<tr>
<th class="text-center">{{t 'hostsPage.new.addCluster.table.label.etcd'}}</th>
<th class="text-center">{{t 'hostsPage.new.addCluster.table.label.control'}}</th>
<th class="text-center">{{t 'hostsPage.new.addCluster.table.label.worker'}}</th>
</tr>
</thead>
<tbody>
<tr>
<td class="text-center">
{{input type="checkbox" checked=etcd}}
</td>
<td class="text-center">
{{input type="checkbox" checked=controlplane}}
</td>
<td class="text-center">
{{input type="checkbox" checked=worker}}
</td>
</tr>
</tbody>
</table>
</div>
</div>