aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/+signup/+register/register-step-channel.component.html
blob: 67f332409fb36361d893f497ab5ab6f6535cf810 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                                                                                                                                 
            




                                                                                                             














                                                                                              











                                                                                      
                                       
                                                                                                                                                                                                

          




                                                              
                                                                                                                        

          
       
<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 i18n>
      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="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>

  <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 class="name-information" i18n>
      The channel name is a unique identifier of your channel 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.name" class="form-error">
      {{ formErrors.name }}
    </div>

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