Bugfixes: case sensitivity, percent sign rendering
Temporary work-around: disabled client navbar home link to prevent exit
This commit is contained in:
parent
95299d42db
commit
fa4111424a
@ -142,8 +142,12 @@
|
|||||||
<label for="sample2" class="form-check-label">The <i>Dungeons & Dragons Fifth Edition Monster Manual</i>.</label>
|
<label for="sample2" class="form-check-label">The <i>Dungeons & Dragons Fifth Edition Monster Manual</i>.</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-check">
|
<div class="form-check">
|
||||||
<input type="radio" class="form-check-input" id="sample3" name="sample" value="3" checked>
|
<input type="radio" class="form-check-input" id="sample3" name="sample" value="2">
|
||||||
<label for="sample3" class="form-check-label">All of the above</i></label>
|
<label for="sample3" class="form-check-label">The Trade Union and Labour Relations (Consolidation) Act 1992.</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-check">
|
||||||
|
<input type="radio" class="form-check-input" id="sample4" name="sample" value="4" checked>
|
||||||
|
<label for="sample4" class="form-check-label">All of the above</i></label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<nav class="navbar fixed-top navbar-expand-md navbar-dark bg-dark" id="primary-nav">
|
<nav class="navbar fixed-top navbar-expand-md navbar-dark bg-dark" id="primary-nav">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<a href="/" class="navbar-brand mb-0 h1">SKA Refereeing Test </a>
|
<a href="javascript:void(0);" class="navbar-brand mb-0 h1">SKA Refereeing Test </a>
|
||||||
<div class="quiz-console w-100" style="display: none;" id="q-topbar">
|
<div class="quiz-console w-100" style="display: none;" id="q-topbar">
|
||||||
<div class="d-flex justify-content align-middle">
|
<div class="d-flex justify-content align-middle">
|
||||||
<div class="container d-flex justify-content-center">
|
<div class="container d-flex justify-content-center">
|
||||||
|
@ -55,7 +55,7 @@ def start():
|
|||||||
}
|
}
|
||||||
email = request.form.get('email')
|
email = request.form.get('email')
|
||||||
club = request.form.get('club')
|
club = request.form.get('club')
|
||||||
test_code = request.form.get('test_code').replace('—', '')
|
test_code = request.form.get('test_code').replace('—', '').upper()
|
||||||
user_code = request.form.get('user_code')
|
user_code = request.form.get('user_code')
|
||||||
user_code = None if user_code == '' else user_code.upper()
|
user_code = None if user_code == '' else user_code.upper()
|
||||||
test = db.tests.find_one({'test_code': test_code})
|
test = db.tests.find_one({'test_code': test_code})
|
||||||
@ -213,7 +213,7 @@ def result():
|
|||||||
<p><strong>Email Address</strong>: {entry['email']}</p>
|
<p><strong>Email Address</strong>: {entry['email']}</p>
|
||||||
{f"<p><strong>Club</strong>: {entry['club']}</p>" if entry['club'] else ''}
|
{f"<p><strong>Club</strong>: {entry['club']}</p>" if entry['club'] else ''}
|
||||||
<p><strong>Date of Test</strong>: {entry['submission_time'].strftime('%d %b %Y')}</p>
|
<p><strong>Date of Test</strong>: {entry['submission_time'].strftime('%d %b %Y')}</p>
|
||||||
<h1>{score}%</h1>
|
<h1>{score}%</h1>
|
||||||
<h2>{entry['results']['grade']}</h2>
|
<h2>{entry['results']['grade']}</h2>
|
||||||
<p>{flavour_text_plain}</p>
|
<p>{flavour_text_plain}</p>
|
||||||
<p>Based on your answers, we would also suggest you revise the following topics as you continue refereeing:</p>
|
<p>Based on your answers, we would also suggest you revise the following topics as you continue refereeing:</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user