Skip to content
Snippets Groups Projects
Verified Commit a1aeb262 authored by Damien's avatar Damien
Browse files

FEAT #18 Regex check for basket creation view

parent 65766c2a
No related branches found
No related tags found
Loading
......@@ -11,7 +11,7 @@
<div class="form-group">
<div class="col-sm-12">
<div class="input-group">
<input *ngIf="creationMode" type="text" class="form-control" name="identifier" placeholder="{{lang.id}}" [(ngModel)]="basket.id" required>
<input *ngIf="creationMode" type="text" class="form-control" name="identifier" placeholder="{{lang.id}}" [(ngModel)]="basket.id" pattern="^[\w-]*$" maxlength="30" required>
<input *ngIf="!creationMode" type="text" class="form-control" name="identifier" title="{{lang.id}}" [(ngModel)]="basket.id" disabled>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment