Mercurial > hg > bitsyblog
view 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 source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://genshi.edgewall.org/" xmlns:xi="http://www.w3.org/2001/XInclude"> <head> <title>preferences - ${user}</title> <py:for each="index, (href, sheet) in enumerate(stylesheets)"> <link href="${href}" type="text/css" rel="${index and 'alternate stylesheet' or 'stylesheet'}" title="${sheet}"/> </py:for> </head> <body> <xi:include href="navigation.html" /> <div py:if="message"> <strong>${message}</strong> </div> <form method="post" enctype="multipart/form-data"> <table> <tr> <td> <span title="how to display dates in your blog post subject"><strong>Date format:</strong></span> </td> <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> <td> <span title="how to display the subject line of your blog post"><strong>Subject:</strong></span> </td> <td><input type="text" name="Subject-0" value="${subject[0]}" size="${len(subject[0])}"/> ${now} <input type="text" name="Subject-2" value="${subject[1]}" size="${len(subject[1])}"/> </td> </tr> <tr> <td> <span title="which CSS file should be the default"><strong>Stylesheet:</strong></span> </td> <td> <select name="Stylesheet"> <option py:for="css_file in css_files">${css_file}</option> </select> </td> </tr> <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"> <td><span title="friends can see your secret posts"><strong>Friends:</strong></span></td> <td> <py:for each="_user in users"> <input type="checkbox" name="Friends" value="${_user}"/>${_user}<br/> </py:for> </td> </tr> </table> <input type="submit" name="submit" value="Submit"/> </form> </body> </html>