]>
Commit | Line | Data |
---|---|---|
63347a0f C |
1 | <ng-template #modal let-hide="close"> |
2 | <div class="modal-header"> | |
3 | <h4 i18n class="modal-title">Download video</h4> | |
4 | <span class="close" aria-hidden="true" (click)="hide()"></span> | |
5 | </div> | |
5f0805d3 | 6 | |
63347a0f C |
7 | <div class="modal-body"> |
8 | <div class="peertube-select-container"> | |
9 | <select [(ngModel)]="resolutionId"> | |
10 | <option *ngFor="let file of video.files" [value]="file.resolution.id">{{ file.resolution.label }}</option> | |
11 | </select> | |
12 | </div> | |
5511da62 | 13 | |
63347a0f C |
14 | <div class="download-type"> |
15 | <div class="peertube-radio-container"> | |
16 | <input type="radio" name="download" id="download-direct" [(ngModel)]="downloadType" value="direct"> | |
17 | <label i18n for="download-direct">Direct download</label> | |
18 | </div> | |
0727cab0 | 19 | |
63347a0f C |
20 | <div class="peertube-radio-container"> |
21 | <input type="radio" name="download" id="download-torrent" [(ngModel)]="downloadType" value="torrent"> | |
22 | <label i18n for="download-torrent">Torrent (.torrent file)</label> | |
23 | </div> | |
a96aed15 | 24 | |
63347a0f C |
25 | <div class="peertube-radio-container"> |
26 | <input type="radio" name="download" id="download-magnet" [(ngModel)]="downloadType" value="magnet"> | |
27 | <label i18n for="download-magnet">Torrent (magnet link)</label> | |
a96aed15 C |
28 | </div> |
29 | </div> | |
30 | </div> | |
63347a0f C |
31 | |
32 | <div class="modal-footer inputs"> | |
33 | <span i18n class="action-button action-button-cancel" (click)="hide()"> | |
34 | Cancel | |
35 | </span> | |
36 | ||
37 | <input | |
38 | type="submit" i18n-value value="Download" class="action-button-submit" | |
39 | (click)="download()" | |
40 | > | |
41 | </div> | |
42 | </ng-template> |