2016-04-11 12:02:10 +02:00
.modal-header
2016-06-17 22:16:46 +02:00
h4.modal-title
span(ng-if="!tpl.id") New Template
span(ng-if="tpl.id") Update Template
2016-04-11 12:02:10 +02:00
.modal-body
form.form-horizontal
2016-11-15 16:44:41 +01:00
.form-group
label.control-label.col-sm-4 Playbook Alias
.col-sm-6
input.form-control(type="text" placeholder="USA Servers" ng-model="tpl.alias")
2017-02-22 22:29:49 +01:00
.form-group(ng-if="tpl.id")
2017-02-12 03:15:05 +01:00
label.control-label.col-sm-4 Template ID
.col-sm-6
input.form-control(type="text" readonly="readonly" ng-model="tpl.id")
2016-04-11 12:02:10 +02:00
.form-group
label.control-label.col-sm-4 Playbook Name
.col-sm-6
input.form-control(type="text" placeholder="play.yml" ng-model="tpl.playbook")
.form-group
2017-02-12 03:15:05 +01:00
label.control-label.col-sm-4 SSH Key*
2016-04-11 12:02:10 +02:00
.col-sm-6
2016-06-17 22:16:46 +02:00
select.form-control(ng-model="tpl.ssh_key_id" ng-options="key.id as key.name disable when key.removed for key in keys")
2016-04-11 12:02:10 +02:00
option(value="") -- Select SSH Key --
.form-group
2017-02-12 03:15:05 +01:00
label.control-label.col-sm-4 Inventory*
2016-04-11 12:02:10 +02:00
.col-sm-6
2016-06-17 22:16:46 +02:00
select.form-control(ng-model="tpl.inventory_id" ng-options="inv.id as inv.name disable when inv.removed for inv in inventory")
2016-04-11 12:02:10 +02:00
option(value="") -- Select Inventory --
.form-group
2017-02-12 03:15:05 +01:00
label.control-label.col-sm-4 Playbook Repository*
2016-04-11 12:02:10 +02:00
.col-sm-6
2016-06-17 22:16:46 +02:00
select.form-control(ng-model="tpl.repository_id" ng-options="repo.id as repo.name disable when repo.removed for repo in repositories")
2016-04-11 12:02:10 +02:00
option(value="") -- Select Playbook Repository --
.form-group
label.control-label.col-sm-4 Environment
.col-sm-6
2016-06-17 22:16:46 +02:00
select.form-control(ng-model="tpl.environment_id" ng-options="env.id as env.name disable when env.removed for env in environment")
2016-04-11 12:02:10 +02:00
option(value="") -- Select Task Environment --
2017-02-12 03:15:05 +01:00
.form-group
2017-02-22 22:29:49 +01:00
label.control-label.col-sm-4(style="font-weight: normal;") (*) required fields
2016-04-11 12:02:10 +02:00
hr
.form-group
label.control-label.col-sm-4 Extra CLI Arguments
.col-sm-6
textarea.form-control(placeholder='*MUST* be a JSON array! Each argument must be an element of the array, for example: ["-i", "@myinventory.sh", "--private-key=/there/id_rsa", "-vvvv"]' ng-model="tpl.arguments" rows="5")
.form-group
.col-sm-6.col-sm-offset-4
.checkbox: label
input(type="checkbox" ng-model="user.admin")
| Override semaphore arguments
p.help-block Usually semaphore prepends arguments like `--private-key=/location/id_rsa` to make sure everything goes smoothly. This option is for special needs, where semaphore conflicts with one of your arguments.
.modal-footer
button.btn.btn-default.pull-left(ng-click="$dismiss()") Dismiss
2016-06-17 22:16:46 +02:00
button.btn.btn-danger(ng-if="tpl.id" ng-click="$close({ remove: true })") remove
button.btn.btn-success(ng-click="$close({ template: tpl })")
span(ng-if="!tpl.id") Create
2016-11-15 16:44:41 +01:00
span(ng-if="tpl.id") Update