mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
103 lines
3.5 KiB
HTML
103 lines
3.5 KiB
HTML
<button id="shareButton" class="btn btn-default navbar-btn btn-link"
|
|
type="button" [disabled]="!enabled" (click)="showModal()">
|
|
<span class="glyphicon glyphicon-share-alt"></span>
|
|
<ng-container i18n>Share</ng-container>
|
|
</button>
|
|
|
|
<!-- sharing Modal-->
|
|
<div bsModal #shareModal="bs-modal"
|
|
class="modal fade" id="shareModal"
|
|
tabindex="-1" role="dialog" aria-labelledby="shareModalLabel"
|
|
[config]="{ backdrop: false }"
|
|
aria-hidden="true">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" (click)="hideModal()" aria-label="Close"><span
|
|
aria-hidden="true">×</span></button>
|
|
<h4 class="modal-title" id="shareModalLabel" i18n>Share</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-sm-10">
|
|
<input id="shareLink"
|
|
name="shareLink"
|
|
placeholder="link"
|
|
class="form-control input-md"
|
|
type="text"
|
|
[ngModel]="url">
|
|
</div>
|
|
<div class="col-sm-2 pull-right">
|
|
<button id="copyButton" name="copyButton"
|
|
ngxClipboard [cbContent]="url"
|
|
(cbOnSuccess)="onCopy()"
|
|
class="btn btn-primary" i18n>Copy
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<hr/>
|
|
<div class="row">
|
|
<div class="col-sm-2">
|
|
<label class="control-label" i18n>Sharing:</label>
|
|
</div>
|
|
<div class="col-sm-10">
|
|
<input disabled type="text"
|
|
class="full-width form-control"
|
|
[ngModel]="currentDir">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-sm-2">
|
|
<label class="control-label" i18n>Include subfolders:</label>
|
|
</div>
|
|
<div class="col-sm-4">
|
|
<input id="recursiveShareBox"
|
|
type="checkbox"
|
|
(change)="update()"
|
|
[(ngModel)]="input.includeSubfolders"
|
|
checked="checked"
|
|
value="remember-me">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-sm-2">
|
|
<label class="control-label">
|
|
<ng-container i18n>Password</ng-container>
|
|
:</label>
|
|
</div>
|
|
<div class="col-sm-4">
|
|
<input id="password"
|
|
class="form-control"
|
|
type="password"
|
|
(change)="update()"
|
|
[(ngModel)]="input.password"
|
|
placeholder="Password">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-sm-2">
|
|
<label class="control-label" i18n>Valid:</label>
|
|
</div>
|
|
<div class="col-sm-3" style="padding-right: 1px">
|
|
<input class="form-control" [(ngModel)]="input.valid.amount" (change)="update()"
|
|
name="validAmount"
|
|
type="number" min="0" step="1"/>
|
|
</div>
|
|
<div class="col-sm-3" style="padding-left: 1px">
|
|
<select class="form-control col-md-3" [(ngModel)]="input.valid.type" (change)="update()" name="validType"
|
|
required>
|
|
<option *ngFor="let repository of validityTypes" [value]="repository.key">{{repository.value}}
|
|
</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|