Semaphore/public/html/playbook/add.jade

38 lines
1.6 KiB
Plaintext
Raw Normal View History

h1
span(ng-if="!playbook.data._id") Add Playbook
span(ng-if="playbook.data._id.length > 0") Edit Playbook
2014-08-25 01:02:34 +02:00
.row
div(ng-class="{ 'col-md-6': !playbook.data._id, 'col-md-12': playbook.data._id.length > 0 }")
.panel.panel-default
.panel-body
form.form-horizontal(name="playbookForm")
.form-group
label.control-label.col-sm-4 Name
.col-sm-7
input.form-control(type="text" placeholder="Playbook Name" ng-model="playbook.data.name" required autofocus)
2014-08-25 01:02:34 +02:00
.form-group
label.control-label.col-sm-4 Playbook Location
.col-sm-7
input.form-control(type="text" placeholder="Playbook Git URL" ng-model="playbook.data.location" required)
2014-08-25 01:02:34 +02:00
.form-group
label.control-label.col-sm-4 Vault Password
.col-sm-7
input.form-control(type="text" placeholder="Vault Password" ng-model="playbook.data.vault_password")
.form-group
label.control-label.col-sm-4 Identity
.col-sm-7
select.form-control(ng-options="identity._id as identity.name for identity in identities" ng-model="playbook.data.identity")
option(value="") None Selected
.form-group
.col-sm-7.col-sm-offset-4
button.btn.btn-success(ng-click="add()" ng-disabled="playbookForm.$invalid")
span(ng-if="!playbook.data._id") Add
span(ng-if="playbook.data._id.length > 0") Edit
a.btn.btn-danger(ng-if="playbook.data._id.length > 0" ng-click="delete()" style="margin-left: 10px;") Delete
.col-md-6(ng-if="!playbook.data._id")
2015-01-31 00:15:07 +01:00
p.lead It is recommended you create an identity before creating playbooks.