]>
Commit | Line | Data |
---|---|---|
a37e9e74 | 1 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> |
2 | ||
75034888 | 3 | <div class="margin-content pt-4"> |
a37e9e74 | 4 | <form role="form" (ngSubmit)="formValidated()" [formGroup]="form"> |
5 | ||
4c8749cb C |
6 | <div class="row"> <!-- channel grid --> |
7 | <div class="col-12 col-lg-4 col-xl-3"> | |
a37e9e74 | 8 | <div *ngIf="isCreation()" class="video-channel-title" i18n>NEW CHANNEL</div> |
9 | <div *ngIf="!isCreation() && videoChannel" class="video-channel-title" i18n>CHANNEL</div> | |
10 | </div> | |
4c8749cb C |
11 | |
12 | <div class="col-12 col-lg-8 col-xl-9"> | |
a37e9e74 | 13 | <my-actor-banner-edit |
75034888 | 14 | *ngIf="videoChannel" [previewImage]="isCreation()" class="d-block mb-4" |
a37e9e74 | 15 | [actor]="videoChannel" (bannerChange)="onBannerChange($event)" (bannerDelete)="onBannerDelete()" |
16 | ></my-actor-banner-edit> | |
4c8749cb | 17 | |
a37e9e74 | 18 | <my-actor-avatar-edit |
75034888 | 19 | *ngIf="videoChannel" [previewImage]="isCreation()" class="d-block mb-4" |
a37e9e74 | 20 | [actor]="videoChannel" (avatarChange)="onAvatarChange($event)" (avatarDelete)="onAvatarDelete()" |
21 | [displayUsername]="!isCreation()" [displaySubscribers]="!isCreation()" | |
22 | ></my-actor-avatar-edit> | |
4c8749cb | 23 | |
a37e9e74 | 24 | <div class="form-group" *ngIf="isCreation()"> |
25 | <label i18n for="name">Name</label> | |
4c8749cb | 26 | |
a37e9e74 | 27 | <div class="input-group"> |
28 | <input | |
29 | type="text" id="name" i18n-placeholder placeholder="Example: my_channel" | |
75034888 | 30 | formControlName="name" [ngClass]="{ 'input-error': formErrors['name'] }" class="form-control w-auto flex-grow-1 d-block" |
a37e9e74 | 31 | > |
4c8749cb | 32 | <div class="input-group-text">@{{ instanceHost }}</div> |
a37e9e74 | 33 | </div> |
34 | <div *ngIf="formErrors['name']" class="form-error"> | |
35 | {{ formErrors['name'] }} | |
36 | </div> | |
37 | </div> | |
4c8749cb | 38 | |
a37e9e74 | 39 | <div class="form-group"> |
40 | <label i18n for="display-name">Display name</label> | |
41 | <input | |
75034888 | 42 | type="text" id="display-name" class="form-control d-block" |
a37e9e74 | 43 | formControlName="display-name" [ngClass]="{ 'input-error': formErrors['display-name'] }" |
44 | > | |
45 | <div *ngIf="formErrors['display-name']" class="form-error"> | |
46 | {{ formErrors['display-name'] }} | |
47 | </div> | |
48 | </div> | |
4c8749cb | 49 | |
a37e9e74 | 50 | <div class="form-group"> |
51 | <label i18n for="description">Description</label> | |
52 | <textarea | |
75034888 | 53 | id="description" formControlName="description" class="form-control d-block" |
a37e9e74 | 54 | [ngClass]="{ 'input-error': formErrors['description'] }" |
55 | ></textarea> | |
56 | <div *ngIf="formErrors.description" class="form-error"> | |
57 | {{ formErrors.description }} | |
58 | </div> | |
59 | </div> | |
4c8749cb | 60 | |
a37e9e74 | 61 | <div class="form-group"> |
2a491182 | 62 | <label i18n for="support">Support</label> |
a37e9e74 | 63 | <my-help |
64 | helpType="markdownEnhanced" i18n-preHtml preHtml="Short text to tell people how they can support the channel (membership platform...).<br /><br /> | |
65 | When a video is uploaded in this channel, the video support field will be automatically filled by this text." | |
66 | ></my-help> | |
3031971e | 67 | |
a37e9e74 | 68 | <my-markdown-textarea |
75034888 W |
69 | id="support" formControlName="support" class="d-block" |
70 | markdownType="enhanced" [formError]="formErrors['support']" | |
a37e9e74 | 71 | ></my-markdown-textarea> |
a37e9e74 | 72 | </div> |
4c8749cb | 73 | |
a37e9e74 | 74 | <div class="form-group" *ngIf="isBulkUpdateVideosDisplayed()"> |
75 | <my-peertube-checkbox | |
76 | inputName="bulkVideosSupportUpdate" formControlName="bulkVideosSupportUpdate" | |
77 | i18n-labelText labelText="Overwrite support field of all videos of this channel" | |
78 | ></my-peertube-checkbox> | |
79 | </div> | |
4c8749cb | 80 | |
a37e9e74 | 81 | </div> |
82 | </div> | |
4c8749cb C |
83 | |
84 | <div class="row"> <!-- submit placement block --> | |
a37e9e74 | 85 | <div class="col-md-7 col-xl-5"></div> |
86 | <div class="col-md-5 col-xl-5 d-inline-flex"> | |
75034888 | 87 | <input type="submit" class="peertube-button orange-button" value="{{ getFormButtonTitle() }}" [disabled]="!form.valid"> |
a37e9e74 | 88 | </div> |
89 | </div> | |
4c8749cb C |
90 | </form> |
91 | </div> |