2 *ngIf="isCreation() === false && videoChannelToUpdate"
3 [actor]="videoChannelToUpdate" (avatarChange)="onAvatarChange($event)"
4 ></my-actor-avatar-info>
6 <div i18n class="form-sub-title" *ngIf="isCreation() === true">Create a video channel</div>
8 <div *ngIf="error" class="alert alert-danger">{{ error }}</div>
10 <form role="form" (ngSubmit)="formValidated()" [formGroup]="form">
11 <div class="form-group" *ngIf="isCreation() === true">
12 <label i18n for="name">Name</label>
13 <div class="input-group">
15 type="text" id="name" i18n-placeholder placeholder="Example: my_channel"
16 formControlName="name" [ngClass]="{ 'input-error': formErrors['name'] }"
18 <div class="input-group-append">
19 <span class="input-group-text">@{{ instanceHost }}</span>
22 <div *ngIf="formErrors['name']" class="form-error">
23 {{ formErrors['name'] }}
27 <div class="form-group">
28 <label i18n for="display-name">Display name</label>
30 type="text" id="display-name"
31 formControlName="display-name" [ngClass]="{ 'input-error': formErrors['display-name'] }"
33 <div *ngIf="formErrors['display-name']" class="form-error">
34 {{ formErrors['display-name'] }}
38 <div class="form-group">
39 <label i18n for="description">Description</label>
41 id="description" formControlName="description"
42 [ngClass]="{ 'input-error': formErrors['description'] }"
44 <div *ngIf="formErrors.description" class="form-error">
45 {{ formErrors.description }}
49 <div class="form-group">
50 <label for="support">Support</label>
52 helpType="markdownEnhanced" i18n-preHtml preHtml="Short text to tell people how they can support your channel (membership platform...).<br /><br />
53 When you will upload a video in this channel, the video support field will be automatically filled by this text."
56 id="support" formControlName="support" textareaWidth="500px" [previewColumn]="true" markdownType="enhanced"
57 [classes]="{ 'input-error': formErrors['support'] }"
58 ></my-markdown-textarea>
59 <div *ngIf="formErrors.support" class="form-error">
60 {{ formErrors.support }}
64 <div class="form-group" *ngIf="isBulkUpdateVideosDisplayed()">
66 inputName="bulkVideosSupportUpdate" formControlName="bulkVideosSupportUpdate"
67 i18n-labelText labelText="Overwrite support field of all videos of this channel"
68 ></my-peertube-checkbox>
71 <input type="submit" value="{{ getFormButtonTitle() }}" [disabled]="!form.valid">