Commit 92b2a3d0 authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

Adding a * when a field is required

parent eb5abc94
......@@ -84,7 +84,12 @@ def bootstrap_core(object):
if print_label:
# most of the use case want to print the label
ret.append("""<label class="%s" for="%s">%s</label>""" % (label_classes, field.id_for_label, field.label))
ret.append("""<label class="%s" for="%s">%s%s</label>""" % (
" *" if field.field.required else "",
# If the field has a datalist attribut the input field will suggest from it, printing the element
if datalist:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment