From: Magnus Hagander Date: Wed, 23 Apr 2014 17:02:27 +0000 (+0200) Subject: Fix removing of authors/reviewers X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=02a7a0e05a16d619f4624f04ba08e19b78ff0d9b;p=pgcommitfest2.git Fix removing of authors/reviewers There's a conflict between jquery-ui and bootstrap for buttons that breaks django-selectable. The documented workaround doesn't work, but for now we don't have any pages that require both at the same time, so just suppress the bootstrap javascript when jquery-ui buttons are required. --- diff --git a/pgcommitfest/commitfest/templates/base.html b/pgcommitfest/commitfest/templates/base.html index 940b2bf..55b6e84 100644 --- a/pgcommitfest/commitfest/templates/base.html +++ b/pgcommitfest/commitfest/templates/base.html @@ -41,7 +41,7 @@ - +{%if not block_bootstrap_button%}{%endif%} {%block morescript%}{%endblock%} diff --git a/pgcommitfest/commitfest/templates/base_form.html b/pgcommitfest/commitfest/templates/base_form.html index 40e423d..d4c135a 100644 --- a/pgcommitfest/commitfest/templates/base_form.html +++ b/pgcommitfest/commitfest/templates/base_form.html @@ -25,6 +25,10 @@ div.controls input[type='checkbox'] { div.controls ul { margin: 0px; } +div.controls ul.selectable-deck li.selectable-deck-item a.selectable-deck-remove { + float: none; + margin-left: 20px; +}
{%csrf_token%} {%if form.errors%} diff --git a/pgcommitfest/commitfest/views.py b/pgcommitfest/commitfest/views.py index 6a72b93..ba0f911 100644 --- a/pgcommitfest/commitfest/views.py +++ b/pgcommitfest/commitfest/views.py @@ -168,6 +168,7 @@ def patchform(request, cfid, patchid): 'title': 'Edit patch', 'breadcrumbs': [{'title': cf.name, 'href': '/%s/' % cf.pk}, {'title': 'View patch', 'href': '/%s/%s/' % (cf.pk, patch.pk)}], + 'block_bootstrap_button': True, }, context_instance=RequestContext(request)) @login_required