feat: Implemented submit vote

This commit is contained in:
Mahmoud-Emad
2025-05-21 13:49:20 +03:00
parent 9c71c63ec5
commit 5d9eaac1f8
3 changed files with 172 additions and 44 deletions

View File

@@ -147,6 +147,16 @@
<a href="/login" class="btn btn-primary">Login to Vote</a>
</div>
</div>
{% elif proposal.status != "Active" %}
<div class="card">
<div class="card-body">
<div class="alert alert-warning mb-0">
<i class="bi bi-exclamation-triangle-fill me-2"></i>
<strong>Note:</strong> Voting is only available for proposals with an Active status.
This proposal's current status is <strong>{{ proposal.status }}</strong>.
</div>
</div>
</div>
{% endif %}
</div>
</div>