2021-10-21 23:30:25 +02:00
|
|
|
<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="confirmUserTitle">
|
2021-08-27 14:50:58 +02:00
|
|
|
<div class="modal-dialog modal-dialog-scrollable" role="document">
|
|
|
|
<form class="modal-content" #form (ngSubmit)="submit()">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h2 class="modal-title" id="confirmUserTitle">
|
|
|
|
{{ "passwordConfirmation" | i18n }}
|
|
|
|
</h2>
|
|
|
|
<button type="button" class="close" data-dismiss="modal">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
{{ "passwordConfirmationDesc" | i18n }}
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="masterPassword">{{ "masterPass" | i18n }}</label>
|
|
|
|
<div class="d-flex">
|
|
|
|
<input
|
|
|
|
id="masterPassword"
|
|
|
|
type="{{ showPassword ? 'text' : 'password' }}"
|
|
|
|
name="MasterPassword"
|
|
|
|
class="text-monospace form-control"
|
|
|
|
[(ngModel)]="masterPassword"
|
|
|
|
required
|
|
|
|
appAutofocus
|
|
|
|
appInputVerbatim
|
|
|
|
/>
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="ml-1 btn btn-link"
|
|
|
|
appA11yTitle="{{ 'toggleVisibility' | i18n }}"
|
|
|
|
(click)="togglePassword()"
|
|
|
|
>
|
|
|
|
<i
|
2022-01-27 18:25:58 +01:00
|
|
|
class="bwi bwi-lg"
|
2021-08-27 14:50:58 +02:00
|
|
|
aria-hidden="true"
|
2022-01-27 18:25:58 +01:00
|
|
|
[ngClass]="{ 'bwi-eye': !showPassword, 'bwi-eye-slash': showPassword }"
|
2021-08-27 14:50:58 +02:00
|
|
|
></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
2021-12-17 15:57:11 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-08-27 14:50:58 +02:00
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="submit" class="btn btn-primary btn-submit" appBlurClick>
|
|
|
|
<span>{{ "ok" | i18n }}</span>
|
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">
|
|
|
|
{{ "cancel" | i18n }}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|