diff bitsyblog/templates/preferences.html @ 28:e54a6405a496

display errors for preferences form
author k0s <k0scist@gmail.com>
date Sat, 31 Oct 2009 23:04:20 -0400
parents e37d117a9deb
children
line wrap: on
line diff
--- a/bitsyblog/templates/preferences.html	Sat Oct 31 01:36:25 2009 -0400
+++ b/bitsyblog/templates/preferences.html	Sat Oct 31 23:04:20 2009 -0400
@@ -34,6 +34,9 @@
           <td>
             <input type="text" name="Date format" value="${now}" size="22"/>
           </td>
+          <td class="error" py:if="'Date format' in errors">
+            ${errors['Date format']}
+          </td>
         </tr>
 
         <tr>
@@ -60,6 +63,9 @@
         <tr>
           <td><span title="upload a CSS file to theme your webpage"><strong>CSS file:</strong></span></td>
           <td><input type="file" name="CSS file"/></td>
+          <td class="error" py:if="'CSS file' in errors">
+            ${errors['CSS file']}
+          </td>
         </tr>
 
         <tr py:if="users">