diff options
author | Chocobozzz <me@florianbigard.com> | 2022-06-08 16:14:24 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-06-10 09:21:00 +0200 |
commit | 4c8749cb9e1e4a8d61697434e372f342def7bc70 (patch) | |
tree | 0e1b64d119b5077113163e147b711d8db5c6dd7e /client/src/app/+manage | |
parent | b89b0bfce9bb79d81f9761b07b04d0c4e5aa25c1 (diff) | |
download | PeerTube-4c8749cb9e1e4a8d61697434e372f342def7bc70.tar.gz PeerTube-4c8749cb9e1e4a8d61697434e372f342def7bc70.tar.zst PeerTube-4c8749cb9e1e4a8d61697434e372f342def7bc70.zip |
Migrate to bootstrap 5
Diffstat (limited to 'client/src/app/+manage')
-rw-r--r-- | client/src/app/+manage/video-channel-edit/video-channel-edit.component.html | 37 | ||||
-rw-r--r-- | client/src/app/+manage/video-channel-edit/video-channel-edit.component.scss | 32 |
2 files changed, 29 insertions, 40 deletions
diff --git a/client/src/app/+manage/video-channel-edit/video-channel-edit.component.html b/client/src/app/+manage/video-channel-edit/video-channel-edit.component.html index 3751747a9..61b89082c 100644 --- a/client/src/app/+manage/video-channel-edit/video-channel-edit.component.html +++ b/client/src/app/+manage/video-channel-edit/video-channel-edit.component.html | |||
@@ -3,42 +3,41 @@ | |||
3 | <div class="margin-content"> | 3 | <div class="margin-content"> |
4 | <form role="form" (ngSubmit)="formValidated()" [formGroup]="form"> | 4 | <form role="form" (ngSubmit)="formValidated()" [formGroup]="form"> |
5 | 5 | ||
6 | <div class="form-row"> <!-- channel grid --> | 6 | <div class="row"> <!-- channel grid --> |
7 | <div class="form-group col-12 col-lg-4 col-xl-3"> | 7 | <div class="col-12 col-lg-4 col-xl-3"> |
8 | <div *ngIf="isCreation()" class="video-channel-title" i18n>NEW CHANNEL</div> | 8 | <div *ngIf="isCreation()" class="video-channel-title" i18n>NEW CHANNEL</div> |
9 | <div *ngIf="!isCreation() && videoChannel" class="video-channel-title" i18n>CHANNEL</div> | 9 | <div *ngIf="!isCreation() && videoChannel" class="video-channel-title" i18n>CHANNEL</div> |
10 | </div> | 10 | </div> |
11 | 11 | ||
12 | <div class="form-group col-12 col-lg-8 col-xl-9"> | 12 | <div class="col-12 col-lg-8 col-xl-9"> |
13 | <h6 i18n>Banner image of the channel</h6> | 13 | <h6 i18n>Banner image of the channel</h6> |
14 | 14 | ||
15 | <my-actor-banner-edit | 15 | <my-actor-banner-edit |
16 | *ngIf="videoChannel" [previewImage]="isCreation()" | 16 | *ngIf="videoChannel" [previewImage]="isCreation()" |
17 | [actor]="videoChannel" (bannerChange)="onBannerChange($event)" (bannerDelete)="onBannerDelete()" | 17 | [actor]="videoChannel" (bannerChange)="onBannerChange($event)" (bannerDelete)="onBannerDelete()" |
18 | ></my-actor-banner-edit> | 18 | ></my-actor-banner-edit> |
19 | 19 | ||
20 | <my-actor-avatar-edit | 20 | <my-actor-avatar-edit |
21 | *ngIf="videoChannel" [previewImage]="isCreation()" | 21 | *ngIf="videoChannel" [previewImage]="isCreation()" |
22 | [actor]="videoChannel" (avatarChange)="onAvatarChange($event)" (avatarDelete)="onAvatarDelete()" | 22 | [actor]="videoChannel" (avatarChange)="onAvatarChange($event)" (avatarDelete)="onAvatarDelete()" |
23 | [displayUsername]="!isCreation()" [displaySubscribers]="!isCreation()" | 23 | [displayUsername]="!isCreation()" [displaySubscribers]="!isCreation()" |
24 | ></my-actor-avatar-edit> | 24 | ></my-actor-avatar-edit> |
25 | 25 | ||
26 | <div class="form-group" *ngIf="isCreation()"> | 26 | <div class="form-group" *ngIf="isCreation()"> |
27 | <label i18n for="name">Name</label> | 27 | <label i18n for="name">Name</label> |
28 | |||
28 | <div class="input-group"> | 29 | <div class="input-group"> |
29 | <input | 30 | <input |
30 | type="text" id="name" i18n-placeholder placeholder="Example: my_channel" | 31 | type="text" id="name" i18n-placeholder placeholder="Example: my_channel" |
31 | formControlName="name" [ngClass]="{ 'input-error': formErrors['name'] }" class="form-control" | 32 | formControlName="name" [ngClass]="{ 'input-error': formErrors['name'] }" class="form-control" |
32 | > | 33 | > |
33 | <div class="input-group-append"> | 34 | <div class="input-group-text">@{{ instanceHost }}</div> |
34 | <span class="input-group-text">@{{ instanceHost }}</span> | ||
35 | </div> | ||
36 | </div> | 35 | </div> |
37 | <div *ngIf="formErrors['name']" class="form-error"> | 36 | <div *ngIf="formErrors['name']" class="form-error"> |
38 | {{ formErrors['name'] }} | 37 | {{ formErrors['name'] }} |
39 | </div> | 38 | </div> |
40 | </div> | 39 | </div> |
41 | 40 | ||
42 | <div class="form-group"> | 41 | <div class="form-group"> |
43 | <label i18n for="display-name">Display name</label> | 42 | <label i18n for="display-name">Display name</label> |
44 | <input | 43 | <input |
@@ -49,7 +48,7 @@ | |||
49 | {{ formErrors['display-name'] }} | 48 | {{ formErrors['display-name'] }} |
50 | </div> | 49 | </div> |
51 | </div> | 50 | </div> |
52 | 51 | ||
53 | <div class="form-group"> | 52 | <div class="form-group"> |
54 | <label i18n for="description">Description</label> | 53 | <label i18n for="description">Description</label> |
55 | <textarea | 54 | <textarea |
@@ -60,7 +59,7 @@ | |||
60 | {{ formErrors.description }} | 59 | {{ formErrors.description }} |
61 | </div> | 60 | </div> |
62 | </div> | 61 | </div> |
63 | 62 | ||
64 | <div class="form-group"> | 63 | <div class="form-group"> |
65 | <label for="support">Support</label> | 64 | <label for="support">Support</label> |
66 | <my-help | 65 | <my-help |
@@ -75,22 +74,22 @@ | |||
75 | {{ formErrors.support }} | 74 | {{ formErrors.support }} |
76 | </div> | 75 | </div> |
77 | </div> | 76 | </div> |
78 | 77 | ||
79 | <div class="form-group" *ngIf="isBulkUpdateVideosDisplayed()"> | 78 | <div class="form-group" *ngIf="isBulkUpdateVideosDisplayed()"> |
80 | <my-peertube-checkbox | 79 | <my-peertube-checkbox |
81 | inputName="bulkVideosSupportUpdate" formControlName="bulkVideosSupportUpdate" | 80 | inputName="bulkVideosSupportUpdate" formControlName="bulkVideosSupportUpdate" |
82 | i18n-labelText labelText="Overwrite support field of all videos of this channel" | 81 | i18n-labelText labelText="Overwrite support field of all videos of this channel" |
83 | ></my-peertube-checkbox> | 82 | ></my-peertube-checkbox> |
84 | </div> | 83 | </div> |
85 | 84 | ||
86 | </div> | 85 | </div> |
87 | </div> | 86 | </div> |
88 | 87 | ||
89 | <div class="form-row"> <!-- submit placement block --> | 88 | <div class="row"> <!-- submit placement block --> |
90 | <div class="col-md-7 col-xl-5"></div> | 89 | <div class="col-md-7 col-xl-5"></div> |
91 | <div class="col-md-5 col-xl-5 d-inline-flex"> | 90 | <div class="col-md-5 col-xl-5 d-inline-flex"> |
92 | <input type="submit" value="{{ getFormButtonTitle() }}" [disabled]="!form.valid"> | 91 | <input type="submit" value="{{ getFormButtonTitle() }}" [disabled]="!form.valid"> |
93 | </div> | 92 | </div> |
94 | </div> | 93 | </div> |
95 | </form> | 94 | </form> |
96 | </div> \ No newline at end of file | 95 | </div> |
diff --git a/client/src/app/+manage/video-channel-edit/video-channel-edit.component.scss b/client/src/app/+manage/video-channel-edit/video-channel-edit.component.scss index d010d6277..2c720314a 100644 --- a/client/src/app/+manage/video-channel-edit/video-channel-edit.component.scss +++ b/client/src/app/+manage/video-channel-edit/video-channel-edit.component.scss | |||
@@ -24,31 +24,21 @@ my-actor-banner-edit { | |||
24 | max-width: 500px; | 24 | max-width: 500px; |
25 | } | 25 | } |
26 | 26 | ||
27 | .input-group { | 27 | input[type=text] { |
28 | @include peertube-input-group(fit-content); | 28 | @include peertube-input-text(340px); |
29 | } | ||
30 | |||
31 | .input-group-append { | ||
32 | height: 30px; | ||
33 | } | ||
34 | |||
35 | input { | ||
36 | &[type=text] { | ||
37 | @include peertube-input-text(340px); | ||
38 | 29 | ||
39 | display: block; | 30 | display: block; |
40 | 31 | ||
41 | &#name { | 32 | &#name { |
42 | width: auto; | 33 | width: auto; |
43 | flex-grow: 1; | 34 | flex-grow: 1; |
44 | } | ||
45 | } | 35 | } |
36 | } | ||
46 | 37 | ||
47 | &[type=submit] { | 38 | input[type=submit] { |
48 | @include peertube-button; | 39 | @include peertube-button; |
49 | @include orange-button; | 40 | @include orange-button; |
50 | @include margin-left(auto); | 41 | @include margin-left(auto); |
51 | } | ||
52 | } | 42 | } |
53 | 43 | ||
54 | textarea { | 44 | textarea { |