mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00

Adds custom fields of certain data types, attachable to documents and searchable Co-Authored-By: Trenton H <797416+stumpylog@users.noreply.github.com>
27 lines
1.4 KiB
HTML
27 lines
1.4 KiB
HTML
<div class="mb-3" [class.pb-3]="error">
|
|
<div class="row">
|
|
<div class="d-flex align-items-center position-relative hidden-button-container" [class.col-md-3]="horizontal">
|
|
<label class="form-label mb-md-0" [for]="inputId">{{title}}</label>
|
|
<button type="button" *ngIf="removable" class="btn btn-sm btn-danger position-absolute left-0" (click)="removed.emit(this)">
|
|
<svg class="sidebaricon" fill="currentColor">
|
|
<use xlink:href="assets/bootstrap-icons.svg#x"/>
|
|
</svg> <ng-container i18n>Remove</ng-container>
|
|
</button>
|
|
</div>
|
|
<div [class.col-md-9]="horizontal">
|
|
<div class="input-group" [class.is-invalid]="error">
|
|
<input #inputField type="url" class="form-control" [class.is-invalid]="error" placeholder="https://" [id]="inputId" [(ngModel)]="value" (change)="onChange(value)" [disabled]="disabled">
|
|
<a class="btn btn-outline-secondary rounded-end" title="Open link" i18n-title [href]="value" target="_blank">
|
|
<svg class="buttonicon mb-1" fill="currentColor">
|
|
<use xlink:href="assets/bootstrap-icons.svg#box-arrow-up-right" />
|
|
</svg>
|
|
</a>
|
|
<div class="invalid-feedback position-absolute top-100">
|
|
{{error}}
|
|
</div>
|
|
</div>
|
|
<small *ngIf="hint" class="form-text text-muted" [innerHTML]="hint | safeHtml"></small>
|
|
</div>
|
|
</div>
|
|
</div>
|