mirror of https://github.com/rancher/ui.git
Working changes for host launch templates and packet driver
This commit is contained in:
parent
a3ca4aa4a2
commit
e51a6f63e6
|
|
@ -1 +1 @@
|
||||||
{{partial (concat 'host/host-templates/' hostTemplate.driver)}}
|
{{partial 'host/host-templates/host-launch'}}
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,20 @@
|
||||||
<section class="horizontal-form">
|
<section class="horizontal-form">
|
||||||
|
<div class="over-hr mt-20 mb-20">
|
||||||
|
<span>{{t 'machine.driverDigitalocean.instanceSection'}}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row mb-20">
|
||||||
|
{{form-name-description
|
||||||
|
name=model.name
|
||||||
|
description=model.description
|
||||||
|
nameRequired=true
|
||||||
|
namePlaceholder="hostPartial.host.addCommon.new.form.name.placeholder"
|
||||||
|
descriptionShown=true
|
||||||
|
descriptionExpanded=true
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
{{#if step1}}
|
{{#if step1}}
|
||||||
<form>
|
<form>
|
||||||
<div class="over-hr mt-20 mb-20">
|
|
||||||
<span>{{t 'machine.driverDigitalocean.instanceSection'}}</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row mb-20">
|
|
||||||
{{form-name-description
|
|
||||||
name=model.name
|
|
||||||
description=model.description
|
|
||||||
nameRequired=true
|
|
||||||
namePlaceholder="hostPartial.host.addCommon.new.form.name.placeholder"
|
|
||||||
descriptionShown=true
|
|
||||||
descriptionExpanded=true
|
|
||||||
}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="over-hr mb-20">
|
<div class="over-hr mb-20">
|
||||||
<span>{{t 'machine.driverDigitalocean.accountSection'}}</span>
|
<span>{{t 'machine.driverDigitalocean.accountSection'}}</span>
|
||||||
|
|
|
||||||
|
|
@ -3,12 +3,4 @@ import Ember from 'ember';
|
||||||
export default Ember.Controller.extend({
|
export default Ember.Controller.extend({
|
||||||
hostTemplate: Ember.computed.alias('model.template'),
|
hostTemplate: Ember.computed.alias('model.template'),
|
||||||
machineConfig: Ember.computed.alias('model.config'),
|
machineConfig: Ember.computed.alias('model.config'),
|
||||||
actions: {
|
|
||||||
save() {
|
|
||||||
debugger;
|
|
||||||
},
|
|
||||||
cancel() {
|
|
||||||
this.transitionToRoute('hosts.templates.index');
|
|
||||||
},
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -20,5 +20,17 @@ export default Ember.Route.extend({
|
||||||
host: this.get('store').createRecord(tmp)
|
host: this.get('store').createRecord(tmp)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
|
actions: {
|
||||||
|
cancel() {
|
||||||
|
this.transitionTo('hosts.templates.index');
|
||||||
|
},
|
||||||
|
goBack() {
|
||||||
|
if ( this.get('backTo') === 'waiting' ) {
|
||||||
|
this.transitionTo('authenticated.project.waiting');
|
||||||
|
} else {
|
||||||
|
this.transitionTo('hosts');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{{cloud-host-add-or-edit
|
{{cloud-host-add-or-edit
|
||||||
host=model.host
|
host=model.host
|
||||||
hostTemplate=model.template
|
hostTemplate=model.template
|
||||||
cancel=(action 'cancel')
|
cancel=(route-action 'cancel')
|
||||||
|
goBack=(route-action 'goBack')
|
||||||
}}
|
}}
|
||||||
|
|
|
||||||
|
|
@ -1,55 +1,14 @@
|
||||||
<div class="hosts-cloud-add">
|
<div>
|
||||||
<section class="header clearfix">
|
<label for="">{{t 'hostsPage.cloudHostsPage.addPage.instance'}}</label>
|
||||||
<div class="row">
|
{{hostOptions.instanceType}}
|
||||||
<div class="mb-0">
|
</div>
|
||||||
<h1>
|
<hr/>
|
||||||
{{t 'hostsPage.cloudHostsPage.addPage.header'}}
|
<div>
|
||||||
</h1>
|
<label for="">{{t 'hostsPage.cloudHostsPage.addPage.zone'}}</label>
|
||||||
</div>
|
{{hostOptions.region}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
<hr/>
|
||||||
|
<div>
|
||||||
<section class="mt-20">
|
<label for="">{{t 'hostsPage.cloudHostsPage.addPage.storage'}}</label>
|
||||||
<form>
|
{{hostOptions.rootSize}}
|
||||||
<section class="horizontal-form">
|
|
||||||
<div class="row addtl-info">
|
|
||||||
<div class="col span-4">
|
|
||||||
<div class="nav-boxes driver">
|
|
||||||
<div class="nav-box-item driver machine-driver active {{parse-host-icon hostTemplate.driver}}"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col span-8">
|
|
||||||
<div>
|
|
||||||
<label for="">{{t 'hostsPage.cloudHostsPage.addPage.instance'}}</label>
|
|
||||||
{{hostOptions.instanceType}}
|
|
||||||
</div>
|
|
||||||
<hr/>
|
|
||||||
<div>
|
|
||||||
<label for="">{{t 'hostsPage.cloudHostsPage.addPage.zone'}}</label>
|
|
||||||
{{hostOptions.region}}
|
|
||||||
</div>
|
|
||||||
<hr/>
|
|
||||||
<div>
|
|
||||||
<label for="">{{t 'hostsPage.cloudHostsPage.addPage.storage'}}</label>
|
|
||||||
{{hostOptions.rootSize}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="container-fluid">
|
|
||||||
{{partial "host/add-common"}}
|
|
||||||
<hr />
|
|
||||||
<div class="row">
|
|
||||||
<div class="col span-12">
|
|
||||||
{{#advanced-section}}
|
|
||||||
{{form-user-labels initialLabels=clonedModel.labels setLabels=(action 'setLabels') expandAll=null}}
|
|
||||||
{{/advanced-section}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{top-errors errors=errors}}
|
|
||||||
{{save-cancel save="save" cancel="cancel" createLabel='hostsPage.cloudHostsPage.addPage.launch'}}
|
|
||||||
</section>
|
|
||||||
|
|
||||||
</form>
|
|
||||||
</section>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
<div>
|
||||||
|
<label for="">{{t 'hostsPage.cloudHostsPage.addPage.zone'}}</label>
|
||||||
|
{{hostOptions.location}}
|
||||||
|
</div>
|
||||||
|
<hr/>
|
||||||
|
<div>
|
||||||
|
<label for="">{{t 'hostsPage.cloudHostsPage.addPage.env'}}</label>
|
||||||
|
{{hostOptions.environment}}
|
||||||
|
</div>
|
||||||
|
<hr/>
|
||||||
|
<div>
|
||||||
|
<label for="">{{t 'hostsPage.cloudHostsPage.addPage.size'}}</label>
|
||||||
|
{{hostOptions.size}}
|
||||||
|
</div>
|
||||||
|
|
@ -1,51 +1,9 @@
|
||||||
{{log hostOptions}}
|
<div>
|
||||||
<div class="hosts-cloud-add">
|
<label for="">{{t 'hostsPage.cloudHostsPage.addPage.instance'}}</label>
|
||||||
<section class="header clearfix">
|
{{hostOptions.size}}
|
||||||
<div class="row">
|
</div>
|
||||||
<div class="mb-0">
|
<hr/>
|
||||||
<h1>
|
<div>
|
||||||
{{t 'hostsPage.cloudHostsPage.addPage.header'}}
|
<label for="">{{t 'hostsPage.cloudHostsPage.addPage.zone'}}</label>
|
||||||
</h1>
|
{{hostOptions.region}}
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section class="mt-20">
|
|
||||||
<form>
|
|
||||||
<section class="horizontal-form">
|
|
||||||
<div class="row addtl-info">
|
|
||||||
<div class="col span-4">
|
|
||||||
<div class="nav-boxes driver">
|
|
||||||
<div class="nav-box-item driver machine-driver active {{parse-host-icon hostTemplate.driver}}"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col span-8">
|
|
||||||
<div>
|
|
||||||
<label for="">{{t 'hostsPage.cloudHostsPage.addPage.instance'}}</label>
|
|
||||||
{{hostOptions.size}}
|
|
||||||
</div>
|
|
||||||
<hr/>
|
|
||||||
<div>
|
|
||||||
<label for="">{{t 'hostsPage.cloudHostsPage.addPage.zone'}}</label>
|
|
||||||
{{hostOptions.region}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="container-fluid">
|
|
||||||
{{partial "host/add-common"}}
|
|
||||||
<hr />
|
|
||||||
<div class="row">
|
|
||||||
<div class="col span-12">
|
|
||||||
{{#advanced-section}}
|
|
||||||
{{form-user-labels initialLabels=clonedModel.labels setLabels=(action 'setLabels') expandAll=null}}
|
|
||||||
{{/advanced-section}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{top-errors errors=errors}}
|
|
||||||
{{save-cancel save="save" cancel="cancel" createLabel='hostsPage.cloudHostsPage.addPage.launch'}}
|
|
||||||
</section>
|
|
||||||
|
|
||||||
</form>
|
|
||||||
</section>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -0,0 +1,42 @@
|
||||||
|
<div class="hosts-cloud-add">
|
||||||
|
<section class="header clearfix">
|
||||||
|
<div class="row">
|
||||||
|
<div class="mb-0">
|
||||||
|
<h1>
|
||||||
|
{{t 'hostsPage.cloudHostsPage.addPage.header'}}
|
||||||
|
</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="mt-20">
|
||||||
|
<form>
|
||||||
|
<section class="horizontal-form">
|
||||||
|
<div class="row addtl-info">
|
||||||
|
<div class="col span-4">
|
||||||
|
<div class="nav-boxes driver">
|
||||||
|
<div class="nav-box-item driver machine-driver active {{parse-host-icon hostTemplate.driver}}"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col span-8">
|
||||||
|
{{partial (concat 'host/host-templates/' hostTemplate.driver)}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="container-fluid">
|
||||||
|
{{partial "host/add-common"}}
|
||||||
|
<hr />
|
||||||
|
<div class="row">
|
||||||
|
<div class="col span-12">
|
||||||
|
{{#advanced-section}}
|
||||||
|
{{form-user-labels initialLabels=clonedModel.labels setLabels=(action 'setLabels') expandAll=null}}
|
||||||
|
{{/advanced-section}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{top-errors errors=errors}}
|
||||||
|
{{save-cancel save="save" cancel="cancel" createLabel='hostsPage.cloudHostsPage.addPage.launch'}}
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
<div>
|
||||||
|
<label for="">{{t 'hostsPage.cloudHostsPage.addPage.zone'}}</label>
|
||||||
|
{{hostOptions.facilityCode}}
|
||||||
|
</div>
|
||||||
|
<hr/>
|
||||||
|
<div>
|
||||||
|
<label for="">{{t 'hostsPage.cloudHostsPage.addPage.instance'}}</label>
|
||||||
|
{{hostOptions.plan}}
|
||||||
|
</div>
|
||||||
|
<hr/>
|
||||||
|
<div>
|
||||||
|
<label for="">{{t 'hostsPage.cloudHostsPage.addPage.os'}}</label>
|
||||||
|
{{hostOptions.os}}
|
||||||
|
</div>
|
||||||
|
|
@ -697,6 +697,9 @@ hostsPage:
|
||||||
storage: 'Storage:'
|
storage: 'Storage:'
|
||||||
transfer: 'Transfer:'
|
transfer: 'Transfer:'
|
||||||
zone: 'Zone:'
|
zone: 'Zone:'
|
||||||
|
env: 'Environment:'
|
||||||
|
size: 'Size:'
|
||||||
|
os: 'OS:'
|
||||||
tabs:
|
tabs:
|
||||||
fav: Favorites
|
fav: Favorites
|
||||||
browse: Browse
|
browse: Browse
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue