{% extends "cavebase.html" %} {% block title %}New Cave Creation Form{% endblock %} {% block extraheaders %} {% endblock %} {% block content %}

New Cave Datasheet

Instructions

Refer to the handbook New Cave Datasheet page for what all these mean and how to fill them in.

{% csrf_token %}
{% for field in form %} {# Logic to catch the first coordinate and start a side-by-side div #} {% if field.name == "gps_lat" %}
{{ field.label_tag }} {{ field }} N {{ field.errors }}
{% elif field.name == "gps_long" %}
{{ field.label_tag }} {{ field }} E {%if areacode %}     {{areacode}}{% endif %} {{ field.errors }}
{# Standard Checkbox rendering #} {% elif field.field.widget.input_type == "checkbox" %}
{{ field }} {{ field.label_tag }}
{{ field.errors }} {# Standard Field rendering #} {% else %}
{{ field.label_tag }} {{ field }} {{ field.errors }}
{% endif %} {% endfor %}

What this will do:

{% endblock %}