Migrate to bootstrap 4 and ng-bootstrap
[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     <span class="close" aria-hidden="true" (click)="hide()"></span>
5   </div>
6
7   <div class="modal-body">
8     <div class="form-group">
9       <label i18n>URL</label>
10       <div class="input-group input-group-sm">
11         <input #urlInput (click)="urlInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getVideoUrl()" />
12         <div class="input-group-append">
13           <button [ngxClipboard]="urlInput" (click)="activateCopiedMessage()" type="button" class="btn btn-outline-secondary">
14             <span class="glyphicon glyphicon-copy"></span>
15           </button>
16         </div>
17       </div>
18     </div>
19
20     <div class="form-group">
21       <label i18n>Embed</label>
22       <div class="input-group input-group-sm">
23         <input #shareInput (click)="shareInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getVideoIframeCode()" />
24         <div class="input-group-append">
25           <button [ngxClipboard]="shareInput" (click)="activateCopiedMessage()" type="button" class="btn btn-outline-secondary">
26             <span class="glyphicon glyphicon-copy"></span>
27           </button>
28         </div>
29       </div>
30     </div>
31
32     <div i18n *ngIf="notSecure()" class="alert alert-warning">
33       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).
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   </div>
41
42   <div class="modal-footer inputs">
43     <span i18n class="action-button action-button-cancel" (click)="hide()">Cancel</span>
44   </div>
45
46 </ng-template>