mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-01-13 21:06:43 +00:00
use addon for button to make password visible
This commit is contained in:
parent
a4937e3502
commit
5db0744bf6
|
|
@ -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>';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user