Add regex validating field
This commit is contained in:
parent
c4eaed186e
commit
949dcb9d35
4 changed files with 50 additions and 3 deletions
|
@ -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"
|
||||
|
|
Reference in a new issue