]>
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"> | |
11 | <div class="form-group"> | |
b1d40cff | 12 | <label i18n for="display-name">Display name</label> |
08c1efbe C |
13 | <input |
14 | type="text" id="display-name" | |
15 | formControlName="display-name" [ngClass]="{ 'input-error': formErrors['display-name'] }" | |
16 | > | |
6a478b11 C |
17 | <div *ngIf="formErrors['display-name']" class="form-error"> |
18 | {{ formErrors['display-name'] }} | |
08c1efbe C |
19 | </div> |
20 | </div> | |
21 | ||
22 | <div class="form-group"> | |
b1d40cff | 23 | <label i18n for="description">Description</label> |
08c1efbe C |
24 | <textarea |
25 | id="description" formControlName="description" | |
26 | [ngClass]="{ 'input-error': formErrors['description'] }" | |
27 | ></textarea> | |
28 | <div *ngIf="formErrors.description" class="form-error"> | |
29 | {{ formErrors.description }} | |
30 | </div> | |
31 | </div> | |
32 | ||
33 | <div class="form-group"> | |
34 | <label for="support">Support</label> | |
74af5145 | 35 | <my-help |
b1d40cff | 36 | helpType="markdownEnhanced" i18n-preHtml preHtml="Short text to tell people how they can support your channel (membership platform...).<br /><br /> |
74af5145 C |
37 | When you will upload a video in this channel, the video support field will be automatically filled by this text." |
38 | ></my-help> | |
08c1efbe C |
39 | <my-markdown-textarea |
40 | id="support" formControlName="support" textareaWidth="500px" [previewColumn]="true" markdownType="enhanced" | |
41 | [classes]="{ 'input-error': formErrors['support'] }" | |
42 | ></my-markdown-textarea> | |
43 | <div *ngIf="formErrors.support" class="form-error"> | |
44 | {{ formErrors.support }} | |
45 | </div> | |
46 | </div> | |
47 | ||
48 | <input type="submit" value="{{ getFormButtonTitle() }}" [disabled]="!form.valid"> | |
49 | </form> |