Source

django-formrenderingtools / demo / demoproject / demoapp / templates / demoapp / includes / fields_order_builtin.html

Full commit
<form>
  {{ form.non_field_errors }}

  {% with form.name as field and "id_name" as field_id %}
    <div class="fieldWrapper">
      {{ field.errors }}
      <label for="{{ field_id }}">{{ field.label }}</label>
      {{ field }}
      <span class="helptext">{{ field.help_text }}</span>
    </div>
  {% endwith %}

  {% with form.domain as field and "id_domain" as field_id %}
    <div class="fieldWrapper">
      {{ field.errors }}
      <label for="{{ field_id }}">{{ field.label }}</label>
      {{ field }}
      <span class="helptext">{{ field.help_text }}</span>
    </div>
  {% endwith %}

  <input type="submit">
</form>