Skip to content
Snippets Groups Projects
Commit 76abae71 authored by Fynn Becker's avatar Fynn Becker :crab:
Browse files

Add support for hidden fields in bulma tags

parent 2d8b7bd4
Branches
Tags
No related merge requests found
...@@ -90,6 +90,11 @@ class BulmaFieldMarkup(object): ...@@ -90,6 +90,11 @@ class BulmaFieldMarkup(object):
) )
return cls.div_control(mark_safe(choice_markup)) return cls.div_control(mark_safe(choice_markup))
@classmethod
def hidden(cls, field, content):
"""Hidden fields with labels are silly"""
return cls.div_control(content)
def render_form_generics(context, rendered_fields, rendered_errors, submit_text, submit_class): def render_form_generics(context, rendered_fields, rendered_errors, submit_text, submit_class):
csrf_field = defaulttags.CsrfTokenNode().render(context) csrf_field = defaulttags.CsrfTokenNode().render(context)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment