From 15c94825129335501be8da547625d1ae89aa3e03 Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Fri, 5 Jun 2015 14:16:16 +0100 Subject: [PATCH 1/3] Render labels within ObjectList

s so that we don't have to hack things with custom label styles and display:none --- wagtail/wagtailadmin/edit_handlers.py | 27 ++++++++---- .../scss/layouts/page-editor.scss | 43 ++++++++++--------- .../edit_handlers/object_list.html | 6 ++- .../edit_handlers/single_field_panel.html | 23 +++++++++- 4 files changed, 67 insertions(+), 32 deletions(-) diff --git a/wagtail/wagtailadmin/edit_handlers.py b/wagtail/wagtailadmin/edit_handlers.py index 955d00de3..e9db8a07b 100644 --- a/wagtail/wagtailadmin/edit_handlers.py +++ b/wagtail/wagtailadmin/edit_handlers.py @@ -235,6 +235,14 @@ class EditHandler(object): """ return "" + def id_for_label(self): + """ + The ID to be used as the 'for' attribute of any