<div class="form-group row">
	<label class="col-sm-2 col-form-label col-form-label-sm">{{label}}</label>
	<div class="col-sm-10">
		<input type="text" class="form-control form-control-sm is-valid" 
			ng-pattern="mypattern" 
			ng-required="required" 
			ng-class="{'is-invalid': required && (!value || value.trim() == '')}"
			ng-model="value" />
		<small class="form-text text-muted" ng-if="!required">(Optional)</small>
	</div>
</div>
