The Vote Theme panel in the admin dashboard lets you define what voters are choosing between. You set the election topic, the maximum number of voters allowed, and the list of candidates. All of these settings are submitted as a single PATCH request to the backend when you save.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Crypto-Project-ENSTA/front-end/llms.txt
Use this file to discover all available pages before exploring further.
When to configure
Configure the election during the Registration Open phase (register), before you click Start Vote. Once voting begins, the form fields are no longer editable and changing choices could confuse voters who have already received their registration codes.
Steps
Find the Vote Theme card
Locate the Vote Theme configuration panel on the dashboard. It contains three fields: Vote Theme, Max Voters, and Choices.
Enter the vote topic
Type the election topic in the Vote Theme field. For example:
Best Framework 2025. This is the question or topic voters will see.Set the maximum voter count
Enter an integer of at least
1 in the Max Voters field. This limits how many voters can participate in the election.Add candidates
In the Choices section, add at least two non-empty candidate options. Use the add and remove controls to manage the list.
Validation rules
The form uses Zod schema validation. Your submission must satisfy all of the following:| Field | Rule |
|---|---|
vote_theme | Required. Non-empty string. |
num_voters | Integer. Minimum value: 1. |
choices | Array of at least 2 items. Each item must be a non-empty string. |
API reference
Saving the form sends a PATCH request to/config/voting-system-config with the following payload shape:
VotingTheme object.