2014-09-30 20:29:32 +00:00
|
|
|
<!-- Modal message dialog -->
|
2015-08-20 23:24:51 +00:00
|
|
|
<div class="modal fade startTriggerDialog">
|
2014-09-30 20:29:32 +00:00
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
2015-04-01 18:21:19 +00:00
|
|
|
<h4 class="modal-title">Manually Start Build Trigger</h4>
|
2014-09-30 20:29:32 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="trigger-description" trigger="trigger"></div>
|
2014-11-24 21:07:38 +00:00
|
|
|
|
2014-09-30 20:29:32 +00:00
|
|
|
<form name="runForm" id="runForm">
|
|
|
|
<table width="100%">
|
|
|
|
<tr ng-repeat="field in runParameters">
|
2015-06-19 16:54:39 +00:00
|
|
|
<td class="field-title" valign="middle">{{ field.title }}:</td>
|
2014-09-30 20:29:32 +00:00
|
|
|
<td>
|
|
|
|
<div ng-switch on="field.type">
|
2015-06-19 16:54:39 +00:00
|
|
|
<!-- Autocomplete -->
|
|
|
|
<div ng-switch-when="autocomplete">
|
|
|
|
<span class="cor-loader-inline" ng-show="!fieldOptions[field.name]"></span>
|
|
|
|
<div class="dropdown-select-direct"
|
|
|
|
placeholder="'Enter or select ' + field.title"
|
|
|
|
selected-item="parameters[field.name]"
|
|
|
|
value-key="name"
|
|
|
|
title-key="name"
|
|
|
|
icon-key="kind"
|
|
|
|
icon-map="field.iconMap"
|
|
|
|
items="fieldOptions[field.name]"
|
2017-03-08 01:39:57 +00:00
|
|
|
ng-show="fieldOptions[field.name]"
|
|
|
|
clear-value="counter"></div>
|
2015-06-19 16:54:39 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Option -->
|
|
|
|
<div ng-switch-when="option">
|
|
|
|
<span class="cor-loader-inline" ng-show="!fieldOptions[field.name]"></span>
|
2014-09-30 20:29:32 +00:00
|
|
|
<select ng-model="parameters[field.name]" ng-show="fieldOptions[field.name]"
|
2015-04-22 17:22:04 +00:00
|
|
|
ng-options="value for value in fieldOptions[field.name]"
|
2014-09-30 20:29:32 +00:00
|
|
|
required>
|
|
|
|
</select>
|
2015-06-19 16:54:39 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- String -->
|
2014-09-30 20:29:32 +00:00
|
|
|
<input type="text" class="form-control" ng-model="parameters[field.name]" ng-switch-when="string" required>
|
2015-06-19 16:54:39 +00:00
|
|
|
|
|
|
|
<!-- Regex -->
|
2015-04-22 17:22:04 +00:00
|
|
|
<div ng-switch-when="regex">
|
|
|
|
<input type="text" class="form-control" ng-model="parameters[field.name]"
|
|
|
|
ng-pattern="getPattern(field)"
|
|
|
|
placeholder="{{ field.placeholder }}"
|
|
|
|
ng-name="field.name"
|
|
|
|
id="{{ field.name }}"
|
|
|
|
required>
|
|
|
|
</div>
|
2014-09-30 20:29:32 +00:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-primary" ng-disabled="runForm.$invalid" ng-click="startTrigger()">Start Build</button>
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
2014-11-24 21:07:38 +00:00
|
|
|
</div><!-- /.modal -->
|