From 3fd84633c36e06958aef6f628c3e68422b973515 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Sun, 18 Aug 2013 19:11:06 +0200 Subject: [PATCH] Fix form layouts by not overriding things that shouldn't be --- pgcommitfest/commitfest/templates/base_form.html | 4 ++-- pgcommitfest/commitfest/views.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pgcommitfest/commitfest/templates/base_form.html b/pgcommitfest/commitfest/templates/base_form.html index f51bf76..d4de4bb 100644 --- a/pgcommitfest/commitfest/templates/base_form.html +++ b/pgcommitfest/commitfest/templates/base_form.html @@ -10,14 +10,14 @@ div.control-group div.controls ul { list-style-type: none; } -div.control-group div.controls ul li { +form.patchcommentform div.control-group div.controls ul li { display: inline; } div.control-group div.controls ul li label { display: inline; } -
{%csrf_token%} +{%csrf_token%} {%if form.errors%}
Please correct the errors below, and re-submit the form.
{%endif%} diff --git a/pgcommitfest/commitfest/views.py b/pgcommitfest/commitfest/views.py index 82ff8f1..6fc23a1 100644 --- a/pgcommitfest/commitfest/views.py +++ b/pgcommitfest/commitfest/views.py @@ -232,6 +232,7 @@ def comment(request, cfid, patchid, what): 'cf': cf, 'form': form, 'patch': patch, + 'extraformclass': 'patchcommentform', 'breadcrumbs': [{'title': cf.name, 'href': '/%s/' % cf.pk}, {'title': 'View patch', 'href': '/%s/%s/' % (cf.pk, patch.pk)}], 'title': "Add %s" % what, -- 2.39.5