We now pass all in the user_studies url.

We use this to turn off selected_user
This commit is contained in:
mike cullerton 2021-05-11 16:34:49 -04:00
parent 688023a248
commit f9b254c518

View File

@ -17,7 +17,7 @@
<a class="btn btn-primary" href="{{ url_for('.new_study') }}"> New Study </a> <a class="btn btn-primary" href="{{ url_for('.new_study') }}"> New Study </a>
</p> </p>
<p> <p>
<label>User Studies</label> <label>Only Show Studies for: </label>
<select name="uva_id" id="uva_id" onchange="selectStudies()"> <select name="uva_id" id="uva_id" onchange="selectStudies()">
<option value="">Select User</option> <option value="">Select User</option>
<option value="all">All Users</option> <option value="all">All Users</option>
@ -58,11 +58,7 @@
<script> <script>
function selectStudies() { function selectStudies() {
let uva_id = document.getElementById('uva_id').value; let uva_id = document.getElementById('uva_id').value;
if (uva_id == 'all') { window.location.href = "{{base_href}}/user_studies/" + uva_id;
window.location.href = "{{base_href}}/";
} else {
window.location.href = "{{base_href}}/user_studies/" + uva_id;
}
} }
</script> </script>
</body> </body>