]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.html
Add ability to schedule video publication
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-account / my-account-video-channels / my-account-video-channel-edit.component.html
1 <div i18n class="form-sub-title" *ngIf="isCreation() === true">Create a video channel</div>
2 <div i18n class="form-sub-title" *ngIf="isCreation() === false">Update {{ videoChannel?.displayName }}</div>
3
4 <div *ngIf="error" class="alert alert-danger">{{ error }}</div>
5
6 <form role="form" (ngSubmit)="formValidated()" [formGroup]="form">
7 <div class="form-group">
8 <label i18n for="display-name">Display name</label>
9 <input
10 type="text" id="display-name"
11 formControlName="display-name" [ngClass]="{ 'input-error': formErrors['display-name'] }"
12 >
13 <div *ngIf="formErrors['display-name']" class="form-error">
14 {{ formErrors['display-name'] }}
15 </div>
16 </div>
17
18 <div class="form-group">
19 <label i18n for="description">Description</label>
20 <textarea
21 id="description" formControlName="description"
22 [ngClass]="{ 'input-error': formErrors['description'] }"
23 ></textarea>
24 <div *ngIf="formErrors.description" class="form-error">
25 {{ formErrors.description }}
26 </div>
27 </div>
28
29 <div class="form-group">
30 <label for="support">Support</label>
31 <my-help
32 helpType="markdownEnhanced" i18n-preHtml preHtml="Short text to tell people how they can support your channel (membership platform...).<br /><br />
33 When you will upload a video in this channel, the video support field will be automatically filled by this text."
34 ></my-help>
35 <my-markdown-textarea
36 id="support" formControlName="support" textareaWidth="500px" [previewColumn]="true" markdownType="enhanced"
37 [classes]="{ 'input-error': formErrors['support'] }"
38 ></my-markdown-textarea>
39 <div *ngIf="formErrors.support" class="form-error">
40 {{ formErrors.support }}
41 </div>
42 </div>
43
44 <input type="submit" value="{{ getFormButtonTitle() }}" [disabled]="!form.valid">
45 </form>