mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-01-23 02:35:23 +00:00
apply suggestions to use existing bootstrap icons
as per discussion in https://github.com/PrivateBin/PrivateBin/pull/1647#discussion_r2345917795
This commit is contained in:
parent
8a8afb96da
commit
d50231a531
6 changed files with 43 additions and 66 deletions
|
|
@ -82,11 +82,12 @@ endif;
|
|||
<form id="passwordform" role="form">
|
||||
<div class="mb-3">
|
||||
<label for="passworddecrypt"><svg width="16" height="16" fill="currentColor" aria-hidden="true"><use href="img/bootstrap-icons.svg#eye" /></svg> <?php echo I18n::_('Please enter the password for this document:') ?></label>
|
||||
<div class="password-peek-container">
|
||||
<div class="input-group">
|
||||
<input id="passworddecrypt" type="password" class="form-control input-password" placeholder="<?php echo I18n::_('Enter password') ?>" required="required" />
|
||||
<button class="toggle-password" type="button"
|
||||
<button class="btn btn-outline-secondary toggle-password" type="button"
|
||||
title="<?php echo I18n::_('Show password as plain text. Warning: this will display your password on the screen.'); ?>"
|
||||
aria-label="<?php echo I18n::_('Show password as plain text. Warning: this will display your password on the screen.'); ?>">
|
||||
<svg width="16" height="16" fill="currentColor" aria-hidden="true"><use href="img/bootstrap-icons.svg#eye" /></svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -249,11 +250,12 @@ if ($PASSWORD) :
|
|||
?>
|
||||
<li class="nav-item">
|
||||
<div id="password" class="navbar-form hidden">
|
||||
<div class="password-peek-container">
|
||||
<div class="input-group">
|
||||
<input type="password" id="passwordinput" placeholder="<?php echo I18n::_('Password (recommended)'); ?>" aria-label="<?php echo I18n::_('Password (recommended)'); ?>" class="form-control input-password" size="23" />
|
||||
<button class="toggle-password" type="button"
|
||||
<button class="btn btn-outline-secondary toggle-password" type="button"
|
||||
title="<?php echo I18n::_('Show password as plain text. Warning: this will display your password on the screen.'); ?>"
|
||||
aria-label="<?php echo I18n::_('Show password as plain text. Warning: this will display your password on the screen.'); ?>">
|
||||
<svg width="16" height="16" fill="currentColor" aria-hidden="true"><use href="img/bootstrap-icons.svg#eye" /></svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue