{{#accordion-list showExpandAll=false as | al expandFn |}} {{#accordion-list-item title=(t 'clusterNew.tencenttke.access.title') detail=(t 'clusterNew.tencenttke.access.detail') expandAll=expandAll expand=(action expandFn) expandOnInit=true }}
{{#input-or-display editable=(and (eq step 1) isNew) value=config.region}} {{searchable-select class="form-control" content=regionChoices value=config.region }} {{/input-or-display}}
{{#input-or-display editable=(eq step 1) value=config.secretId}} {{input type="text" name="username" classNames="form-control" placeholder=(t 'clusterNew.tencenttke.secretId.placeholder') value=config.secretId}} {{/input-or-display}}
{{#if (eq step 1)}} {{input type="password" name="password" classNames="form-control" placeholder=(t 'clusterNew.tencenttke.secretKey.placeholder') value=config.secretKey}} {{else}}
{{t 'clusterNew.tencenttke.secretKey.provided'}}
{{/if}}
{{/accordion-list-item}} {{#if (eq step 1)}} {{save-cancel editing=(eq mode 'edit') save="tencentLogin" cancel=close createLabel="clusterNew.tencenttke.access.next" savingLabel="clusterNew.tencenttke.access.loading" }} {{/if}} {{#if (gte step 2)}} {{#accordion-list-item title=(t 'clusterNew.tencenttke.cluster.title') detail=(t 'clusterNew.tencenttke.cluster.detail') showExpand=false expandOnInit=true expandAll=al.expandAll expand=(action expandFn) }}
{{#input-or-display editable=(and (eq step 2) isNew) value=config.clusterVersion}} {{searchable-select class="form-control" content=versionChoices value=config.clusterVersion }} {{/input-or-display}}
{{#input-or-display editable=(eq step 2) value=config.nodeCount}} {{input-integer min=1 max=100 value=config.nodeCount classNames="form-control" placeholder=(t 'clusterNew.tencenttke.nodeCount.placeholder')}}

{{t 'clusterNew.tencenttke.nodeCount.help'}}

{{/input-or-display}}
{{#input-or-display editable=(and (eq step 2) isNew) value=config.vpcId}} {{searchable-select class="form-control" content=vpcChoices value=config.vpcId }} {{/input-or-display}}
{{#input-or-display editable=(and (eq step 2) isNew) value=config.clusterCidr}} {{input type="text" value=config.clusterCidr placeholder=(t 'clusterNew.tencenttke.cidr.placeholder')}} {{/input-or-display}}
{{/accordion-list-item}} {{#if (eq step 2)}} {{save-cancel editing=(eq mode 'edit') save="loadNodeConfig" cancel=close createLabel="clusterNew.tencenttke.cluster.next" savingLabel="clusterNew.tencenttke.cluster.loading" }} {{/if}} {{/if}} {{#if (gte step 3)}} {{#accordion-list-item title=(t 'clusterNew.tencenttke.node.title') detail=(t 'clusterNew.tencenttke.node.detail') showExpand=false expandOnInit=true expandAll=al.expandAll expand=(action expandFn) }}
{{#if (and (eq step 3) isNew)}} {{searchable-select class="form-control" content=zoneChoices value=config.zoneId }} {{else}}
{{selectedZone.label}}
{{/if}}
{{#input-or-display editable=(and (eq step 3) isNew) value=config.subnetId}} {{searchable-select class="form-control" content=subnetChoices value=config.subnetId }} {{/input-or-display}}
{{#input-or-display editable=(and (eq step 3) isNew) value=config.instanceType}} {{searchable-select class="form-control" content=instanceChoices value=config.instanceType }} {{/input-or-display}}
{{/accordion-list-item}} {{#if (eq step 3)}} {{save-cancel editing=(eq mode 'edit') save="loadInstanceConfig" cancel=close createLabel="clusterNew.tencenttke.node.next" savingLabel="clusterNew.tencenttke.node.loading" }} {{/if}} {{/if}} {{#if (gte step 4)}} {{#accordion-list-item title=(t 'clusterNew.tencenttke.instance.title') detail=(t 'clusterNew.tencenttke.instance.detail') showExpand=false expandOnInit=true expandAll=al.expandAll expand=(action expandFn) }}
{{#input-or-display editable=isNew value=config.osName}} {{searchable-select class="form-control" content=osChoices value=config.osName }} {{/input-or-display}}
{{#input-or-display editable=isNew value=config.sgId}} {{searchable-select class="form-control" content=sgChoices value=config.sgId }} {{/input-or-display}}
{{#input-or-display editable=isNew value=config.rootType}} {{searchable-select class="form-control" content=rootDiskChoices localizedLabel=true value=config.rootType }} {{/input-or-display}}
{{#input-or-display editable=isNew value=config.rootSize}} {{input-integer min=20 max=50 value=config.rootSize classNames="form-control" placeholder=(t 'clusterNew.tencenttke.rootSize.placeholder')}} {{/input-or-display}} {{t 'generic.gigabyte'}}
{{#input-or-display editable=isNew value=config.storageType}} {{searchable-select class="form-control" content=storageDiskChoices localizedLabel=true value=config.storageType }} {{/input-or-display}}
{{#input-or-display editable=isNew value=config.storageSize}} {{input-integer min=0 value=config.storageSize classNames="form-control" placeholder=(t 'clusterNew.tencenttke.storageSize.placeholder')}} {{/input-or-display}} {{t 'generic.gigabyte'}}
{{#input-or-display editable=isNew value=config.bandwidthType}} {{searchable-select class="form-control" content=bandWidthChoices localizedLabel=true value=config.bandwidthType }} {{/input-or-display}}
{{#input-or-display editable=isNew value=config.bandwidth}} {{input-integer min=0 value=config.bandwidth classNames="form-control" placeholder=(t 'clusterNew.tencenttke.bandwidth.placeholder')}} {{/input-or-display}} {{t 'generic.mbps'}}
{{#input-or-display editable=isNew value=config.keyId}} {{searchable-select class="form-control" content=keyChoices value=config.keyId }} {{/input-or-display}}
{{/accordion-list-item}} {{save-cancel editing=(eq mode 'edit') save="save" cancel=close }} {{/if}} {{top-errors errors=errors}} {{top-errors errors=otherErrors}} {{top-errors errors=clusterErrors}} {{/accordion-list}}