1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/frontend/app/gallery/share/share.gallery.component.html

112 lines
3.9 KiB
HTML
Raw Normal View History

2018-05-14 04:59:57 +08:00
<button id="shareButton" class="nav-link btn btn-default btn-link"
2017-07-09 18:03:17 +08:00
type="button" [disabled]="!enabled" (click)="showModal()">
2018-05-14 04:59:57 +08:00
<span class="oi oi-share"></span>
<ng-container i18n>Share</ng-container>
2017-07-08 04:54:18 +08:00
</button>
2017-07-04 01:17:49 +08:00
<!-- sharing Modal-->
2017-07-09 18:03:17 +08:00
<div bsModal #shareModal="bs-modal"
class="modal fade" id="shareModal"
tabindex="-1" role="dialog" aria-labelledby="shareModalLabel"
[config]="{ backdrop: false }"
2017-07-04 01:17:49 +08:00
aria-hidden="true">
2018-05-14 04:59:57 +08:00
<div class="modal-dialog" role="document">
2017-07-04 01:17:49 +08:00
<div class="modal-content">
<div class="modal-header">
2018-05-14 04:59:57 +08:00
<h5 class="modal-title" id="shareModalLabel" i18n>Share</h5>
<button type="button" class="close" (click)="hideModal()" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
2017-07-04 01:17:49 +08:00
</div>
<div class="modal-body">
<div class="row">
2018-05-14 04:59:57 +08:00
<div class="col-9">
2017-07-09 18:03:17 +08:00
<input id="shareLink"
name="shareLink"
placeholder="link"
class="form-control input-md"
type="text"
2017-07-04 01:17:49 +08:00
[ngModel]="url">
</div>
2018-05-14 04:59:57 +08:00
<div class="col-3">
2017-07-09 18:03:17 +08:00
<button id="copyButton" name="copyButton"
ngxClipboard [cbContent]="url"
(cbOnSuccess)="onCopy()"
2018-05-14 04:59:57 +08:00
class="btn btn-primary btn-block" i18n>Copy
2017-07-04 01:17:49 +08:00
</button>
</div>
</div>
<hr/>
2017-07-09 18:03:17 +08:00
<div class="row">
2018-05-14 04:59:57 +08:00
<div class="col-4">
<label class="control-label" i18n>Sharing:</label>
2017-07-09 18:03:17 +08:00
</div>
2018-05-14 04:59:57 +08:00
<div class="col-8">
2017-07-09 18:03:17 +08:00
<input disabled type="text"
class="full-width form-control"
[ngModel]="currentDir">
2017-07-04 01:17:49 +08:00
</div>
</div>
2017-07-09 18:03:17 +08:00
2017-07-04 01:17:49 +08:00
<div class="row">
2018-05-14 04:59:57 +08:00
<div class="col-4">
<label class="control-label" i18n>Include subfolders:</label>
2017-07-09 18:03:17 +08:00
</div>
2018-05-14 04:59:57 +08:00
<div class="col-8">
<bSwitch
class="switch"
name="includeSubfolders"
[switch-on-color]="'success'"
[switch-inverse]="'inverse'"
[switch-off-text]="text.No"
[switch-on-text]="text.Yes"
[switch-handle-width]="'100'"
[switch-label-width]="'20'"
(change)="update()"
[(ngModel)]="input.includeSubfolders">
</bSwitch>
2017-07-09 18:03:17 +08:00
</div>
</div>
<div class="row">
2018-05-14 04:59:57 +08:00
<div class="col-4">
<label class="control-label">
<ng-container i18n>Password</ng-container>
2018-02-04 08:50:42 +08:00
:
</label>
2017-07-04 01:17:49 +08:00
</div>
2018-05-14 04:59:57 +08:00
<div class="col-8">
2017-07-09 18:03:17 +08:00
<input id="password"
class="form-control"
type="password"
(change)="update()"
[(ngModel)]="input.password"
2018-02-04 08:50:42 +08:00
i18n-placeholder
2017-07-09 18:03:17 +08:00
placeholder="Password">
</div>
</div>
<div class="row">
2018-05-14 04:59:57 +08:00
<div class="col-4">
<label class="control-label" i18n>Valid:</label>
2017-07-09 18:03:17 +08:00
</div>
2018-05-14 04:59:57 +08:00
<div class="col-4" style="padding-right: 1px">
2017-07-09 18:03:17 +08:00
<input class="form-control" [(ngModel)]="input.valid.amount" (change)="update()"
2017-07-04 01:17:49 +08:00
name="validAmount"
type="number" min="0" step="1"/>
</div>
2018-05-14 04:59:57 +08:00
<div class="col-4" style="padding-left: 1px">
<select class="form-control" [(ngModel)]="input.valid.type" (change)="update()" name="validType"
2017-07-09 18:03:17 +08:00
required>
2018-05-14 04:59:57 +08:00
<option [ngValue]="ValidityTypes.Minutes" i18n>Minutes</option>
<option [ngValue]="ValidityTypes.Hours" i18n>Hours</option>
<option [ngValue]="ValidityTypes.Days" i18n>Days</option>
<option [ngValue]="ValidityTypes.Months" i18n>Months</option>
2017-07-04 01:17:49 +08:00
</select>
</div>
</div>
</div>
</div>
</div>
</div>