Add voting deadline function

This commit is contained in:
2025-10-13 22:30:15 +08:00
parent afd5ecd89a
commit 6a50c9fe90
35 changed files with 3489 additions and 103 deletions
+16 -3
View File
@@ -68,19 +68,32 @@
</div>
</div>
<!-- Current Winners Section -->
<!-- Voting Deadline Section -->
<div class="row mb-4">
<div class="col-md-6 mb-3">
<label for="votingDeadline" class="form-label">
<i class="fas fa-clock me-2"></i>Voting Deadline
</label>
{{ form.votingDeadline(class_="form-control", **{"id": "votingDeadline", "type": "datetime-local"}) }}
<small class="form-text text-muted">Set when voting should close (leave empty for no deadline)</small>
</div>
</div>
<!-- Previous Winners Section -->
<div class="row mb-4">
<div class="col-md-6 mb-3">
<label for="currMotM" class="form-label">
<i class="fas fa-trophy me-2 text-warning"></i>Current Man of the Match
<i class="fas fa-trophy me-2 text-warning"></i>Previous Man of the Match
</label>
{{ form.currMotM(class_="form-select") }}
<small class="form-text text-muted">Select "No Previous MOTM" for the first match or if no previous winner</small>
</div>
<div class="col-md-6 mb-3">
<label for="currDotD" class="form-label">
<i class="fas fa-user-times me-2 text-danger"></i>Current Dick of the Day
<i class="fas fa-user-times me-2 text-danger"></i>Previous Dick of the Day
</label>
{{ form.currDotD(class_="form-select") }}
<small class="form-text text-muted">Select "No Previous DotD" for the first match or if no previous winner</small>
</div>
</div>