Semaphore/lib/views/job/jobs.jade
Matej Kramny dc2dac98ad Edit playbooks, help texts
- Remove 'credential' in favour of Identity
- Add help texts for playbooks, identities.
- Fix adding Playbooks (identities)
- Editing playbooks now possible
- Improves Vagrantfile to accomodate development (suitable for production also)
2015-01-30 15:41:49 +00:00

48 lines
1.3 KiB
Plaintext

h2 Jobs
button.btn.btn-default.pull-right(ng-click="add()") Add Job
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
#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
.form-group
.col-sm-7.col-sm-offset-4
button.btn.btn-default(ng-click="add()") Add Job
blockquote Jobs tell Semaphore which task file to run in your playbook.