# HG changeset patch
# User neko259
# Date 2013-12-03 16:24:29
# Node ID abb0b1c99c1d64804a3864b9a08dc0d2a0ce66e2
# Parent f54bae307aca09ea8d2c523101e1ba56681cb5ee
Basic support for the generic forms. Still need to fix some things in the form
rendering, also need to implement a new widget for the text with formatting
panel.
diff --git a/boards/forms.py b/boards/forms.py
--- a/boards/forms.py
+++ b/boards/forms.py
@@ -27,6 +27,7 @@ class NeboardForm(forms.Form):
def as_p(self):
"Returns this form rendered as HTML s."
return self._html_output(
+ # TODO Do not show hidden rows in the list here
normal_row='
',
- error_row='%s
',
+ error_row='',
row_ender='
',
help_text_html=' %s',
errors_on_separate_row=True)
-
class PostForm(NeboardForm):
title = forms.CharField(max_length=TITLE_MAX_LENGTH, required=False,
diff --git a/boards/templates/boards/posting_general.html b/boards/templates/boards/posting_general.html
--- a/boards/templates/boards/posting_general.html
+++ b/boards/templates/boards/posting_general.html
@@ -201,65 +201,23 @@
{% else %}
{% trans 'No threads exist. Create the first one!' %}
- {% endif %}
+ {% endif %}
-