]> 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 delete our account
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-account / my-account-video-channels / my-account-video-channel-edit.component.html
1 <my-actor-avatar-info
2 *ngIf="isCreation() === false && videoChannelToUpdate"
3 [actor]="videoChannelToUpdate" (avatarChange)="onAvatarChange($event)"
4 ></my-actor-avatar-info>
5
6 <div i18n class="form-sub-title" *ngIf="isCreation() === true">Create a video channel</div>
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">
12 <label i18n for="display-name">Display name</label>
13 <input
14 type="text" id="display-name"
15 formControlName="display-name" [ngClass]="{ 'input-error': formErrors['display-name'] }"
16 >
17 <div *ngIf="formErrors['display-name']" class="form-error">
18 {{ formErrors['display-name'] }}
19 </div>
20 </div>
21
22 <div class="form-group">
23 <label i18n for="description">Description</label>
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>
35 <my-help
36 helpType="markdownEnhanced" i18n-preHtml preHtml="Short text to tell people how they can support your channel (membership platform...).<br /><br />
37 When you will upload a video in this channel, the video support field will be automatically filled by this text."
38 ></my-help>
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>