General message error goes above submit button

This commit is contained in:
Cezar Pendarovski 2014-09-04 17:51:45 +02:00
parent ea259e8bde
commit 3bc858c30b

View File

@ -42,14 +42,14 @@
</div>
</div>
<input type="hidden" name="next" value="{{ next }}" />
<div class="form-actions-no-box">
<input type="submit" name="submit" value="Log in" class="btn btn-primary" id="submit-id-submit">
</div>
{% if form.non_field_errors %}
{% for error in form.non_field_errors %}
<div class="alert" style="margin-top: 10px">{{ error }}</div>
{% endfor %}
{% endif %}
<div class="form-actions-no-box">
<input type="submit" name="submit" value="Log in" class="btn btn-primary" id="submit-id-submit">
</div>
</form>
</div>
</div><!-- /.row-fluid -->