-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
4 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
[% IF c.user.get_object.can_vote_for(entry) %] | ||
|
||
<div class="rating-controls" style="float: right;"> | ||
<p>Your rating: <select data-entry="[% entry.id %]" class="rating-select"> | ||
<p>Your rating: <select data-entry="[% entry.id %]" class="rating-select"[% IF current_comp.status == 'processing_votes' %] disabled[% END %]> | ||
<option value="0">None</option> | ||
[% number = 1 %] | ||
[% WHILE number <= 10 %] | ||
<option value="[% number %]" [% IF rating_for_entry.${entry.id} == number %] selected="1" [% END %] >[% number %]</option> | ||
[% number = number + 1 %] | ||
[% END %] | ||
</select> | ||
[% IF current_comp.status == 'open_for_judging' %] | ||
<span class="feedback-link" id="feedback-link-[% entry.id %]"> | ||
<a href="[% c.uri_for_action( '/ballot/feedback', entry.id ) %]">Add / edit feedback</a> | ||
</span> | ||
[% END %] | ||
<span id="rating-status-[% entry.id %]-spinner" class="label label-default waiting" style="display:none">Submitting...</span> | ||
<span id="rating-status-[% entry.id %]-success" class="label label-success success" style="display:none">Rating recorded!</span> | ||
<span id="rating-status-[% entry.id %]-failure" class="label label-danger danger" style="display:none">Rating not recorded! (Uh oh. Contact [email protected] about this, please.)</span> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters