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">
|
||||
<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}}
|
||||
<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">
|
||||
<span>{{t 'machine.driverDigitalocean.accountSection'}}</span>
|
||||
|
|
|
|||
|
|
@ -3,12 +3,4 @@ import Ember from 'ember';
|
|||
export default Ember.Controller.extend({
|
||||
hostTemplate: Ember.computed.alias('model.template'),
|
||||
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)
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
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
|
||||
host=model.host
|
||||
hostTemplate=model.template
|
||||
cancel=(action 'cancel')
|
||||
cancel=(route-action 'cancel')
|
||||
goBack=(route-action 'goBack')
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -1,55 +1,14 @@
|
|||
<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">
|
||||
<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>
|
||||
<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>
|
||||
|
|
@ -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 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">
|
||||
<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>
|
||||
<label for="">{{t 'hostsPage.cloudHostsPage.addPage.instance'}}</label>
|
||||
{{hostOptions.size}}
|
||||
</div>
|
||||
<hr/>
|
||||
<div>
|
||||
<label for="">{{t 'hostsPage.cloudHostsPage.addPage.zone'}}</label>
|
||||
{{hostOptions.region}}
|
||||
</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:'
|
||||
transfer: 'Transfer:'
|
||||
zone: 'Zone:'
|
||||
env: 'Environment:'
|
||||
size: 'Size:'
|
||||
os: 'OS:'
|
||||
tabs:
|
||||
fav: Favorites
|
||||
browse: Browse
|
||||
|
|
|
|||
Loading…
Reference in New Issue