mirror of
https://github.com/sartography/protocol-builder-mock.git
synced 2025-02-14 08:37:36 +00:00
We now pass all
in the user_studies url.
We use this to turn off selected_user
This commit is contained in:
parent
688023a248
commit
f9b254c518
@ -17,7 +17,7 @@
|
||||
<a class="btn btn-primary" href="{{ url_for('.new_study') }}"> New Study </a>
|
||||
</p>
|
||||
<p>
|
||||
<label>User Studies</label>
|
||||
<label>Only Show Studies for: </label>
|
||||
<select name="uva_id" id="uva_id" onchange="selectStudies()">
|
||||
<option value="">Select User</option>
|
||||
<option value="all">All Users</option>
|
||||
@ -58,11 +58,7 @@
|
||||
<script>
|
||||
function selectStudies() {
|
||||
let uva_id = document.getElementById('uva_id').value;
|
||||
if (uva_id == 'all') {
|
||||
window.location.href = "{{base_href}}/";
|
||||
} else {
|
||||
window.location.href = "{{base_href}}/user_studies/" + uva_id;
|
||||
}
|
||||
window.location.href = "{{base_href}}/user_studies/" + uva_id;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
Loading…
x
Reference in New Issue
Block a user