Semaphore/public/html/projects/inventory/add.jade
Matej Kramny ea0245b550 Events
- Complete more UI work
- Show events on dashboard & project dashboard
- Show list of tasks
2016-04-16 20:42:57 +01:00

33 lines
1.2 KiB
Plaintext

.modal-header
h4.modal-title New Inventory
.modal-body
form.form-horizontal
.form-group
label.control-label.col-sm-4 Name
.col-sm-6
input.form-control(type="text" ng-model="inventory.name" placeholder="Inventory Name")
.form-group
label.control-label.col-sm-4 Type
.col-sm-6
select.form-control(ng-model="inventory.type" ng-init="inventory.type = 'static'")
option(value="static") Static
option(disabled value="aws") AWS
option(disabled value="do") DigitalOcean
option(disabled value="gcloud") Google Cloud
.form-group(ng-if="inventory.type != 'static'")
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 --
.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 --
p.help-block Used to log into the servers in this inventory
.modal-footer
button.btn.btn-default.pull-left(ng-click="$dismiss()") Dismiss
button.btn.btn-success(ng-click="$close(inventory)") Create