Merge pull request #152 from coreos-inc/branchtag
Allow manual triggering of both branches and tags
This commit is contained in:
commit
66450d4810
7 changed files with 312 additions and 56 deletions
22
static/directives/dropdown-select-direct.html
Normal file
22
static/directives/dropdown-select-direct.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<div class="dropdown-select-element dropdown-select-direct-element" ng-class="selectedItem ? 'has-item' : ''">
|
||||
<div class="current-item">
|
||||
<i class="none-icon fa fa-lg" ng-class="noneIcon" ng-if="noneIcon"></i>
|
||||
<i class="fa fa-lg dropdown-select-direct-icon" ng-repeat="item in items"
|
||||
ng-class="iconMap[item[iconKey]]"
|
||||
ng-show="selectedItem[valueKey] == item[valueKey]"></i>
|
||||
|
||||
<input type="text" class="lookahead-input form-control" placeholder="{{ placeholder }}"></input>
|
||||
</div>
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown">
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
|
||||
<ul class="dropdown-menu scrollable-menu" role="menu">
|
||||
<li ng-repeat="item in items">
|
||||
<a href="javascript:void(0)" ng-click="setItem(item)">
|
||||
<i class="fa" ng-class="iconMap[item[iconKey]]"></i>{{ item[titleKey] }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
|
@ -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)"
|
||||
|
|
Reference in a new issue