aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-watch/modal/video-download.component.html
blob: f8f17a47131e0b1b97b32f4a17851d595b2e641f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<div bsModal #modal="bs-modal" class="modal" tabindex="-1">
  <div class="modal-dialog">
    <div class="modal-content">

      <div class="modal-header">
        <span class="close" aria-hidden="true" (click)="hide()"></span>
        <h4 class="modal-title">Download video</h4>
      </div>

      <div class="modal-body">
        <div class="peertube-select-container">
          <select [(ngModel)]="resolution">
            <option *ngFor="let file of video.files" [value]="file.resolution">{{ file.resolutionLabel }}</option>
          </select>
        </div>

        <div class="download-type">
          <div class="peertube-radio-container">
            <input type="radio" name="download" id="download-torrent" [(ngModel)]="downloadType" value="torrent">
            <label for="download-torrent">Torrent</label>
          </div>

          <div class="peertube-radio-container">
            <input type="radio" name="download" id="download-direct" [(ngModel)]="downloadType" value="direct">
            <label for="download-direct">Direct download</label>
          </div>
        </div>

        <div class="form-group inputs">
          <span class="action-button action-button-cancel" (click)="hide()">
            Cancel
          </span>

          <input
            type="submit" value="Download" class="action-button-submit"
            (click)="download()"
          >
        </div>
      </div>
    </div>
  </div>
</div>