#17 Ie password label

This commit is contained in:
mauriziovitale84
2016-05-05 11:35:19 +01:00
parent ccdc34952c
commit 298592bac7
3 changed files with 6 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
"title" : "Welcome", "title" : "Welcome",
"login" : "Login", "login" : "Login",
"username" : "Username", "username" : "Username",
"password" : "Password",
"input-required-message": "Required", "input-required-message": "Required",
"input-min-message": "Your username needs to be at least 4 characters.", "input-min-message": "Your username needs to be at least 4 characters.",
"login-button": "Login", "login-button": "Login",

View File

@@ -2,6 +2,7 @@
"title" : "Benvenuto", "title" : "Benvenuto",
"login" : "Autenticazione", "login" : "Autenticazione",
"username" : "Nome utente", "username" : "Nome utente",
"password" : "Password",
"input-required-message": "Campo obbligatorio", "input-required-message": "Campo obbligatorio",
"input-min-message": "Inserire un nome utente di 4 caratteri minimo.", "input-min-message": "Inserire un nome utente di 4 caratteri minimo.",
"login-button": "Accedi", "login-button": "Accedi",

View File

@@ -8,18 +8,18 @@
<label for="username" class="mdl-textfield__label">{{'username' | translate }}</label> <label for="username" class="mdl-textfield__label">{{'username' | translate }}</label>
<input type="text" class="mdl-textfield__input" id="username" ngControl="username" tabindex="1" /> <input type="text" class="mdl-textfield__input" id="username" ngControl="username" tabindex="1" />
<span class="mdl-tooltip mdl-tooltip--validation" for="username" *ngIf="form.controls.username.hasError('required')"> <span class="mdl-tooltip mdl-tooltip--validation" for="username" *ngIf="form.controls.username.hasError('required')">
<span>{{'input-required-message' | translate }}</span> <span id="username-required">{{'input-required-message' | translate }}</span>
</span> </span>
<span class="mdl-tooltip mdl-tooltip--validation" for="username" *ngIf="form.controls.username.hasError('minlength')"> <span class="mdl-tooltip mdl-tooltip--validation" for="username" *ngIf="form.controls.username.hasError('minlength')">
<span>{{'input-min-message' | translate }}</span> <span id="username-min">{{'input-min-message' | translate }}</span>
</span> </span>
</div> </div>
<div [ngClass]="{'is-invalid': isErrorStyle(form.controls.password)}" class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label"> <div [ngClass]="{'is-invalid': isErrorStyle(form.controls.password)}" class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<label for="password" class="mdl-textfield__label">Password</label> <label for="password" class="mdl-textfield__label">{{'password' | translate }}</label>
<input type="password" class="mdl-textfield__input" id="password" ngControl="password" tabindex="2" /> <input type="password" class="mdl-textfield__input" id="password" ngControl="password" tabindex="2" />
<span class="mdl-tooltip mdl-tooltip--validation" for="password" *ngIf="form.controls.password.hasError('required')"> <span class="mdl-tooltip mdl-tooltip--validation" for="password" *ngIf="form.controls.password.hasError('required')">
<span>{{'input-required-message' | translate }}</span> <span id="password-required">{{'input-required-message' | translate }}</span>
</span> </span>
</div> </div>
</div> </div>