summaryrefslogtreecommitdiff
path: root/pgcommitfest/commitfest
diff options
context:
space:
mode:
authorMagnus Hagander2013-08-18 17:11:06 +0000
committerMagnus Hagander2013-08-18 17:11:06 +0000
commit3fd84633c36e06958aef6f628c3e68422b973515 (patch)
tree3a4b1f79f582cfb560c300122fbd905d193de9e1 /pgcommitfest/commitfest
parentd2218d1f1c336621cd8f6e75094da61bc1f67006 (diff)
Fix form layouts by not overriding things that shouldn't be
Diffstat (limited to 'pgcommitfest/commitfest')
-rw-r--r--pgcommitfest/commitfest/templates/base_form.html4
-rw-r--r--pgcommitfest/commitfest/views.py1
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;
}
</style>
-<form class="form-horizontal" method="POST" action=".">{%csrf_token%}
+<form class="form-horizontal {{extraformclass}}" method="POST" action=".">{%csrf_token%}
{%if form.errors%}
<div class="alert">Please correct the errors below, and re-submit the form.</div>
{%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,