mirror of https://github.com/rancher/ui.git
72 lines
2.1 KiB
Handlebars
72 lines
2.1 KiB
Handlebars
<section class="horizontal-form">
|
|
<div class="container-fluid">
|
|
{{#if showNameScale}}
|
|
<div class="box mt-20">
|
|
<h4>{{t 'machine.driverOther.instanceSection'}}</h4>
|
|
<div class="row mb-20">
|
|
<div class="row">
|
|
<div class="col span-11-of-23 mt-0 mb-0">
|
|
{{form-name-description
|
|
name=prefix
|
|
nameRequired=true
|
|
namePlaceholder="hostsPage.new.name.placeholder"
|
|
nameHelpText=nameCountLabel
|
|
descriptionShown=true
|
|
}}
|
|
</div>
|
|
<div class="col span-11-of-23 mt-0 mb-0 offset-1-of-23">
|
|
{{form-count
|
|
min=0
|
|
initialScale=1
|
|
setScale=(action (mut count))
|
|
}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
|
|
<div class="row inline-form box mt-20">
|
|
<h4>{{t 'machine.driverOther.driverSection'}}</h4>
|
|
<label class="acc-label">{{t 'machine.driverOther.driver.label'}}{{field-required}}</label>
|
|
{{new-select
|
|
classNames="form-control"
|
|
content=otherChoices
|
|
value=otherDriver
|
|
}}
|
|
|
|
|
|
<h4 class="mt-30">{{t 'machine.driverOther.optionsSection' driverName=(str-replace driver match="Config" with="")}}</h4>
|
|
{{#each fieldNames as |fieldName|}}
|
|
{{api-field
|
|
resource=driverOpts
|
|
resourceType=otherDriver
|
|
field=fieldName
|
|
value=(get driverOpts fieldName)
|
|
schemas=schemas
|
|
typeDocs=typeDocumentations
|
|
}}
|
|
{{/each}}
|
|
</div>
|
|
|
|
|
|
<div class="over-hr mt-20 mb-20">
|
|
<span>{{settings.appName}}</span>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col span-12">
|
|
{{form-user-labels initialLabels=labelResource.labels setLabels=(action 'setLabels') expandAll=null}}
|
|
</div>
|
|
</div>
|
|
|
|
{{#advanced-section}}
|
|
{{limit-parameters model=model}}
|
|
{{form-engine-opts machine=model showEngineUrl=showEngineUrl}}
|
|
{{/advanced-section}}
|
|
</div>
|
|
|
|
{{top-errors errors=errors}}
|
|
{{save-cancel save="save" cancel="cancel"}}
|
|
</section>
|