]>
Commit | Line | Data |
---|---|---|
52d9f792 C |
1 | <my-actor-avatar-info |
2 | *ngIf="isCreation() === false && videoChannelToUpdate" | |
3 | [actor]="videoChannelToUpdate" (avatarChange)="onAvatarChange($event)" | |
4 | ></my-actor-avatar-info> | |
5 | ||
b1d40cff | 6 | <div i18n class="form-sub-title" *ngIf="isCreation() === true">Create a video channel</div> |
08c1efbe C |
7 | |
8 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> | |
9 | ||
10 | <form role="form" (ngSubmit)="formValidated()" [formGroup]="form"> | |
8a19bee1 C |
11 | <div class="form-group" *ngIf="isCreation() === true"> |
12 | <label i18n for="name">Name</label> | |
13 | <div class="input-group"> | |
14 | <input | |
15 | type="text" id="name" i18n-placeholder placeholder="Example: my_channel" | |
16 | formControlName="name" [ngClass]="{ 'input-error': formErrors['name'] }" | |
17 | > | |
18 | <div class="input-group-append"> | |
19 | <span class="input-group-text">@{{ instanceHost }}</span> | |
20 | </div> | |
21 | </div> | |
22 | <div *ngIf="formErrors['name']" class="form-error"> | |
23 | {{ formErrors['name'] }} | |
24 | </div> | |
25 | </div> | |
26 | ||
08c1efbe | 27 | <div class="form-group"> |
b1d40cff | 28 | <label i18n for="display-name">Display name</label> |
08c1efbe C |
29 | <input |
30 | type="text" id="display-name" | |
31 | formControlName="display-name" [ngClass]="{ 'input-error': formErrors['display-name'] }" | |
32 | > | |
6a478b11 C |
33 | <div *ngIf="formErrors['display-name']" class="form-error"> |
34 | {{ formErrors['display-name'] }} | |
08c1efbe C |
35 | </div> |
36 | </div> | |
37 | ||
38 | <div class="form-group"> | |
b1d40cff | 39 | <label i18n for="description">Description</label> |
08c1efbe C |
40 | <textarea |
41 | id="description" formControlName="description" | |
42 | [ngClass]="{ 'input-error': formErrors['description'] }" | |
43 | ></textarea> | |
44 | <div *ngIf="formErrors.description" class="form-error"> | |
45 | {{ formErrors.description }} | |
46 | </div> | |
47 | </div> | |
48 | ||
49 | <div class="form-group"> | |
50 | <label for="support">Support</label> | |
74af5145 | 51 | <my-help |
b1d40cff | 52 | helpType="markdownEnhanced" i18n-preHtml preHtml="Short text to tell people how they can support your channel (membership platform...).<br /><br /> |
74af5145 C |
53 | When you will upload a video in this channel, the video support field will be automatically filled by this text." |
54 | ></my-help> | |
08c1efbe C |
55 | <my-markdown-textarea |
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 }} | |
61 | </div> | |
62 | </div> | |
63 | ||
1e66b987 C |
64 | <div class="form-group" *ngIf="isBulkUpdateVideosDisplayed()"> |
65 | <my-peertube-checkbox | |
66 | inputName="bulkVideosSupportUpdate" formControlName="bulkVideosSupportUpdate" | |
67 | i18n-labelText labelText="Overwrite support field of all videos of this channel" | |
68 | ></my-peertube-checkbox> | |
69 | </div> | |
70 | ||
08c1efbe C |
71 | <input type="submit" value="{{ getFormButtonTitle() }}" [disabled]="!form.valid"> |
72 | </form> |