]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/signup/signup.component.html
Fix admin access to moderators
[github/Chocobozzz/PeerTube.git] / client / src / app / signup / signup.component.html
index f95897ea4dea8796b30b5ff4c2168a8c5b46566c..aad4b5be3e9b156eed0ea7f31c086bcc8e06469e 100644 (file)
@@ -1,46 +1,71 @@
 <div class="margin-content">
 
-  <div class="title-page title-page-single">
+  <div i18n class="title-page title-page-single">
     Create an account
   </div>
 
   <div *ngIf="error" class="alert alert-danger">{{ error }}</div>
 
-  <form role="form" (ngSubmit)="signup()" [formGroup]="form">
-    <div class="form-group">
-      <label for="username">Username</label>
-      <input
-        type="text" id="username" placeholder="Username"
-        formControlName="username" [ngClass]="{ 'input-error': formErrors['username'] }"
-      >
-      <div *ngIf="formErrors.username" class="form-error">
-        {{ formErrors.username }}
+  <div class="d-flex justify-content-left flex-wrap">
+    <form role="form" (ngSubmit)="signup()" [formGroup]="form">
+      <div class="form-group">
+        <label for="username" i18n>Username</label>
+
+        <div class="input-group">
+          <input
+            type="text" id="username" i18n-placeholder placeholder="Example: jane_doe"
+            formControlName="username" [ngClass]="{ 'input-error': formErrors['username'] }"
+          >
+          <div class="input-group-append">
+            <span class="input-group-text">@{{ instanceHost }}</span>
+          </div>
+        </div>
+
+        <div *ngIf="formErrors.username" class="form-error">
+          {{ formErrors.username }}
+        </div>
       </div>
-    </div>
 
-    <div class="form-group">
-      <label for="email">Email</label>
-      <input
-        type="text" id="email" placeholder="Email"
-        formControlName="email" [ngClass]="{ 'input-error': formErrors['email'] }"
-      >
-      <div *ngIf="formErrors.email" class="form-error">
-        {{ formErrors.email }}
+      <div class="form-group">
+        <label for="email" i18n>Email</label>
+        <input
+          type="text" id="email" i18n-placeholder placeholder="Email"
+          formControlName="email" [ngClass]="{ 'input-error': formErrors['email'] }"
+        >
+        <div *ngIf="formErrors.email" class="form-error">
+          {{ formErrors.email }}
+        </div>
       </div>
-    </div>
 
-    <div class="form-group">
-      <label for="password">Password</label>
-      <input
-        type="password" id="password" placeholder="Password"
-        formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }"
-      >
-      <div *ngIf="formErrors.password" class="form-error">
-        {{ formErrors.password }}
+      <div class="form-group">
+        <label for="password" i18n>Password</label>
+        <input
+          type="password" id="password" i18n-placeholder placeholder="Password"
+          formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }"
+        >
+        <div *ngIf="formErrors.password" class="form-error">
+          {{ formErrors.password }}
+        </div>
       </div>
-    </div>
 
-    <input type="submit" value="Signup" [disabled]="!form.valid">
-  </form>
+      <div class="form-group form-group-terms">
+        <my-peertube-checkbox
+          inputName="terms" formControlName="terms"
+          i18n-labelHtml labelHtml="I have read and agree to the <a href='/about/instance#terms-section' target='_blank'rel='noopener noreferrer'>Terms</a> of this instance"
+        ></my-peertube-checkbox>
+
+        <div *ngIf="formErrors.terms" class="form-error">
+          {{ formErrors.terms }}
+        </div>
+      </div>
+
+      <input type="submit" i18n-value value="Signup" [disabled]="!form.valid">
+    </form>
+
+    <div>
+      <label for="email" i18n>Features found on this instance</label>
+      <my-instance-features-table></my-instance-features-table>
+    </div>
+  </div>
 
 </div>