mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-20 23:39:56 +01:00
feat(inventory): add File type
This commit is contained in:
parent
472aa30d61
commit
c4a6eebf9f
@ -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
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user