Skip to content
Snippets Groups Projects
Verified Commit 4d396f1f authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FIX #84 add length + type controls for group_id and group_desc

parent 94d77d83
No related branches found
No related tags found
No related merge requests found
...@@ -17,13 +17,12 @@ ...@@ -17,13 +17,12 @@
<mat-tab label="{{lang.informations}}"> <mat-tab label="{{lang.informations}}">
<form class="form-horizontal" (ngSubmit)="onSubmit()" #groupForm="ngForm"> <form class="form-horizontal" (ngSubmit)="onSubmit()" #groupForm="ngForm">
<mat-form-field> <mat-form-field>
<input matInput *ngIf="creationMode" name="identifier" placeholder="{{lang.id}}" [(ngModel)]="group.group_id" required> <input matInput *ngIf="creationMode" name="identifier" placeholder="{{lang.id}}" [(ngModel)]="group.group_id" pattern="^[\w.-]*$" maxlength="32" required>
<input matInput *ngIf="!creationMode" name="identifier" placeholder="{{lang.id}}" title="{{lang.id}}" [(ngModel)]="group.group_id" <input matInput *ngIf="!creationMode" name="identifier" placeholder="{{lang.id}}" title="{{lang.id}}" [(ngModel)]="group.group_id" disabled>
disabled>
</mat-form-field> </mat-form-field>
<mat-form-field> <mat-form-field>
<input matInput name="description" title="{{lang.label}}" placeholder="{{lang.label}}" [(ngModel)]="group.group_desc" required> <input matInput name="description" title="{{lang.label}}" placeholder="{{lang.label}}" [(ngModel)]="group.group_desc" maxlength="255" required>
</mat-form-field> </mat-form-field>
<div class="col-md-12"> <div class="col-md-12">
......
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