Skip to content

Instantly share code, notes, and snippets.

@mmtechslv
Created April 7, 2021 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmtechslv/0b03c7740094dc5c5f9d6c3443b82d9a to your computer and use it in GitHub Desktop.
Save mmtechslv/0b03c7740094dc5c5f9d6c3443b82d9a to your computer and use it in GitHub Desktop.
Markdium-Introduction
{% load crispy_forms_field %}
<div class="form-group{% if 'form-horizontal' in form_class %} row{% endif %}">
<label for="{{ field.id_for_label }}" class="{% if 'form-horizontal' in form_class %}col-form-label {% endif %}{{ label_class }}{% if field.field.required %} requiredField{% endif %}">
{{ field.label|safe }}
{% if field.field.required %}
<span class="asteriskField">*</span>
{% endif %}
</label>
{% crispy_field field %}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment