Merge pull request #1889 from stianst/KEYCLOAK-2131-VAL-MAP-NAME

KEYCLOAK-2131 Create mapper form doesn't validate name input
This commit is contained in:
Stian Thorgersen 2015-11-30 10:55:33 +01:00
commit 243acdd04e

View file

@ -31,7 +31,7 @@
<div class="form-group clearfix">
<label class="col-md-2 control-label" for="name">{{:: 'name' | translate}}</label>
<div class="col-md-6">
<input class="form-control" id="name" type="text" ng-model="mapper.name" data-ng-readonly="!create">
<input class="form-control" id="name" type="text" ng-model="mapper.name" data-ng-readonly="!create" required>
</div>
<kc-tooltip>{{:: 'mapper.name.tooltip' | translate}}</kc-tooltip>
</div>
@ -56,7 +56,8 @@
<div>
<select class="form-control" id="mapperTypeCreate"
ng-model="mapperType"
ng-options="mapperType.name for mapperType in mapperTypes">
ng-options="mapperType.name for mapperType in mapperTypes"
required>
</select>
</div>
</div>