]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.html
Normalize create buttons
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-account / my-account-video-channels / my-account-video-channel-edit.component.html
CommitLineData
b1d40cff 1<div i18n class="form-sub-title" *ngIf="isCreation() === true">Create a video channel</div>
08c1efbe
C
2
3<div *ngIf="error" class="alert alert-danger">{{ error }}</div>
4
5<form role="form" (ngSubmit)="formValidated()" [formGroup]="form">
8a19bee1
C
6 <div class="form-group" *ngIf="isCreation() === true">
7 <label i18n for="name">Name</label>
8 <div class="input-group">
9 <input
10 type="text" id="name" i18n-placeholder placeholder="Example: my_channel"
11 formControlName="name" [ngClass]="{ 'input-error': formErrors['name'] }"
12 >
13 <div class="input-group-append">
14 <span class="input-group-text">@{{ instanceHost }}</span>
15 </div>
16 </div>
17 <div *ngIf="formErrors['name']" class="form-error">
18 {{ formErrors['name'] }}
19 </div>
20 </div>
21
8227643b
RK
22 <div class="form-row"> <!-- channel grid -->
23 <div class="form-group col-12 col-lg-4 col-xl-3">
24 <div i18n class="video-channel-title">CHANNEL</div>
08c1efbe 25 </div>
08c1efbe 26
8227643b
RK
27 <div class="form-group form-group-right col-12 col-lg-8 col-xl-9">
28
29 <my-actor-avatar-info
30 *ngIf="isCreation() === false && videoChannelToUpdate"
31 [actor]="videoChannelToUpdate" (avatarChange)="onAvatarChange($event)"
32 ></my-actor-avatar-info>
33
34 <div class="form-group">
35 <label i18n for="display-name">Display name</label>
36 <input
37 type="text" id="display-name"
38 formControlName="display-name" [ngClass]="{ 'input-error': formErrors['display-name'] }"
39 >
40 <div *ngIf="formErrors['display-name']" class="form-error">
41 {{ formErrors['display-name'] }}
42 </div>
43 </div>
44
45 <div class="form-group">
46 <label i18n for="description">Description</label>
47 <textarea
48 id="description" formControlName="description"
49 [ngClass]="{ 'input-error': formErrors['description'] }"
50 ></textarea>
51 <div *ngIf="formErrors.description" class="form-error">
52 {{ formErrors.description }}
53 </div>
54 </div>
55
56 <div class="form-group">
57 <label for="support">Support</label>
58 <my-help
59 helpType="markdownEnhanced" i18n-preHtml preHtml="Short text to tell people how they can support your channel (membership platform...).<br /><br />
60 When you will upload a video in this channel, the video support field will be automatically filled by this text."
61 ></my-help>
62 <my-markdown-textarea
63 id="support" formControlName="support" textareaWidth="500px" [previewColumn]="true" markdownType="enhanced"
64 [classes]="{ 'input-error': formErrors['support'] }"
65 ></my-markdown-textarea>
66 <div *ngIf="formErrors.support" class="form-error">
67 {{ formErrors.support }}
68 </div>
69 </div>
70
71 <div class="form-group" *ngIf="isBulkUpdateVideosDisplayed()">
72 <my-peertube-checkbox
73 inputName="bulkVideosSupportUpdate" formControlName="bulkVideosSupportUpdate"
74 i18n-labelText labelText="Overwrite support field of all videos of this channel"
75 ></my-peertube-checkbox>
76 </div>
08c1efbe 77
08c1efbe
C
78 </div>
79 </div>
80
8227643b
RK
81 <div class="form-row"> <!-- submit placement block -->
82 <div class="col-md-7 col-xl-5"></div>
83 <div class="col-md-5 col-xl-5 d-inline-flex">
84 <input type="submit" value="{{ getFormButtonTitle() }}" [disabled]="!form.valid">
85 </div>
1e66b987 86 </div>
08c1efbe 87</form>