[TASK] Correctly render the forms/formsets within ONE form tag.
This commit is contained in:
1 parent
a374ba960a
commit
32862dbde2
4 files changed
+40
-35
No files matched your search
@@ -3,10 +3,30 @@
|
||||
{% load crispy_forms_tags %}
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
hallo <br>
|
||||
<a href="{% url 'frontend-index' %}">zurück</a>
|
||||
<p>{% crispy presentation_form %}</p>
|
||||
<p>{% crispy person_formset %}</p>
|
||||
<p>{% crispy event_formset %}</p>
|
||||
<a href="{% url 'frontend-index' %}">zurück</a><br>
|
||||
|
||||
<h2>Vortrag anlegen</h2>
|
||||
<form method="POST" action="" class="form-horizontal" id="presentationform">
|
||||
{% crispy presentation_form %}
|
||||
<h3>Personen</h3>
|
||||
<p id="presentationpersonformset">
|
||||
{% for form in person_formset.forms %}
|
||||
<div class="person_form">
|
||||
{% crispy form person_form.helper %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
[+]<br>
|
||||
|
||||
</p>
|
||||
<h3>Veranstaltungen</h3>
|
||||
<p id="presentationeventformset">
|
||||
{% for form in event_formset.forms %}
|
||||
<div class="event_form">
|
||||
{% crispy form event_form.helper %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
[+]<br>
|
||||
</p>
|
||||
<input type="submit" class="btn btn-primary btn-default" value="Submit">
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user