2014-08-25 21:41:05 +02:00
|
|
|
h2 Jobs
|
2014-08-25 21:55:38 +02:00
|
|
|
button.btn.btn-default.pull-right(ng-click="add()") Add Job
|
2014-08-25 21:41:05 +02:00
|
|
|
|
2014-08-30 20:05:44 +02:00
|
|
|
table.table.table-hover
|
|
|
|
thead
|
|
|
|
tr
|
|
|
|
th Job Name
|
|
|
|
th Play File
|
|
|
|
th
|
|
|
|
tbody
|
|
|
|
tr(ng-repeat="job in jobs.jobs")
|
|
|
|
td {{ job.data.name }}
|
|
|
|
td {{ job.data.play_file }}
|
|
|
|
td
|
|
|
|
.btn-group.pull-right
|
|
|
|
button.btn.btn-default(ng-click="runJob(job)"): i.fa.fa-fw.fa-play
|
|
|
|
button.btn.btn-danger(ng-click="deleteJob(job)"): i.fa.fa-trash-o.fa-fw
|
2014-08-25 21:55:38 +02:00
|
|
|
|
|
|
|
#addJob.modal.fade
|
|
|
|
.modal-dialog
|
|
|
|
.modal-content(ng-controller="AddJobCtrl")
|
|
|
|
.modal-header
|
|
|
|
button(data-dismiss="modal").close: span ×
|
|
|
|
h4.modal-title Add Job
|
|
|
|
.modal-body
|
|
|
|
form.form-horizontal
|
|
|
|
.form-group
|
|
|
|
label.control-label.col-sm-4 Name
|
|
|
|
.col-sm-7
|
|
|
|
input.form-control(type="text" placeholder="Group Name" ng-model="job.data.name")
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
label.control-label.col-sm-4 Play
|
|
|
|
.col-sm-7
|
|
|
|
input.form-control(type="text" placeholder="myplay.yml" ng-model="job.data.play_file")
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
.col-sm-7.col-sm-offset-4
|
|
|
|
.checkbox
|
|
|
|
label
|
|
|
|
input(type="checkbox" ng-model="job.data.use_vault")
|
|
|
|
| Use Vault
|
2015-01-30 16:41:49 +01:00
|
|
|
|
2014-08-25 21:55:38 +02:00
|
|
|
.form-group
|
|
|
|
.col-sm-7.col-sm-offset-4
|
2015-01-30 16:41:49 +01:00
|
|
|
button.btn.btn-default(ng-click="add()") Add Job
|
|
|
|
|
|
|
|
blockquote Jobs tell Semaphore which task file to run in your playbook.
|