aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+signup/+register/register-step-user.component.html
blob: 745b37c105f0d337b65ff5cec4f657b8e80b12f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<form role="form" [formGroup]="form">

  <div class="capability-information alert alert-info" i18n *ngIf="videoUploadDisabled">
    Video uploads are disabled on this instance, hence your account won't be able to upload videos.
  </div>

  <div class="form-group">
    <label for="displayName" i18n>Display name</label>

    <div class="input-group">
      <input
        type="text" id="displayName" placeholder="John Doe"
        formControlName="displayName" [ngClass]="{ 'input-error': formErrors['displayName'] }"
      >
    </div>

    <div *ngIf="formErrors.displayName" class="form-error">
      {{ formErrors.displayName }}
    </div>
  </div>

  <div class="form-group">
    <label for="username" i18n>Username</label>

    <div class="input-group">
      <input
        type="text" id="username" i18n-placeholder="Username choice placeholder in the registration form" placeholder="e.g. jane_doe"
        formControlName="username" class="form-control" [ngClass]="{ 'input-error': formErrors['username'] }"
      >
      <span class="input-group-text">@{{ instanceHost }}</span>
    </div>

    <div class="name-information" i18n>
      The username is a unique identifier of your account on this and all the other instances. It's as unique as an email address, which makes it easy for other people to interact with it.
    </div>

    <div *ngIf="formErrors.username" class="form-error">
      {{ formErrors.username }}
    </div>
  </div>

  <div class="form-group">
    <label for="email" i18n>Email</label>
    <input
      type="text" id="email" i18n-placeholder placeholder="Email"
      formControlName="email" class="form-control" [ngClass]="{ 'input-error': formErrors['email'] }"
    >
    <div *ngIf="formErrors.email" class="form-error">
      {{ formErrors.email }}
    </div>
  </div>

  <div class="form-group">
    <label for="password" i18n>Password</label>
    <my-input-toggle-hidden formControlName="password" inputId="password"
                            i18n-placeholder placeholder="Password"
                            [ngClass]="{ 'input-error': formErrors['password'] }"
                            autocomplete="new-password"></my-input-toggle-hidden>
    <div *ngIf="formErrors.password" class="form-error">
      {{ formErrors.password }}
    </div>
  </div>

</form>