diff --git a/root/usr/share/smanager/themes/default/public/css/sme-password.css b/root/usr/share/smanager/themes/default/public/css/sme-password.css new file mode 100644 index 0000000..62e1bf3 --- /dev/null +++ b/root/usr/share/smanager/themes/default/public/css/sme-password.css @@ -0,0 +1,17 @@ +/* css/sme-password.css */ +.input-container { + position: relative; + display: inline-block; +} +.sme-password { + padding-right: 5px; /* Ensure space for the toggle icon */ +} +.toggle-password { + position: absolute; + right: 4px; /* Position it towards the right */ + top: 50%; /* Center vertically */ + transform: translateY(-50%); /* Adjust for exact centering */ + cursor: pointer; + width: 20px; /* Set the width of the icon */ + height: 20px; /* Set the height of the icon */ +} \ No newline at end of file diff --git a/root/usr/share/smanager/themes/default/public/images/visible-slash.png b/root/usr/share/smanager/themes/default/public/images/visible-slash.png new file mode 100644 index 0000000..001c465 Binary files /dev/null and b/root/usr/share/smanager/themes/default/public/images/visible-slash.png differ diff --git a/root/usr/share/smanager/themes/default/public/images/visible.png b/root/usr/share/smanager/themes/default/public/images/visible.png new file mode 100644 index 0000000..b53ec92 Binary files /dev/null and b/root/usr/share/smanager/themes/default/public/images/visible.png differ diff --git a/root/usr/share/smanager/themes/default/public/js/sme-password.js b/root/usr/share/smanager/themes/default/public/js/sme-password.js new file mode 100644 index 0000000..cb312b2 --- /dev/null +++ b/root/usr/share/smanager/themes/default/public/js/sme-password.js @@ -0,0 +1,31 @@ +// js/sme-password.js +$(document).ready(function() { + // For each password input + $('.sme-password').each(function() { + // Create a new container + //alert("sme-password"); + var $inputContainer = $('
'); + + // Move the input into the new container + $(this).wrap($inputContainer); + + // Create the toggle image + var $togglePassword = $('