Skip to content
Snippets Groups Projects
Commit c1423c04 authored by Tim Fechner's avatar Tim Fechner
Browse files

Fix radiobox label rendering

parent 726f5af4
Branches
Tags v1.4.3
No related merge requests found
...@@ -100,7 +100,8 @@ class BulmaFieldMarkup(object): ...@@ -100,7 +100,8 @@ class BulmaFieldMarkup(object):
choice_markup = '' choice_markup = ''
for choice in field: for choice in field:
choice_markup += cls.label( choice_markup += cls.label(
choice.tag(), choice.choice_label.title(), # concat input field and label here to make the label clickable
label=mark_safe('{} {}'.format(choice.tag(), choice.choice_label.title())),
for_id=choice.id_for_label, css_class='radio' for_id=choice.id_for_label, css_class='radio'
) )
return cls.div_control(mark_safe(choice_markup)) return cls.div_control(mark_safe(choice_markup))
......
...@@ -7,7 +7,7 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) ...@@ -7,7 +7,7 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup( setup(
name='django-hshassets', name='django-hshassets',
version='1.4.2', version='1.4.3',
packages=find_packages(), packages=find_packages(),
include_package_data=True, include_package_data=True,
license='MIT License', license='MIT License',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment