-
-
Notifications
You must be signed in to change notification settings - Fork 998
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #458 from twhiston/cmd_environment_vars
Add environment key ENV
- Loading branch information
Showing
2 changed files
with
60 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
.modal-header | ||
h4.modal-title | ||
span(ng-if="!env.id") New Environment | ||
span(ng-if="env.id") Edit Environment | ||
h4.modal-title | ||
span(ng-if="!env.id") New Environment | ||
span(ng-if="env.id") Edit Environment | ||
|
||
.modal-body | ||
form.form-horizontal | ||
label.control-label Environment Name | ||
input.form-control(type="text" ng-model="env.name" placeholder="Friendly name to identify your environment") | ||
form.form-horizontal | ||
label.control-label Environment Name | ||
input.form-control(type="text" ng-model="env.name" placeholder="Friendly name to identify your environment") | ||
|
||
label.control-label Environment (This has to be a JSON object) | ||
div(ui-ace="{mode: 'json', workerPath: '/public/js/ace/'}" class="form-control" style="height: 200px" ng-model="env.json") | ||
p.help-block Must be valid JSON | ||
label.control-label Environment (This has to be a JSON object) | ||
div(ui-ace="{mode: 'json', workerPath: '/public/js/ace/'}" class="form-control" style="height: 200px" ng-model="env.json") | ||
p.help-block | ||
| Must be valid JSON. | ||
| You may use the key ENV to pass a json object which sets environmental | ||
| variables for the ansible command execution environment | ||
|
||
.modal-footer | ||
button.btn.btn-default.pull-left(ng-click="$dismiss()") Dismiss | ||
button.btn.btn-danger(ng-click="$close({ remove: true })") Delete | ||
button.btn.btn-success(ng-click="$close({ environment: env })") | ||
span(ng-if="!env.id") Create | ||
span(ng-if="env.id") Update | ||
button.btn.btn-default.pull-left(ng-click="$dismiss()") Dismiss | ||
button.btn.btn-danger(ng-click="$close({ remove: true })") Delete | ||
button.btn.btn-success(ng-click="$close({ environment: env })") | ||
span(ng-if="!env.id") Create | ||
span(ng-if="env.id") Update |