mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-20 15:29:28 +01:00
Replace textarea elements to ui-ace
This commit is contained in:
parent
34c95b419f
commit
7cc879595e
@ -10,9 +10,9 @@
|
||||
.col-sm-6
|
||||
input.form-control(type="text" placeholder="Enter playbook name to override template" ng-model="task.playbook")
|
||||
.form-group
|
||||
label.control-label.col-sm-4 Environment Override
|
||||
label.control-label.col-sm-4 Environment Override (*MUST* be valid JSON)
|
||||
.col-sm-6
|
||||
textarea.form-control(rows="10" placeholder="Override playbook environment, *MUST* be valid JSON" ng-model="task.environment")
|
||||
div(ui-ace="{mode: 'json', showGutter: false}" class="form-control" style="height: 100px" ng-model="task.environment")
|
||||
.form-group
|
||||
.col-sm-6.col-sm-offset-4: .checkbox: label
|
||||
input(type="checkbox" ng-model="task.debug")
|
||||
|
@ -9,7 +9,8 @@
|
||||
input.form-control(type="text" ng-model="env.name" placeholder="Friendly name to identify your environment")
|
||||
|
||||
label.control-label Environment
|
||||
textarea.form-control(ng-model="env.json" rows="20" placeholder="This has to be a JSON object")
|
||||
div(ui-ace=true class="form-control" style="height: 200px" ng-model="env.json")
|
||||
//textarea.form-control(ng-model="env.json" rows="20" placeholder="This has to be a JSON object")
|
||||
p.help-block Must be valid JSON
|
||||
|
||||
.modal-footer
|
||||
|
@ -1,9 +1,8 @@
|
||||
.modal-header
|
||||
h3.modal-title Edit Inventory
|
||||
|
||||
.modal-body
|
||||
//textarea.form-control(ng-model="inventory" rows="20")
|
||||
div(ui-ace=true style="height: 200px" ng-model="inventory")
|
||||
.modal-body(style="padding: 0")
|
||||
div(ui-ace="{mode: 'json'}" style="height: 200px" ng-model="inventory")
|
||||
.modal-footer
|
||||
button.btn.btn-default.pull-left(ng-click="$dismiss()") Cancel
|
||||
button.btn.btn-success(ng-click="$close(inventory)") Save Changes
|
@ -44,9 +44,10 @@
|
||||
|
||||
hr
|
||||
.form-group
|
||||
label.control-label.col-sm-4 Extra CLI Arguments
|
||||
label.control-label.col-sm-4 Extra CLI Arguments (*MUST* be a JSON array!)
|
||||
.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")
|
||||
div(ui-ace="{mode: 'json', showGutter: false}" style="height: 100px" class="form-control" ng-model="task.environment")
|
||||
//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
|
||||
|
Loading…
Reference in New Issue
Block a user