Clean up the aesthetics for the 'Pause CTF' and 'View After CTF' configs (#2250)

* Clean up the aesthetics for the 'Pause CTF' and 'View After CTF' configs
* Closes #2128
This commit is contained in:
Kevin Chung
2023-01-28 04:21:16 -05:00
committed by GitHub
parent fe9ba03e3b
commit 0f0064535c
2 changed files with 18 additions and 10 deletions

View File

@@ -89,13 +89,16 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="form-check"> <label>
Pause<br>
<small class="form-text text-muted">
Prevent users from submitting answers until unpaused. Challenges can still be viewed.
</small>
</label>
<div class="form-check pl-0">
<label> <label>
<input id="paused" name="paused" type="checkbox" {% if paused %}checked{% endif %}> <input id="paused" name="paused" type="checkbox" {% if paused %}checked{% endif %}>
Pause CTF<br> Pause CTF<br>
<small>
Prevent users from submitting answers until unpaused. Challenges can still be viewed.
</small>
</label> </label>
</div> </div>
</div> </div>

View File

@@ -119,12 +119,17 @@
max="59" type='number'> max="59" type='number'>
</div> </div>
<div class="form-check"> <div class="form-group col-md-12">
<label> <div class="form-check pl-0">
<input id="view_after_ctf" name="view_after_ctf" type="checkbox" <label>
{% if view_after_ctf %}checked{% endif %}> <input id="view_after_ctf" name="view_after_ctf" type="checkbox" {% if view_after_ctf %}checked{% endif %}>
Allow challenges to be viewed (no submissions are recorded) after the CTF End Time. View After CTF
</label> <small class="form-text text-muted">
Allows challenges to be viewed after the End Time, however no new submissions will be recorded.<br>
For participants to be able to submit after End Time but not alter the scoreboard, configure Freeze Time to be your End Time.
</small>
</label>
</div>
</div> </div>
<div class="form-group col-md-12"> <div class="form-group col-md-12">