aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/signup/signup-step-channel.component.html
blob: 68ea4473a1666453bc9f039d5e9032d448ccfa43 (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
<form role="form" [formGroup]="form">

  <div class="channel-explanations">
    <p i18n>
      A channel is an entity in which you upload your videos. Creating several of them helps you to organize and separate your content.<br />
      For example, you could decide to have a channel to publish your piano concerts, and another channel in which you publish your videos talking about ecology.
    </p>

    <p>
      Other users can decide to subscribe any channel they want, to be notified when you publish a new video.
    </p>
  </div>

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

    <div class="input-group">
      <input
        type="text" id="name" i18n-placeholder placeholder="Example: my_super_channel"
        formControlName="name" [ngClass]="{ 'input-error': formErrors['name'] }"
      >
      <div class="input-group-append">
        <span class="input-group-text">@{{ instanceHost }}</span>
      </div>
    </div>

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

    <div *ngIf="isSameThanUsername()" class="form-error" i18n>
      Channel name cannot be the same than your account name. You can click on the first step to update your account name.
    </div>
  </div>

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

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

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