Add to playlist dropdown
[oweals/peertube.git] / client / src / app / videos / +video-watch / modal / video-share.component.html
1 <ng-template #modal let-hide="close">
2   <div class="modal-header">
3     <h4 i18n class="modal-title">Share</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
9     <div class="start-at">
10       <my-peertube-checkbox
11         inputName="startAt" [(ngModel)]="startAtCheckbox"
12         i18n-labelText labelText="Start at"
13       ></my-peertube-checkbox>
14
15       <my-timestamp-input
16         [timestamp]="currentVideoTimestamp"
17         [maxTimestamp]="video.duration"
18         [disabled]="!startAtCheckbox"
19         [(ngModel)]="currentVideoTimestamp"
20       >
21       </my-timestamp-input>
22     </div>
23
24     <div class="form-group">
25       <label i18n>URL</label>
26       <div class="input-group input-group-sm">
27         <input #urlInput (click)="urlInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getVideoUrl()" />
28         <div class="input-group-append">
29           <button [ngxClipboard]="urlInput" (click)="activateCopiedMessage()" type="button" class="btn btn-outline-secondary">
30             <span class="glyphicon glyphicon-copy"></span>
31           </button>
32         </div>
33       </div>
34     </div>
35
36     <div class="form-group qr-code-group">
37       <label i18n>QR-Code</label>
38       <ngx-qrcode qrc-element-type="url" [qrc-value]="getVideoUrl()" qrc-errorCorrectionLevel="Q"></ngx-qrcode>
39     </div>
40
41     <div class="form-group">
42       <label i18n>Embed</label>
43       <div class="input-group input-group-sm">
44         <input #shareInput (click)="shareInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getVideoIframeCode()" />
45         <div class="input-group-append">
46           <button [ngxClipboard]="shareInput" (click)="activateCopiedMessage()" type="button" class="btn btn-outline-secondary">
47             <span class="glyphicon glyphicon-copy"></span>
48           </button>
49         </div>
50       </div>
51     </div>
52
53     <div i18n *ngIf="notSecure()" class="alert alert-warning">
54       The url is not secured (no HTTPS), so the embed video won't work on HTTPS websites (web browsers block non secured HTTP requests on HTTPS websites).
55     </div>
56   </div>
57
58   <div class="modal-footer inputs">
59     <span i18n class="action-button action-button-cancel" (click)="hide()">Close</span>
60   </div>
61
62 </ng-template>