Skip to content
Snippets Groups Projects
Commit 5ad6472a authored by Václav Bartoš's avatar Václav Bartoš
Browse files

"show internal accounts" checkbox now works

simple JS code added to show/hide rows with accounts marked as internal
parent 08821102
No related branches found
No related tags found
No related merge requests found
......@@ -3,8 +3,15 @@
<p><a href="{{ url_for("add_user") }}">{{ icon('plus-circle', size="1em") }} Add new user ...</a></p>
{# TODO #}
<input type="checkbox" id="show-internal" onclick=""><label for="show-internal">Show internal (service) accounts</label>
<input type="checkbox" id="show-internal" checked="checked"><label for="show-internal">Show internal (service) accounts</label>
<script>
// Show/hide all internal users when the checkbox is changed
document.getElementById('show-internal').addEventListener('change', function(event) {
for (let el of document.getElementsByClassName('internal-user')) {
el.style.display = (event.currentTarget.checked ? "" : "none");
}
});
</script>
<table>
<tr><th>Username</th><th>First name</th><th>Last name</th><th>Email</th><th>CN</th><th>DN</th><th>Time created (UTC)</th><th>NiFi</th><th>MISP</th><th>Actions</th>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment