Add regex validating field

This commit is contained in:
Joseph Schorr 2016-09-15 13:25:57 -04:00
parent c4eaed186e
commit 949dcb9d35
4 changed files with 50 additions and 3 deletions

View file

@ -39,9 +39,10 @@
</select>
<!-- Regular expression -->
<input type="text" class="form-control" ng-model="currentConfig[field.name]" ng-switch-when="regex"
placeholder="{{ field.placeholder || '' }}"
ng-required="!field.optional">
<div ng-switch-when="regex">
<div class="regex-editor" placeholder="{{field.placeholder || '' }}"
binding="currentConfig[field.name]" optional="field.optional"></div>
</div>
<!-- Value description -->
<div class="co-alert co-alert-info"