aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-forms/input-text.component.html
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/shared-forms/input-text.component.html')
-rw-r--r--client/src/app/shared/shared-forms/input-text.component.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/client/src/app/shared/shared-forms/input-text.component.html b/client/src/app/shared/shared-forms/input-text.component.html
new file mode 100644
index 000000000..f7f9ce403
--- /dev/null
+++ b/client/src/app/shared/shared-forms/input-text.component.html
@@ -0,0 +1,19 @@
1<div class="input-group">
2 <input
3 [id]="inputId" [autocomplete]="autocomplete" [value]="value" [placeholder]="placeholder" [tabindex]="tabindex"
4 [(ngModel)]="value" (ngModelChange)="update()" [readonly]="readonly"
5 #input (click)="input.select()" (input)="update()" (change)="update()" [type]="inputType" class="form-control"
6 />
7
8 <button *ngIf="withToggle" (click)="toggle()" type="button" class="btn btn-outline-secondary eye-button" [title]="toggleTitle">
9 <span class="glyphicon glyphicon-eye-{{ show ? 'open' : 'close' }}"></span>
10 </button>
11
12 <button
13 *ngIf="withCopy" [cdkCopyToClipboard]="input.value" (click)="activateCopiedMessage()" type="button"
14 class="btn btn-outline-secondary text-uppercase" i18n-title title="Copy"
15 >
16 <my-global-icon iconName="copy"></my-global-icon>
17 <span class="copy-text">Copy</span>
18 </button>
19</div>