From cc4190f1f086cb256109d3be6eb6fdbaea507c9e Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Sat, 18 Jul 2015 15:14:16 +0000 Subject: [PATCH] Merged in [9781] from lars@netapp.com: Move a (duplicate) style tag from python into the template CSS. The liaison manager is horrible in the amount of HTML it includes in python. - Legacy-Id: 9799 Note: SVN reference [9781] has been migrated to Git commit d41e3db6fc40dcd5bacb9bf5a17b24f459203bd2 --- ietf/liaisons/widgets.py | 6 +++--- ietf/templates/liaisons/edit.html | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ietf/liaisons/widgets.py b/ietf/liaisons/widgets.py index 13f503b09..09628d48f 100644 --- a/ietf/liaisons/widgets.py +++ b/ietf/liaisons/widgets.py @@ -38,7 +38,7 @@ class FromWidget(Select): class ReadOnlyWidget(Widget): def render(self, name, value, attrs=None): - html = u'
%s
' % (conditional_escape(name), conditional_escape(value or '')) + html = u'
%s
' % (conditional_escape(name), conditional_escape(value or '')) return mark_safe(html) @@ -67,8 +67,8 @@ class ShowAttachmentsWidget(Widget): def render(self, name, value, attrs=None): html = u'
' % name - html += u'' - html += u'
' + html += u'' + html += u'
' if value and isinstance(value, QuerySet): for attachment in value: html += u'%s
' % (settings.LIAISON_ATTACH_URL, conditional_escape(attachment.external_url), conditional_escape(attachment.title)) diff --git a/ietf/templates/liaisons/edit.html b/ietf/templates/liaisons/edit.html index 2c32786c0..b2e6dd6c3 100644 --- a/ietf/templates/liaisons/edit.html +++ b/ietf/templates/liaisons/edit.html @@ -12,6 +12,10 @@ {% endblock %} +{% block morecss %} +.widget { height: auto; min-height: 34px; } +{% endblock %} + {% block content %} {% origin %}