|
|
<div class="modal-header">
|
|
|
<h3 class="m-t-0">Add issue to Jira</h3>
|
|
|
</div>
|
|
|
<div class="modal-body">
|
|
|
<div class="alert alert-danger" ng-repeat="msg in ctrl.error_messages">{{msg}}</div>
|
|
|
<div class="text-center" ng-show="ctrl.loading">
|
|
|
<span class="fa fa-cog fa-spin fa-5x loader m-a-4"></span>
|
|
|
</div>
|
|
|
|
|
|
<form role="form" ng-show="!ctrl.loading">
|
|
|
<div class="form-group">
|
|
|
<label for="issue_title">Issue Title</label>
|
|
|
<input type="text" class="form-control" id="issue_title" placeholder="Issue title" ng-model="ctrl.form.title">
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
<label for="issue_type">Issue Type</label>
|
|
|
<select class="form-control" id="issue_type" ng-options="i.name for i in ctrl.issue_types" ng-model="ctrl.form.issue_type"></select>
|
|
|
</div>
|
|
|
<div class="form-group row">
|
|
|
<div class="col-sm-6">
|
|
|
<label for="issue_priority">Priority</label>
|
|
|
<select class="form-control" id="issue_priority" ng-options="s.name for s in ctrl.priorities" ng-model="ctrl.form.priority"></select>
|
|
|
</div>
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
<label for="issue_responsible">Assignee</label>
|
|
|
<select class="form-control" id="issue_responsible" ng-options="a.name for a in ctrl.assignees" ng-model="ctrl.form.responsible"></select>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label for="issue_content">Description</label>
|
|
|
<textarea id="issue_content" class="form-control" ng-model="ctrl.form.content" style="min-height: 100px"></textarea>
|
|
|
</div>
|
|
|
</form>
|
|
|
|
|
|
</div>
|
|
|
<div class="modal-footer">
|
|
|
<button class="btn btn-primary" ng-click="ctrl.ok()">Add issue</button>
|
|
|
<button class="btn btn-warning" ng-click="ctrl.cancel()">Cancel</button>
|
|
|
</div>
|
|
|
|