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

FIX #16504 TIME 0:20 add input maxlength

parent fe5f50c7
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<ion-content> <ion-content>
<ion-item> <ion-item>
<ion-label color="secondary" position="floating">{{'lang.label' | translate}} *</ion-label> <ion-label color="secondary" position="floating">{{'lang.label' | translate}} *</ion-label>
<ion-input name="label" [(ngModel)]="group.label" required> <ion-input name="label" [maxlength]="128" [(ngModel)]="group.label" required>
</ion-input> </ion-input>
</ion-item> </ion-item>
<ion-item lines="none" *ngIf="!creationMode"> <ion-item lines="none" *ngIf="!creationMode">
......
...@@ -30,20 +30,20 @@ ...@@ -30,20 +30,20 @@
<ion-content> <ion-content>
<ion-item> <ion-item>
<ion-label color="secondary" position="floating">{{'lang.login' | translate}} *</ion-label> <ion-label color="secondary" position="floating">{{'lang.login' | translate}} *</ion-label>
<ion-input name="login" [readonly]="!creationMode" [(ngModel)]="user.login" required pattern="^[\w.@-]*$"> <ion-input name="login" [maxlength]="128" [readonly]="!creationMode" [(ngModel)]="user.login" required pattern="^[\w.@-]*$">
</ion-input> </ion-input>
</ion-item> </ion-item>
<ion-item> <ion-item>
<ion-label color="secondary" position="floating">{{'lang.firstname' | translate}} *</ion-label> <ion-label color="secondary" position="floating">{{'lang.firstname' | translate}} *</ion-label>
<ion-input name="firstname" [(ngModel)]="user.firstname" required></ion-input> <ion-input name="firstname" [maxlength]="128" [(ngModel)]="user.firstname" required></ion-input>
</ion-item> </ion-item>
<ion-item> <ion-item>
<ion-label color="secondary" position="floating">{{'lang.lastname' | translate}} *</ion-label> <ion-label color="secondary" position="floating">{{'lang.lastname' | translate}} *</ion-label>
<ion-input name="lastname" [(ngModel)]="user.lastname" required></ion-input> <ion-input name="lastname" [maxlength]="128" [(ngModel)]="user.lastname" required></ion-input>
</ion-item> </ion-item>
<ion-item> <ion-item>
<ion-label color="secondary" position="floating">{{'lang.email' | translate}} *</ion-label> <ion-label color="secondary" position="floating">{{'lang.email' | translate}} *</ion-label>
<ion-input type="email" name="email" [(ngModel)]="user.email" required <ion-input type="email" name="email" [maxlength]="128" [(ngModel)]="user.email" required
pattern="(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)"></ion-input> pattern="(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)"></ion-input>
</ion-item> </ion-item>
<ion-item> <ion-item>
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</ion-buttons> </ion-buttons>
<ion-item style="width: 100%;"> <ion-item style="width: 100%;">
<ion-label position="floating" color="secondary">{{'lang.reference' | translate}}</ion-label> <ion-label position="floating" color="secondary">{{'lang.reference' | translate}}</ion-label>
<ion-input placeholder="{{'lang.fileReference' | translate}}" matInput type="text" [(ngModel)]="file.reference" [disabled]="!file.mainDocument"></ion-input> <ion-input placeholder="{{'lang.fileReference' | translate}}" matInput type="text" [maxlength]="64" [(ngModel)]="file.reference" [disabled]="!file.mainDocument"></ion-input>
</ion-item> </ion-item>
<ion-item style="width: 100%;"> <ion-item style="width: 100%;">
<ion-label position="floating" color="secondary">{{'lang.subject' | translate}} *</ion-label> <ion-label position="floating" color="secondary">{{'lang.subject' | translate}} *</ion-label>
......
...@@ -35,21 +35,21 @@ ...@@ -35,21 +35,21 @@
<img [src]="avatarInfo.picture"> <img [src]="avatarInfo.picture">
</ion-avatar> </ion-avatar>
<ion-label color="secondary" position="floating">{{'lang.login' | translate}}</ion-label> <ion-label color="secondary" position="floating">{{'lang.login' | translate}}</ion-label>
<ion-input name="login" [(ngModel)]="profileInfo.login" readonly required></ion-input> <ion-input name="login" [maxlength]="128" [(ngModel)]="profileInfo.login" readonly required></ion-input>
<input #uploadFile type="file" style="display:none;" (change)="handleFileInput($event.target.files)"> <input #uploadFile type="file" style="display:none;" (change)="handleFileInput($event.target.files)">
</ion-item> </ion-item>
<ion-item> <ion-item>
<ion-label color="secondary" position="floating">{{'lang.email' | translate}}</ion-label> <ion-label color="secondary" position="floating">{{'lang.email' | translate}}</ion-label>
<ion-input name="email" [(ngModel)]="profileInfo.email" <ion-input name="email" [maxlength]="128" [(ngModel)]="profileInfo.email"
pattern="(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)" [readonly]="authService.authMode !== 'default'" required></ion-input> pattern="(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)" [readonly]="authService.authMode !== 'default'" required></ion-input>
</ion-item> </ion-item>
<ion-item> <ion-item>
<ion-label color="secondary" position="floating">{{'lang.firstname' | translate}}</ion-label> <ion-label color="secondary" position="floating">{{'lang.firstname' | translate}}</ion-label>
<ion-input name="firstname" [(ngModel)]="profileInfo.firstname" [readonly]="authService.authMode !== 'default'" required></ion-input> <ion-input name="firstname" [maxlength]="128" [(ngModel)]="profileInfo.firstname" [readonly]="authService.authMode !== 'default'" required></ion-input>
</ion-item> </ion-item>
<ion-item> <ion-item>
<ion-label color="secondary" position="floating">{{'lang.lastname' | translate}}</ion-label> <ion-label color="secondary" position="floating">{{'lang.lastname' | translate}}</ion-label>
<ion-input name="lastname" [(ngModel)]="profileInfo.lastname" [readonly]="authService.authMode !== 'default'" required></ion-input> <ion-input name="lastname" [maxlength]="128" [(ngModel)]="profileInfo.lastname" [readonly]="authService.authMode !== 'default'" required></ion-input>
</ion-item> </ion-item>
<div *ngIf="authService.authMode === 'default'"> <div *ngIf="authService.authMode === 'default'">
<ion-list-header lines="none"> <ion-list-header lines="none">
......
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