Allow manual triggering of both branches and tags

Fixes #100
This commit is contained in:
Joseph Schorr 2015-06-19 12:54:39 -04:00
parent 82287926ab
commit 143036be9c
7 changed files with 312 additions and 56 deletions

View file

@ -12,18 +12,36 @@
<form name="runForm" id="runForm">
<table width="100%">
<tr ng-repeat="field in runParameters">
<td class="field-title" valign="top">{{ field.title }}:</td>
<td class="field-title" valign="middle">{{ field.title }}:</td>
<td>
<div ng-switch on="field.type">
<span ng-switch-when="option">
<span class="quay-spinner" ng-show="!fieldOptions[field.name]"></span>
<!-- 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]"
ng-show="fieldOptions[field.name]"></div>
</div>
<!-- Option -->
<div ng-switch-when="option">
<span class="cor-loader-inline" ng-show="!fieldOptions[field.name]"></span>
<select ng-model="parameters[field.name]" ng-show="fieldOptions[field.name]"
ng-options="value for value in fieldOptions[field.name]"
required>
</select>
</span>
</div>
<!-- String -->
<input type="text" class="form-control" ng-model="parameters[field.name]" ng-switch-when="string" required>
<!-- TODO(jschorr): unify the ability to create an input box with all the usual features -->
<!-- Regex -->
<div ng-switch-when="regex">
<input type="text" class="form-control" ng-model="parameters[field.name]"
ng-pattern="getPattern(field)"