<form id="form" action="" method="post" {% if form.non_field_errors %}class="error"{% endif %}
    {% if form.is_multipart %}enctype="multipart/form-data"{% endif %}>{% csrf_token %}
    {% for hidden in form.hidden_fields %}
        {{ hidden }}
    {% endfor %}
    {% for field in form %}
        <div style="width: 100%; padding: 0.2em;"
            class="field_wrapper{% if field.errors %} error"{% endif %}">
            <div style="width: 20%; float:left;"
                class="field_label{% if field.field.required %} field_required{% endif %}"
                >
                {{ field.label_tag }}
            </div>
            <div style="width: 75%; float:left;"> 
                {{ field }} {{ field.errors.as_textlist }}
                {% if field.help_text %}<p class="field_help">{{ field.help_text }}</p>{% endif %}
            </div>
            <div style="clear:both"></div>
        </div>
    {% endfor %}
    <div style="width: 100%;">
        <div style="width: 30%; float:right;">
            <input id="submit" type="submit" value="Save" />
        </div>
        <div style="clear:both"></div>
    </div>
    {% if form.non_field_errors %}
        <p class="non_field_error">{{ form.non_field_errors.as_textlist }}</p>
    {% endif %}
</form>
