Commit 2de9f6bb authored by Zosman's avatar Zosman
Browse files

proof of concept

parent ddce4b23
Pipeline #799 passed with stage
in 1 minute and 39 seconds
...@@ -30,13 +30,31 @@ SRCT Go • Administration Panel ...@@ -30,13 +30,31 @@ SRCT Go • Administration Panel
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<h3>Users awaiting moderation</h3> <h3>Users awaiting moderation</h3>
<script>
function myFunction() {
var input, filter, table, tr, td, i;
input = document.getElementById("myInput");
filter = input.value.toUpperCase();
table = document.getElementById("myTable");
tr = table.getElementsByTagName("tr");
for (i = 0; i < tr.length; i++) {
td = tr[i].getElementsByTagName("td")[2];
if (td) {
if (td.innerHTML.toUpperCase().indexOf(filter) > -1) {
tr[i].style.display = "";
} else {
tr[i].style.display = "none";
}
}
}
}
</script>
<form method="post" action="useradmin"> <form method="post" action="useradmin">
<!-- csrf protection --> <!-- csrf protection -->
{% csrf_token %} {% csrf_token %}
<input type="text" id="myInput" onkeyup="myFunction()" placeholder="Search for Full names..">
<!-- define out table of users that need approval --> <!-- define out table of users that need approval -->
<table class="table table-striped table-hover"> <table class="table table-striped table-hover" id="myTable">
<!-- define the header row --> <!-- define the header row -->
<thead> <thead>
<tr> <tr>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment