-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from bkgoodman/master
1.0.6
- Loading branch information
Showing
24 changed files
with
734 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,6 @@ newexampleschema | |
*.swp | ||
run_auth.py | ||
*.sq3 | ||
authlibs/logs/static/kioskimages/* | ||
*.acl | ||
backups/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{% extends "layout_bootstrap.html" %} | ||
{% block body %} | ||
<p>To assign a waiver to a member - select to appropriate radio boxes for each, then click "assign"</p> | ||
<form action="relate_assign" method="POST"> | ||
<div class=body> | ||
<h3>Unassigned Waivers</h3> | ||
<div class="form-row"> | ||
<div class="form-group col-md-8"> | ||
<label for="waiversearch">Search for Waiver:</label> | ||
<input class="form-control" id="waiversearch" type="text" oninput="changedwaiversearch();" /> | ||
</div> | ||
</div> | ||
<h2 class="alert alert-info" id="messagebox">Enter a phrase in the search box</h2> | ||
<table id="waiver_table" class="table table-sm bkg"> | ||
<tr> | ||
<th>Name</th> | ||
<th>Email</th> | ||
<th>Created</th> | ||
<th>Waiver ID</th> | ||
<th>Waiver Type</th> | ||
</tr> | ||
{% for s in waivers %} | ||
<tr style="visibility:collapse"> | ||
<td>{{ s.lastname }}, {{s.firstname}}</td> | ||
<td>{{ s.email }}</td> | ||
<td>{{ s.created_date }}</td> | ||
<td>{{ s.waiver_id }}</td> | ||
{% if s.waivertype in waiverTypes %} | ||
<td>{{ waiverTypes[s.waivertype] }}</td> | ||
{% else %} | ||
<td>???</td> | ||
{% endif %} | ||
<td><input type="radio" name="do_waiver" value="assign:{{ s.waiver_id }}"> Assign to...</input></td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
<input type="submit" class="btn btn-primary" value="Assign" name="Assign" /> | ||
</div> | ||
<hr /> | ||
<h3>Attach to Member:</h4> | ||
<div class="container"> | ||
{% with add_radiobuttons=1 %} | ||
{% include 'userlist.html' %} | ||
{% endwith %} | ||
</div> | ||
</form> | ||
<script type="text/javascript"> | ||
function changedwaiversearch() { | ||
r = document.getElementById("waiversearch").value.toLowerCase(); | ||
console.log(r); | ||
table = document.getElementById("waiver_table"); | ||
table.visibility=""; | ||
msg = document.getElementById("messagebox"); | ||
if (r.length >= 3) { | ||
table.visibility=""; | ||
msg.style.display="none"; | ||
for (var i = 0, row; row = table.rows[i]; i++) { | ||
row.style.visibility="collapse"; | ||
if (row.cells[0].innerHTML.toLowerCase().includes(r)) | ||
row.style.visibility=""; | ||
if (row.cells[1].innerHTML.toLowerCase().includes(r)) | ||
row.style.visibility=""; | ||
if (row.cells[3].innerHTML.toLowerCase().includes(r)) | ||
row.style.visibility=""; | ||
//iterate through rows | ||
//rows would be accessed using the "row" variable assigned in the for loop | ||
//console.log(row.cells[1].innerHTML); | ||
} | ||
} else { | ||
msg.style.display="block"; | ||
table.visibility="collapse"; | ||
} | ||
} | ||
</script> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.