]>
Commit | Line | Data |
---|---|---|
628c1553 RK |
1 | <nav aria-label="breadcrumb"> |
2 | <ol class="breadcrumb"> | |
3 | <li class="breadcrumb-item"> | |
4 | <a routerLink="/my-account/video-playlists" i18n>My Playlists</a> | |
5 | </li> | |
6 | ||
7 | <ng-container *ngIf="isCreation()"> | |
8 | <li class="breadcrumb-item active" i18n>Create</li> | |
9 | </ng-container> | |
10 | <ng-container *ngIf="!isCreation()"> | |
11 | <li class="breadcrumb-item active" i18n>Edit</li> | |
12 | <li class="breadcrumb-item active" aria-current="page"> | |
13 | <a *ngIf="videoPlaylistToUpdate" [routerLink]="[ '/my-account/video-playlists/update', videoPlaylistToUpdate?.uuid ]">{{ videoPlaylistToUpdate?.displayName }}</a> | |
14 | </li> | |
15 | </ng-container> | |
16 | </ol> | |
17 | </nav> | |
830b4faf C |
18 | |
19 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> | |
20 | ||
21 | <form role="form" (ngSubmit)="formValidated()" [formGroup]="form"> | |
830b4faf | 22 | |
628c1553 RK |
23 | <div class="form-row"> <!-- playlist grid --> |
24 | <div class="form-group col-12 col-lg-4 col-xl-3"> | |
25 | <div *ngIf="isCreation()" class="video-playlist-title" i18n>NEW PLAYLIST</div> | |
26 | <div *ngIf="!isCreation() && videoPlaylistToUpdate" class="video-playlist-title" i18n>PLAYLIST</div> | |
830b4faf C |
27 | </div> |
28 | ||
628c1553 RK |
29 | <div class="form-group form-group-right col-12 col-lg-8 col-xl-9"> |
30 | ||
31 | <div class="col-md-12 col-xl-6"> | |
32 | <div class="form-group"> | |
33 | <label i18n for="displayName">Display name</label> | |
34 | <input | |
35 | type="text" id="displayName" | |
36 | formControlName="displayName" [ngClass]="{ 'input-error': formErrors['displayName'] }" | |
37 | > | |
38 | <div *ngIf="formErrors['displayName']" class="form-error"> | |
39 | {{ formErrors['displayName'] }} | |
40 | </div> | |
830b4faf C |
41 | </div> |
42 | ||
628c1553 RK |
43 | <div class="form-group"> |
44 | <label i18n for="description">Description</label> | |
45 | <textarea | |
46 | id="description" formControlName="description" | |
47 | [ngClass]="{ 'input-error': formErrors['description'] }" | |
48 | ></textarea> | |
49 | <div *ngIf="formErrors.description" class="form-error"> | |
50 | {{ formErrors.description }} | |
51 | </div> | |
830b4faf C |
52 | </div> |
53 | </div> | |
54 | ||
628c1553 RK |
55 | <div class="col-md-12 col-xl-6"> |
56 | <div class="form-group"> | |
57 | <label i18n for="privacy">Privacy</label> | |
58 | <div class="peertube-select-container"> | |
59 | <select id="privacy" formControlName="privacy"> | |
60 | <option *ngFor="let privacy of videoPlaylistPrivacies" [value]="privacy.id">{{ privacy.label }}</option> | |
61 | </select> | |
62 | </div> | |
63 | ||
64 | <div *ngIf="formErrors.privacy" class="form-error"> | |
65 | {{ formErrors.privacy }} | |
66 | </div> | |
830b4faf | 67 | </div> |
978c9d49 | 68 | |
628c1553 RK |
69 | <div class="form-group"> |
70 | <label i18n>Channel</label> | |
71 | <div class="peertube-select-container"> | |
72 | <select formControlName="videoChannelId"> | |
73 | <option></option> | |
74 | <option *ngFor="let channel of userVideoChannels" [value]="channel.id">{{ channel.label }}</option> | |
75 | </select> | |
76 | </div> | |
77 | ||
78 | <div *ngIf="formErrors['videoChannelId']" class="form-error"> | |
79 | {{ formErrors['videoChannelId'] }} | |
80 | </div> | |
978c9d49 | 81 | </div> |
830b4faf | 82 | |
628c1553 RK |
83 | <div class="form-group"> |
84 | <label i18n>Playlist thumbnail</label> | |
85 | ||
86 | <my-preview-upload | |
87 | i18n-inputLabel inputLabel="Edit" inputName="thumbnailfile" formControlName="thumbnailfile" | |
88 | previewWidth="223px" previewHeight="122px" | |
89 | ></my-preview-upload> | |
90 | </div> | |
91 | </div> | |
7b992a86 | 92 | |
628c1553 RK |
93 | <div class="form-row"> <!-- submit placement block --> |
94 | <div class="col-md-7 col-xl-5"></div> | |
95 | <div class="col-md-5 col-xl-5 d-inline-flex"> | |
96 | <input type="submit" value="{{ getFormButtonTitle() }}" [disabled]="!form.valid"> | |
97 | </div> | |
830b4faf C |
98 | </div> |
99 | </div> | |
100 | </div> | |
f0a39880 | 101 | |
830b4faf | 102 | </form> |