Merge branch 'feature/audio-upload' into develop
[oweals/peertube.git] / client / src / app / shared / video / modals / video-download.component.html
1 <ng-template #modal let-hide="close">
2   <div class="modal-header">
3     <h4 i18n class="modal-title">Download video</h4>
4     <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon>
5   </div>
6
7   <div class="modal-body">
8     <div class="form-group">
9       <div class="input-group input-group-sm">
10         <div class="input-group-prepend peertube-select-container">
11           <select [(ngModel)]="resolutionId">
12             <option *ngFor="let file of video?.files" [value]="file.resolution.id">{{ file.resolution.label }}</option>
13           </select>
14         </div>
15         <input #urlInput (click)="urlInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getLink()" />
16         <div class="input-group-append">
17           <button [ngxClipboard]="urlInput" (click)="activateCopiedMessage()" type="button" class="btn btn-outline-secondary">
18             <span class="glyphicon glyphicon-copy"></span>
19           </button>
20         </div>
21       </div>
22     </div>
23
24     <div class="download-type">
25       <div class="peertube-radio-container">
26         <input type="radio" name="download" id="download-direct" [(ngModel)]="downloadType" value="direct">
27         <label i18n for="download-direct">Direct download</label>
28       </div>
29
30       <div class="peertube-radio-container">
31         <input type="radio" name="download" id="download-torrent" [(ngModel)]="downloadType" value="torrent">
32         <label i18n for="download-torrent">Torrent (.torrent file)</label>
33       </div>
34
35       <div class="peertube-radio-container">
36         <input type="radio" name="download" id="download-magnet" [(ngModel)]="downloadType" value="magnet">
37         <label i18n for="download-magnet">Torrent (magnet link)</label>
38       </div>
39     </div>
40   </div>
41
42   <div class="modal-footer inputs">
43     <span i18n class="action-button action-button-cancel" (click)="hide()">
44       Cancel
45     </span>
46
47     <input
48       type="submit" i18n-value value="Download" class="action-button-submit"
49       (click)="download()"
50     >
51   </div>
52 </ng-template>