From 16b4f0fc0ad1503884ae701675b3174a9ab37872 Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Thu, 28 Mar 2013 21:45:32 +0100 Subject: [PATCH] Better visual error display. Fixes issue #13 --- dpaste/templates/dpaste/snippet_form.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/dpaste/templates/dpaste/snippet_form.html b/dpaste/templates/dpaste/snippet_form.html index 0670f26..9d1c927 100644 --- a/dpaste/templates/dpaste/snippet_form.html +++ b/dpaste/templates/dpaste/snippet_form.html @@ -5,17 +5,25 @@ {{ snippet_form.non_field_errors }}
{{ snippet_form.title }}
-
+
{{ snippet_form.content }}
-
- {{ snippet_form.lexer.errors }} +
{{ snippet_form.lexer }}
+ {% for error in snippet_form.lexer.errors %} + {{ error }} + {% endfor %}
{{ snippet_form.expire_options.errors }}