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>
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>
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>
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>
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>
32 <div class=
"modal-footer inputs">
33 <span i18n
class=
"action-button action-button-cancel" (click)=
"hide()">
38 type=
"submit" i18n-value
value=
"Download" class=
"action-button-submit"