Add i18n for login/signup
							parent
							
								
									6259fdd766
								
							
						
					
					
						commit
						7a7a2f6ceb
					
				|  | @ -1 +1 @@ | ||||||
| <h1>Oops, diese Seite kennen wir nicht...</h1> | <h1>{{'public.error.headline' | translate}}</h1> | ||||||
|  |  | ||||||
|  | @ -1,29 +1,23 @@ | ||||||
| <form class="form-signin" (ngSubmit)="login(userName.value, password.value, secret.value)"> | <form class="form-signin" (ngSubmit)="signup(userName.value, password.value, secret.value)"> | ||||||
| 
 | 
 | ||||||
|   <div class="row" style="position: absolute;width: 500px;left: 40%;"> |   <div class="row" style="position: absolute;width: 500px;left: 40%;"> | ||||||
|     <h2 style="text-align: center;" class="form-signin-heading">Registrieren</h2> |     <h2 style="text-align: center;" class="form-signin-heading">{{'signup.headline' | translate}}</h2> | ||||||
| 
 | 
 | ||||||
|     <p>Dieses Formular nur ausfüllen wenn du einer <b>HL</b> angehörst oder <b>SQL</b> bist. Dabei den Nutzernamen aus |     <p [innerHtml]="'signup.description' | translate"></p> | ||||||
|       dem OPT Forum verwenden! |  | ||||||
|       Im Forum eine Nachricht an <a href="https://www.opt4.net/dashboard/index.php?conversation-add/&userID=9" |  | ||||||
|                                     target="_blank">HardiReady</a> |  | ||||||
|       senden, in welcher der 'geheime Text' steht, den du bei der Registrierung nutzt.<br> |  | ||||||
|       Dabei kann es sich um irgend eine willkürliche Zeichenfolge oder einen Satz handeln - dient nur dem Abgleich. |  | ||||||
|       Anschließend wird dein Account aktiviert und du wirst darüber per PN informiert.</p> |  | ||||||
| 
 | 
 | ||||||
|     <label for="inputEmail" class="sr-only">Benutzername</label> |     <label for="inputEmail" class="sr-only">{{'signup.username' | translate}}</label> | ||||||
|     <input #userName id="inputEmail" class="form-control" placeholder="Benutzername" required="" autofocus=""> |     <input #userName id="inputEmail" class="form-control" placeholder="{{'signup.username' | translate}}" required="" autofocus=""> | ||||||
| 
 | 
 | ||||||
|     <label for="inputPassword" class="sr-only">Passwort</label> |     <label for="inputPassword" class="sr-only">{{'signup.password' | translate}}</label> | ||||||
|     <input #password type="password" id="inputPassword" class="form-control" placeholder="Passwort" required=""> |     <input #password type="password" id="inputPassword" class="form-control" placeholder="{{'signup.password' | translate}}" required=""> | ||||||
| 
 | 
 | ||||||
|     <label for="inputSecret" class="sr-only">Secret</label> |     <label for="inputSecret" class="sr-only">{{'signup.secret' | translate}}</label> | ||||||
|     <input #secret type="text" id="inputSecret" class="form-control" placeholder="Geheimer Text für PN Abgleich" |     <input #secret type="text" id="inputSecret" class="form-control" placeholder="{{'signup.secret.placeholder' | translate}}" | ||||||
|            required=""> |            required=""> | ||||||
| 
 | 
 | ||||||
|     <div class="form-group"> |     <div class="form-group"> | ||||||
|       <button type="submit" class="btn btn-lg btn-block btn-primary"> |       <button type="submit" class="btn btn-lg btn-block btn-primary"> | ||||||
|         <span *ngIf="!loading">Registrieren</span> |         <span *ngIf="!loading">{{'signup.submit' | translate}}</span> | ||||||
|         <span *ngIf="loading" class="glyphicon glyphicon-refresh glyphicon-refresh-animate"></span> |         <span *ngIf="loading" class="glyphicon glyphicon-refresh glyphicon-refresh-animate"></span> | ||||||
|       </button> |       </button> | ||||||
|     </div> |     </div> | ||||||
|  |  | ||||||
|  | @ -31,7 +31,7 @@ export class SignupComponent implements OnInit { | ||||||
|     this.returnUrl = RouteConfig.overviewPath; |     this.returnUrl = RouteConfig.overviewPath; | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   login(username: string, password: string, secret: string) { |   signup(username: string, password: string, secret: string) { | ||||||
|     if (username.length > 0 && password.length > 0 && secret.length > 0) { |     if (username.length > 0 && password.length > 0 && secret.length > 0) { | ||||||
|       this.loading = true; |       this.loading = true; | ||||||
|       this.loginService.signUp(username, password, secret) |       this.loginService.signUp(username, password, secret) | ||||||
|  |  | ||||||
|  | @ -19,7 +19,20 @@ | ||||||
|   "navigation.top.admin": "Admin Panel", |   "navigation.top.admin": "Admin Panel", | ||||||
|   "navigation.button.scroll.top": "Zum Seitenanfang", |   "navigation.button.scroll.top": "Zum Seitenanfang", | ||||||
| 
 | 
 | ||||||
|  |   "login.headline": "Login", | ||||||
|  |   "login.username": "Benutzername", | ||||||
|  |   "login.password": "Passwort", | ||||||
|  |   "login.submit": "Anmelden", | ||||||
|  |   "signup.headline": "Registrieren", | ||||||
|  |   "signup.username": "Benutzername", | ||||||
|  |   "signup.password": "Passwort", | ||||||
|  |   "signup.secret": "Secret", | ||||||
|  |   "signup.secret.placeholder": "Geheimer Text für PN Abgleich", | ||||||
|  |   "signup.submit": "Registrieren", | ||||||
|  |   "signup.description": "Dieses Formular nur ausfüllen wenn du einer <b>HL</b> angehörst oder <b>SQL</b> bist. Dabei den Nutzernamen aus dem OPT Forum verwenden! Im Forum eine Nachricht an <a href=\"https://www.opt4.net/dashboard/index.php?conversation-add/&userID=9\" target=\"_blank\">HardiReady</a> senden, in welcher der 'geheime Text' steht, den du bei der Registrierung nutzt.<br> Dabei kann es sich um irgend eine willkürliche Zeichenfolge oder einen Satz handeln - dient nur dem Abgleich. Anschließend wird dein Account aktiviert und du wirst darüber per PN informiert.", | ||||||
|  | 
 | ||||||
|   "public.army.headline": "Übersicht über alle Spieler, Squads und Armeen", |   "public.army.headline": "Übersicht über alle Spieler, Squads und Armeen", | ||||||
|   "public army.squad.members": "Mitglieder:", |   "public army.squad.members": "Mitglieder:", | ||||||
|   "public.army.members": "Armeemitglieder:" |   "public.army.members": "Armeemitglieder:", | ||||||
|  |   "public.error.headline": "Oops, diese Seite kennen wir nicht..." | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue