diff --git a/boards/forms.py b/boards/forms.py --- a/boards/forms.py +++ b/boards/forms.py @@ -40,7 +40,6 @@ class PostForm(forms.Form): class ThreadForm(PostForm): regex_tags = re.compile(ur'^[\w\s\d]+$', re.UNICODE) - tags = forms.CharField(max_length=100) def clean_tags(self): diff --git a/boards/static/css/md/base_page.css b/boards/static/css/md/base_page.css --- a/boards/static/css/md/base_page.css +++ b/boards/static/css/md/base_page.css @@ -8,6 +8,19 @@ html { color: #00FF00 } +.input_field { + +} + +.input_field_name { + +} + +.input_field_error { + color: #FF0000; +} + + .title { font-weight: bold; color: #ffcc00; diff --git a/boards/static/css/sw/base_page.css b/boards/static/css/sw/base_page.css --- a/boards/static/css/sw/base_page.css +++ b/boards/static/css/sw/base_page.css @@ -62,6 +62,19 @@ li { color: #fff; } +.input_field { + +} + +.input_field_name { + +} + +.input_field_error { + color: #FF0000; +} + + .title { color: #182F6F; font-weight: bold; diff --git a/templates/posting_general.html b/templates/posting_general.html --- a/templates/posting_general.html +++ b/templates/posting_general.html @@ -108,18 +108,22 @@
{% trans 'Title' %}
{{ form.title }}
+
{{ form.title.errors }}
{% trans 'Text' %}
{{ form.text }}
+
{{ form.text.errors }}
{% trans 'Image' %}
{{ form.image }}
+
{{ form.image.errors }}
{% trans 'Tags' %}
{{ form.tags }}
+
{{ form.tags.errors }}
{% endif %} +<<<<<<< local
{% csrf_token %}
@@ -69,14 +70,17 @@
{% trans 'Title' %}
{{ form.title }}
+
{{ form.title.errors }}
{% trans 'Text' %}
{{ form.text }}
+
{{ form.text.errors }}
{% trans 'Image' %}
{{ form.image }}
+
{{ form.image.errors }}