Updates to AJAX forms and adding autofill function to the event form when adding things via AJAX

This commit is contained in:
Tom Price
2014-12-03 11:17:07 +00:00
parent fbee8c9e9a
commit 91f6bb5557
8 changed files with 81 additions and 37 deletions

View File

@@ -7,7 +7,7 @@
<div class="col-sm-offset-1 col-sm-10">
<h3>{{ object.pk|yesno:"Edit,Add" }} Organisation</h3>
<form action="{{ form.action }}" method="post" class="form-horizontal">{% csrf_token %}
<form action="{{ form.action|default:request.path }}" method="post" class="form-horizontal">{% csrf_token %}
<div class="row">
<div class="col-md-6">
{% include 'form_errors.html' %}