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

FIX #83 add length + type controls for basket_id and basket_name and basket_desc

parent 4d396f1f
No related branches found
No related tags found
No related merge requests found
...@@ -15,13 +15,12 @@ ...@@ -15,13 +15,12 @@
<mat-tab label="{{lang.informations}}"> <mat-tab label="{{lang.informations}}">
<form class="form-horizontal" (ngSubmit)="onSubmit()" #basketForm="ngForm"> <form class="form-horizontal" (ngSubmit)="onSubmit()" #basketForm="ngForm">
<mat-form-field> <mat-form-field>
<input matInput *ngIf="creationMode" name="identifier" placeholder="{{lang.id}}" [(ngModel)]="basket.basket_id" required> <input matInput *ngIf="creationMode" name="identifier" placeholder="{{lang.id}}" [(ngModel)]="basket.basket_id" maxlength="32" pattern="^[\w.-]*$" required>
<input matInput *ngIf="!creationMode" name="identifier" placeholder="{{lang.id}}" title="{{lang.id}}" [(ngModel)]="basket.basket_id" <input matInput *ngIf="!creationMode" name="identifier" placeholder="{{lang.id}}" title="{{lang.id}}" [(ngModel)]="basket.basket_id" required disabled>
required disabled>
</mat-form-field> </mat-form-field>
<div class="col-md-11"> <div class="col-md-11">
<mat-form-field> <mat-form-field>
<input matInput name="label" title="{{lang.label}}" placeholder="{{lang.label}}" [(ngModel)]="basket.basket_name" [ngStyle]="{'color': basket.color}" <input matInput name="label" title="{{lang.label}}" placeholder="{{lang.label}}" [(ngModel)]="basket.basket_name" maxlength="255" [ngStyle]="{'color': basket.color}"
required> required>
</mat-form-field> </mat-form-field>
</div> </div>
...@@ -31,8 +30,7 @@ ...@@ -31,8 +30,7 @@
</mat-form-field> </mat-form-field>
</div> </div>
<mat-form-field> <mat-form-field>
<input matInput name="description" title="{{lang.description}}" placeholder="{{lang.description}}" [(ngModel)]="basket.basket_desc" <input matInput name="description" title="{{lang.description}}" placeholder="{{lang.description}}" [(ngModel)]="basket.basket_desc" maxlength="255" required>
required>
</mat-form-field> </mat-form-field>
<mat-form-field> <mat-form-field>
<textarea matInput name="clause" title="{{lang.clause}}" placeholder="{{lang.clause}}" [(ngModel)]="basket.clause" matTextareaAutosize <textarea matInput name="clause" title="{{lang.clause}}" placeholder="{{lang.clause}}" [(ngModel)]="basket.clause" matTextareaAutosize
......
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