use addon for button to make password visible

This commit is contained in:
Uwe Steinmann 2025-12-02 13:54:08 +01:00
parent a4937e3502
commit 5db0744bf6

View File

@ -77,8 +77,8 @@ class SeedDMS_View_Settings extends SeedDMS_Theme_Style {
$html .= '<div class="input-group'.($type=='password' ? ' show-hide-password' : '').'">';
$html .= '<input '.($type=='password' ? 'type="password"' : ($type=='number' ? 'type="number"' : ($type=='color' ? 'type="color"' : 'type="text"'))).' class="form-control '.$class.'" name="'.$name.'" value="'.$value.'" placeholder="'.$placeholder.'"/>';
if($this->getTheme() == 'bootstrap4' && $type == 'password') {
$html .= '<div class="input-group-addon">';
$html .= '<a href=""><i class="fa fa-eye-slash" style="position: absolute; right: 15px; top: 10px;" aria-hidden="true"></i></a>';
$html .= '<div class="input-group-append">';
$html .= '<span class="input-group-text"><i class="fa fa-eye-slash"></i></span>';
$html .= '</div>';
}
$html .= '</div>';