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