2016-04-11 12:02:10 +02:00
|
|
|
.modal-header
|
2016-06-14 04:37:40 +02:00
|
|
|
h4.modal-title
|
2016-06-17 22:16:46 +02:00
|
|
|
span(ng-if="!repo.id") Create Repository
|
|
|
|
span(ng-if="repo.id") Update Repository
|
2016-06-14 04:37:40 +02:00
|
|
|
|
2016-04-11 12:02:10 +02:00
|
|
|
.modal-body
|
|
|
|
form.form-horizontal
|
|
|
|
.form-group
|
|
|
|
label.control-label.col-sm-4 Name
|
|
|
|
.col-sm-6
|
|
|
|
input.form-control(type="text" ng-model="repo.name" placeholder="Friendly Repository Name")
|
|
|
|
.form-group
|
|
|
|
label.control-label.col-sm-4 Repository
|
|
|
|
.col-sm-6
|
|
|
|
input.form-control(type="text" ng-model="repo.git_url" placeholder="git@github.com:user/repo.git")
|
|
|
|
.form-group
|
|
|
|
label.control-label.col-sm-4 SSH Key
|
|
|
|
.col-sm-6
|
|
|
|
select.form-control(ng-model="repo.ssh_key_id" ng-options="key.id as key.name for key in keys")
|
|
|
|
option(value="") -- Select SSH Key --
|
2016-06-14 04:37:40 +02:00
|
|
|
|
2016-04-11 12:02:10 +02:00
|
|
|
.modal-footer
|
|
|
|
button.btn.btn-default.pull-left(ng-click="$dismiss()") Dismiss
|
2016-06-17 22:16:46 +02:00
|
|
|
button.btn.btn-danger(ng-if="repo.id" ng-click="$close({ remove: true })") Delete
|
|
|
|
button.btn.btn-success(ng-click="$close({ repo: repo })")
|
|
|
|
span(ng-if="!repo.id") Create
|
|
|
|
span(ng-if="repo.id") Update
|