feat(inventory): add File type

This commit is contained in:
Denis Gukov 2017-10-26 12:30:15 +05:00
parent 472aa30d61
commit c4a6eebf9f
2 changed files with 8 additions and 2 deletions

View File

@ -12,12 +12,18 @@
.form-group
label.control-label.col-sm-4 Type
.col-sm-6
select.form-control(ng-model="inventory.type" ng-init="inventory.type = 'static'")
select.form-control(ng-model="inventory.type" ng-init="inventory.type = inventory.type || 'static'")
option(value="static") Static
option(value="file") File
option(disabled value="aws") AWS
option(disabled value="do") DigitalOcean
option(disabled value="gcloud") Google Cloud
.form-group(ng-if="inventory.type == 'file'")
label.control-label.col-sm-4 Path to inventory file
.col-sm-6
input.form-control(type="text" ng-model="inventory.inventory")
.form-group(ng-if="inventory.type != 'static' && inventory.type != 'file'")
label.control-label.col-sm-4 Remote inventory key
.col-sm-6

View File

@ -6,4 +6,4 @@ table.table.table-hover
td
code {{ inv.type }}
|   {{ inv.name }}
button.btn.btn-info.btn-xs.pull-right(ng-click="editContent(inv); $event.stopPropagation();") edit inventory content
button.btn.btn-info.btn-xs.pull-right(ng-if="inv.type != 'file'" ng-click="editContent(inv); $event.stopPropagation();") edit inventory content