mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
0d3b8823e4
adding thumbnail loader for faces
135 lines
4.2 KiB
HTML
135 lines
4.2 KiB
HTML
<a class="dropdown-item {{enabled? '' : 'disabled'}}" href="#" (click)="openModal(randomModal)">
|
|
<span class="oi oi-random"></span>
|
|
<ng-container i18n>Random link</ng-container>
|
|
</a>
|
|
|
|
<ng-template #randomModal>
|
|
<!-- sharing Modal-->
|
|
<div class="modal-header">
|
|
<h5 class="modal-title" i18n>Random Link generator</h5>
|
|
<button type="button" class="close" (click)="hideModal()" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-7 col-sm-9">
|
|
<input id="randomLink"
|
|
name="randomLink"
|
|
placeholder="link"
|
|
class="form-control input-md"
|
|
type="text"
|
|
[ngModel]="url">
|
|
</div>
|
|
<div class="col-5 col-sm-3">
|
|
<button id="copyButton" name="copyButton"
|
|
ngxClipboard [cbContent]="url"
|
|
(cbOnSuccess)="onCopy()"
|
|
class="btn btn-primary btn-block" i18n>Copy
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<hr/>
|
|
<div class="row">
|
|
<div class="col-4">
|
|
<label class="control-label" i18n>In Folder:</label>
|
|
</div>
|
|
<div class="col-8">
|
|
<input disabled type="text"
|
|
class="full-width form-control"
|
|
[ngModel]="data.directory">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-4">
|
|
<label class="control-label" i18n>Include subfolders:</label>
|
|
</div>
|
|
<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)]="data.recursive">
|
|
</bSwitch>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-4">
|
|
<label class="control-label" i18n>Orientation:</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<select class="form-control" [(ngModel)]="data.orientation" (change)="update()" name="orientation"
|
|
required>
|
|
<option [ngValue]="OrientationType.any" i18n>Any</option>
|
|
<option [ngValue]="OrientationType.landscape" i18n>Landscape</option>
|
|
<option [ngValue]="OrientationType.portrait" i18n>Portrait</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-4">
|
|
<label class="control-label" i18n>Date:</label>
|
|
</div>
|
|
<div class="col-4 form-group">
|
|
<input type="text"
|
|
placeholder="from: YYYY-MM-DD"
|
|
class="form-control"
|
|
bsDatepicker
|
|
(bsValueChange)="update()"
|
|
[(ngModel)]="data.fromDate"
|
|
[bsConfig]="{ dateInputFormat: 'YYYY-MM-DD' }">
|
|
</div>
|
|
<div class="col-4 form-group">
|
|
<input type="text"
|
|
placeholder="to: YYYY-MM-DD"
|
|
class="form-control"
|
|
bsDatepicker
|
|
(bsValueChange)="update()"
|
|
[(ngModel)]="data.toDate"
|
|
[bsConfig]="{ dateInputFormat: 'YYYY-MM-DD' }">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-4">
|
|
<label class="control-label" i18n>Resolution:</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<div class="input-group">
|
|
<input type="number" class="form-control"
|
|
(change)="update()"
|
|
[(ngModel)]="data.minResolution"
|
|
id="minResolution" placeholder="min" step="1" min="0">
|
|
|
|
<div class="input-group-append">
|
|
<div class="input-group-text">Mpx</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-4">
|
|
<div class="input-group">
|
|
<input type="number" class="form-control"
|
|
(change)="update()"
|
|
[(ngModel)]="data.maxResolution"
|
|
id="maxResolution" placeholder="max" step="1" min="0">
|
|
<div class="input-group-append">
|
|
<div class="input-group-text">Mpx</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</ng-template>
|