citavi_mapper/frontend/templates/hello.html

39 lines
1016 B
HTML
Raw Normal View History

2014-11-17 11:06:35 +01:00
{% extends "layout/base.html" %}
2014-11-26 10:20:46 +01:00
{% block head%}
{% load crispy_forms_tags %}
<script type="text/javascript">
$(function() {
$('#presentationform #presentationpersonformset').formset({
prefix: '{{ formset.prefix }}'
});
})
</script>
2014-11-26 10:20:46 +01:00
{% endblock %}
2014-11-17 11:06:35 +01:00
{% block content %}
<a href="{% url 'frontend-index' %}">zurück</a><br>
2014-11-26 10:20:46 +01:00
<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>
2014-11-17 11:06:35 +01:00
{% endblock %}