2016-04-11 18:54:35 +02:00
|
|
|
.modal-header
|
|
|
|
h4.modal-title New Inventory
|
|
|
|
.modal-body
|
|
|
|
form.form-horizontal
|
|
|
|
.form-group
|
|
|
|
label.control-label.col-sm-4 Name
|
|
|
|
.col-sm-6
|
2016-04-16 21:42:57 +02:00
|
|
|
input.form-control(type="text" ng-model="inventory.name" placeholder="Inventory Name")
|
2016-04-11 18:54:35 +02:00
|
|
|
|
|
|
|
.form-group
|
|
|
|
label.control-label.col-sm-4 Type
|
|
|
|
.col-sm-6
|
2016-04-16 21:42:57 +02:00
|
|
|
select.form-control(ng-model="inventory.type" ng-init="inventory.type = 'static'")
|
2016-04-11 18:54:35 +02:00
|
|
|
option(value="static") Static
|
|
|
|
option(disabled value="aws") AWS
|
|
|
|
option(disabled value="do") DigitalOcean
|
|
|
|
option(disabled value="gcloud") Google Cloud
|
2016-04-16 21:42:57 +02:00
|
|
|
.form-group(ng-if="inventory.type != 'static'")
|
2016-04-11 18:54:35 +02:00
|
|
|
label.control-label.col-sm-4 Remote inventory key
|
|
|
|
.col-sm-6
|
|
|
|
select.form-control(ng-model="inventory.key_id" ng-options="key.id as key.name for key in remote_keys")
|
|
|
|
option(value="") -- Select Key --
|
2016-04-16 21:42:57 +02:00
|
|
|
|
2016-04-11 18:54:35 +02:00
|
|
|
.form-group
|
|
|
|
label.control-label.col-sm-4 SSH Key
|
|
|
|
.col-sm-6
|
|
|
|
select.form-control(ng-model="inventory.ssh_key_id" ng-options="key.id as key.name for key in sshKeys")
|
|
|
|
option(value="") -- Select SSH Key --
|
2016-04-16 21:42:57 +02:00
|
|
|
p.help-block Used to log into the servers in this inventory
|
2016-04-11 18:54:35 +02:00
|
|
|
|
|
|
|
.modal-footer
|
|
|
|
button.btn.btn-default.pull-left(ng-click="$dismiss()") Dismiss
|
|
|
|
button.btn.btn-success(ng-click="$close(inventory)") Create
|