Skip to content
Snippets Groups Projects
Commit 1ae60b84 authored by Tim Fechner's avatar Tim Fechner
Browse files
parents 6d03d211 76abae71
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,11 @@ class BulmaFieldMarkup(object):
)
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):
csrf_field = defaulttags.CsrfTokenNode().render(context)
......@@ -119,6 +124,6 @@ def render_form_errors(errors):
</div>
</div>
""",
**locals(),
error_tags=error_tags,
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment