mirror of
https://github.com/bitwarden/web
synced 2025-12-06 00:03:28 +00:00
* Break form controls up into reusable components * Add proper form styling, validation, inline error messages, etc * Move control options into class instead of template * Add accessibility
27 lines
809 B
HTML
27 lines
809 B
HTML
<div class="form-group">
|
|
<label>{{ label }}</label>
|
|
<div class="input-group">
|
|
<input class="form-control" readonly [value]="controlValue" />
|
|
<div class="input-group-append" *ngIf="showLaunch">
|
|
<button
|
|
type="button"
|
|
class="btn btn-outline-secondary"
|
|
appA11yTitle="{{ 'launch' | i18n }}"
|
|
(click)="launchUri(controlValue)"
|
|
>
|
|
<i class="bwi bwi-lg bwi-external-link" aria-hidden="true"></i>
|
|
</button>
|
|
</div>
|
|
<div class="input-group-append" *ngIf="showCopy">
|
|
<button
|
|
type="button"
|
|
class="btn btn-outline-secondary"
|
|
appA11yTitle="{{ 'copyValue' | i18n }}"
|
|
(click)="copy(controlValue)"
|
|
>
|
|
<i class="bwi bwi-lg bwi-clone" aria-hidden="true"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|