Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix missing ratings when editing a review

closes #53
  • Loading branch information...
commit cc04db34501cdc6ecc0652dae506d0af3af5464a 1 parent ab34042
@abh abh authored
Showing with 5 additions and 6 deletions.
  1. +5 −6 docs/cpanratings/rate/rate_form.html
View
11 docs/cpanratings/rate/rate_form.html
@@ -68,19 +68,18 @@
[% checked = review.checked_rating %]
-
-
[% FOR question = questions %]
<tr>
<td><b>[% question.name %]</b></td>
<td colspan="2">
[% FOR i = [ 1..5 ] %]
-[% i %]<input type="radio" name="[% question.field %]" [% checked.${question.field}.$i %] value="[%i%]">&nbsp;
-[% END %]
-[% IF 1 OR question.field != 'rating_overall' %]
-undef<input type="radio" name="[% question.field %]" [% checked.${question.field}.0 %] checked value="">&nbsp;
+[% i %] <input type="radio" name="[% question.field %]" [% checked.${question.field}.$i %] value="[%i%]">&nbsp;
[% END %]
+
+undef <input type="radio" name="[% question.field %]" [% checked.${question.field}.0 %] value="">&nbsp;
+
[% IF errors.${question.field} %](<span class="error">[% errors.${question.field} %]</span>)[% END %]
+
</td>
</tr>
<tr><td colspan="3" style="background-color:#ccc"></td></tr>

0 comments on commit cc04db3

Please sign in to comment.
Something went wrong with that request. Please try again.