d6523b4269f8

webui: Add a signoff default value, prevent issue56
[view raw] [browse files]
author Benoit Allard <benoit@aeteurope.nl>
date Tue, 27 Jul 2010 13:13:43 +0200
parents a21fcb365fcd
children 46a08d99f9b9
branches/tags (none)
files .hgignore review/templates/pieces/forms/signoff.html

Changes

--- a/.hgignore	Thu Jul 22 19:55:52 2010 -0400
+++ b/.hgignore	Tue Jul 27 13:13:43 2010 +0200
@@ -1,6 +1,7 @@
 syntax: glob
 
 *.pyc
+*.pyo
 .DS_Store
 tags
 .ropeproject
--- a/review/templates/pieces/forms/signoff.html	Thu Jul 22 19:55:52 2010 -0400
+++ b/review/templates/pieces/forms/signoff.html	Tue Jul 27 13:13:43 2010 +0200
@@ -12,7 +12,7 @@
         <div class="field">
             <input id="id_signoff-form_yes" type="radio" name="signoff" value="yes" {% if cu_signoff and cu_signoff.opinion == 'yes' %}checked{% endif %}/><label class="radio" for="id_signoff-form_yes">Yes</label>
             <input id="id_signoff-form_no"type="radio" name="signoff" value="no" {% if cu_signoff and cu_signoff.opinion == 'no' %}checked{% endif %}/><label class="radio" for="id_signoff-form_no">No</label>
-            <input id="id_signoff-form_neutral"type="radio" name="signoff" value="neutral" {% if cu_signoff and cu_signoff.opinion == '' %}checked{% endif %}/><label class="radio" for="id_signoff-form_neutral">Neutral</label>
+            <input id="id_signoff-form_neutral"type="radio" name="signoff" value="neutral" {% if not cu_signoff or cu_signoff.opinion == '' %}checked{% endif %}/><label class="radio" for="id_signoff-form_neutral">Neutral</label>
         </div>
 
         <div class="field">