1
|
<div class="form-group">
|
2
|
<label class="col-sm-3 control-label">{{name}}
|
3
|
<span ng-show="description" style="display: block; font-size: 75%; color: darkgrey;">{{description}}</span>
|
4
|
</label>
|
5
|
<div class="col-sm-9">
|
6
|
<div bs-has-error>
|
7
|
<select class="form-control" multiple="multiple" rows="10" ng-model="ngModel" ng-input="ngModel"
|
8
|
ng-options="item.id as item.name for item in finalValues" ng-required="isRequired" ng-class="{'empty': !ngModel || ngModel.trim() == ''}">
|
9
|
</select>
|
10
|
<span class="form-control-feedback glyphicon"></span>
|
11
|
<button type="button" class="btn btn-xs btn-default" style="margin-top: 6px" ng-click="refreshValues()" ng-show="valuesFunction">
|
12
|
<span class="glyphicon glyphicon-refresh"></span>
|
13
|
</button>
|
14
|
</div>
|
15
|
<div ng-if="links" style="margin-top: 4px">
|
16
|
<a href="{{l.paramRequired ? (l.url | sprintf: ngModel) : l.url}}" ng-repeat="l in links" ng-if="ngModel || !l.paramRequired" style="margin-right:10px;">{{l.label}}</a>
|
17
|
</div>
|
18
|
</div>
|
19
|
</div>
|
20
|
|