]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/video-playlist/video-add-to-playlist.component.html
Fix upnext, refactor avatar menu, add to playlist overflow
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / video-playlist / video-add-to-playlist.component.html
CommitLineData
3a0fb65c
C
1<div class="root">
2 <div class="header">
3 <div class="first-row">
4 <div i18n class="title">Save to</div>
f0a39880 5
3a0fb65c
C
6 <div class="options" (click)="displayOptions = !displayOptions">
7 <my-global-icon iconName="cog"></my-global-icon>
f0a39880 8
3a0fb65c
C
9 <span i18n>Options</span>
10 </div>
f0a39880 11 </div>
f0a39880 12
3a0fb65c
C
13 <div class="options-row" *ngIf="displayOptions">
14 <div>
15 <my-peertube-checkbox
16 inputName="startAt" [(ngModel)]="timestampOptions.startTimestampEnabled"
17 i18n-labelText labelText="Start at"
18 ></my-peertube-checkbox>
f0a39880 19
3a0fb65c
C
20 <my-timestamp-input
21 [timestamp]="timestampOptions.startTimestamp"
22 [maxTimestamp]="video.duration"
23 [disabled]="!timestampOptions.startTimestampEnabled"
24 [(ngModel)]="timestampOptions.startTimestamp"
25 ></my-timestamp-input>
26 </div>
f0a39880 27
3a0fb65c
C
28 <div>
29 <my-peertube-checkbox
30 inputName="stopAt" [(ngModel)]="timestampOptions.stopTimestampEnabled"
31 i18n-labelText labelText="Stop at"
32 ></my-peertube-checkbox>
f0a39880 33
3a0fb65c
C
34 <my-timestamp-input
35 [timestamp]="timestampOptions.stopTimestamp"
36 [maxTimestamp]="video.duration"
37 [disabled]="!timestampOptions.stopTimestampEnabled"
38 [(ngModel)]="timestampOptions.stopTimestamp"
39 ></my-timestamp-input>
40 </div>
f0a39880
C
41 </div>
42 </div>
f0a39880 43
223b24e6
RK
44 <div class="playlists">
45 <div class="playlist dropdown-item" *ngFor="let playlist of videoPlaylists" (click)="togglePlaylist($event, playlist)">
46 <my-peertube-checkbox [inputName]="'in-playlist-' + playlist.id" [(ngModel)]="playlist.inPlaylist" [onPushWorkaround]="true"></my-peertube-checkbox>
f0a39880 47
223b24e6
RK
48 <div class="display-name">
49 {{ playlist.displayName }}
f0a39880 50
223b24e6
RK
51 <div *ngIf="playlist.inPlaylist && (playlist.startTimestamp || playlist.stopTimestamp)" class="timestamp-info">
52 {{ formatTimestamp(playlist) }}
53 </div>
3a0fb65c 54 </div>
f0a39880
C
55 </div>
56 </div>
f0a39880 57
3a0fb65c
C
58 <div class="new-playlist-button dropdown-item" (click)="openCreateBlock($event)" [hidden]="isNewPlaylistBlockOpened">
59 <my-global-icon iconName="add"></my-global-icon>
f0a39880 60
8dfceec4 61 Create a private playlist
3a0fb65c 62 </div>
f0a39880 63
3a0fb65c
C
64 <form class="new-playlist-block dropdown-item" *ngIf="isNewPlaylistBlockOpened" (ngSubmit)="createPlaylist()" [formGroup]="form">
65 <div class="form-group">
66 <label i18n for="displayName">Display name</label>
67 <input
68 type="text" id="displayName"
69 formControlName="displayName" [ngClass]="{ 'input-error': formErrors['displayName'] }"
70 >
71 <div *ngIf="formErrors['displayName']" class="form-error">
72 {{ formErrors['displayName'] }}
73 </div>
f0a39880 74 </div>
f0a39880 75
3a0fb65c
C
76 <input type="submit" i18n-value value="Create" [disabled]="!form.valid">
77 </form>
78</div>