<div class="form-group" bs-has-error>
	<label class="col-sm-3 control-label">{{label}}</label>
	<div class="col-sm-8">
		<select class="form-control" ng-model="selection" ng-required="required" ng-class="{'empty': !selection || selection.trim() == ''}">
			<option></option>
			<option ng-repeat="term in validValues" value="{{term.id}}">{{term.id}} (Name: {{term.name}})</option>
		</select>
		<span class="glyphicon form-control-feedback" style="margin-right: 20px"></span>
		
		<button type="button" class="btn btn-xs btn-default" style="margin-top: 6px" ng-click="refreshFunction()" ng-show="refreshFunction">
			<span class="glyphicon glyphicon-refresh"></span> fetch list
		</button>
	</div>
</div>
