39 lines
1016 B
HTML
39 lines
1016 B
HTML
{% extends "layout/base.html" %}
|
|
{% block head%}
|
|
{% load crispy_forms_tags %}
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
$('#presentationform #presentationpersonformset').formset({
|
|
prefix: '{{ formset.prefix }}'
|
|
});
|
|
})
|
|
</script>
|
|
{% endblock %}
|
|
{% block content %}
|
|
<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 %} |