Skip to content

Commit

Permalink
fix style for toggled voting button
Browse files Browse the repository at this point in the history
related to #158
  • Loading branch information
tpokorra committed Nov 27, 2021
1 parent 415080b commit 6757aab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/templates/partials/_topic.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ <h1>{{ topic.name }}</h1>
<form action="{{ path_for('votesaddpost')}}" class="fullvote" method="POST">
<input type="hidden" name="vote" value="1" />
<input type="hidden" name="workshopid" value="{{ topic.id }}" />
<input type="submit" class="btn btn--primary {{topic.fullvote ? 'btn--toggled' : ''}}" value="{{'Full vote'|trans}}" {{left_votes == 0 ? 'disabled' : ''}}/>
<input type="submit" class="btn btn--primary {{topic.fullvote ? ' btn--toggled' : ''}}" value="{{'Full vote'|trans}}" {{left_votes == 0 ? 'disabled' : ''}}/>
</form>

<form action="{{ path_for('votesaddpost') }}" class="quartervote" method="POST">
<input type="hidden" name="vote" value="0.25" />
<input type="hidden" name="workshopid" value="{{ topic.id }}" />
<input type="submit" class="btn btn--secondary {{topic.quartervote ? 'btn--toggled' : ''}}" value="{{'1⁄4 vote'|trans}}" />
<input type="submit" class="btn btn--secondary {{topic.quartervote ? ' btn--toggled' : ''}}" value="{{'1⁄4 vote'|trans}}" />
</form>

<form action="{{ path_for('votesaddpost') }}" class="clearvote" method="POST">
Expand Down

0 comments on commit 6757aab

Please sign in to comment.