Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add/Update Template dialog: Add Template ID field, mark some fields as required #262

Merged
merged 1 commit into from
Feb 22, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions public/html/projects/templates/add.jade
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,28 @@
.col-sm-6
input.form-control(type="text" placeholder="USA Servers" ng-model="tpl.alias")

.form-group
label.control-label.col-sm-4 Template ID
.col-sm-6
input.form-control(type="text" readonly="readonly" ng-model="tpl.id")

.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
label.control-label.col-sm-4 SSH Key
label.control-label.col-sm-4 SSH Key*
.col-sm-6
select.form-control(ng-model="tpl.ssh_key_id" ng-options="key.id as key.name disable when key.removed for key in keys")
option(value="") -- Select SSH Key --
.form-group
label.control-label.col-sm-4 Inventory
label.control-label.col-sm-4 Inventory*
.col-sm-6
select.form-control(ng-model="tpl.inventory_id" ng-options="inv.id as inv.name disable when inv.removed for inv in inventory")
option(value="") -- Select Inventory --
.form-group
label.control-label.col-sm-4 Playbook Repository
label.control-label.col-sm-4 Playbook Repository*
.col-sm-6
select.form-control(ng-model="tpl.repository_id" ng-options="repo.id as repo.name disable when repo.removed for repo in repositories")
option(value="") -- Select Playbook Repository --
Expand All @@ -34,6 +39,8 @@
.col-sm-6
select.form-control(ng-model="tpl.environment_id" ng-options="env.id as env.name disable when env.removed for env in environment")
option(value="") -- Select Task Environment --
.form-group
label.control-label.col-sm-4 (*) fields are required

hr
.form-group
Expand Down