]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/account/account.component.html
Add ability to change the homepage
[github/Chocobozzz/PeerTube.git] / client / src / app / account / account.component.html
index 4797fa9149c3e39157b0319fcc516e29f20186ae..d82a4ca4d69316ac3bc95689c0019b2d721825a9 100644 (file)
@@ -1,27 +1,11 @@
-<h3>Account</h3>
+<div class="row">
+  <div class="sub-menu">
+    <a routerLink="/account/settings" routerLinkActive="active" class="title-page">My account</a>
 
-<div *ngIf="information" class="alert alert-success">{{ information }}</div>
-<div *ngIf="error" class="alert alert-danger">{{ error }}</div>
-
-<form role="form" (ngSubmit)="changePassword()" [formGroup]="changePasswordForm">
-  <div class="form-group">
-    <label for="new-password">New password</label>
-    <input
-      type="password" class="form-control" name="new-password" id="new-password"
-      [(ngModel)]="newPassword" #newPasswordInput="ngModel"
-    >
-    <div [hidden]="changePasswordForm.controls['new-password'].valid || changePasswordForm.controls['new-password'].pristine" class="alert alert-warning">
-      The password should have more than 5 characters
-    </div>
+    <a routerLink="/account/videos" routerLinkActive="active" class="title-page">My videos</a>
   </div>
 
-  <div class="form-group">
-    <label for="name">Confirm new password</label>
-    <input
-      type="password" class="form-control" name="new-confirmed-password" id="new-confirmed-password"
-      [(ngModel)]="newConfirmedPassword" #newConfirmedPasswordInput="ngModel"
-    >
+  <div class="margin-content">
+    <router-outlet></router-outlet>
   </div>
-
-  <input type="submit" value="Change password" class="btn btn-default" [disabled]="!changePasswordForm.valid">
-</form>
+</div>