[TASK] Add small dynamic formset snippet.
This commit is contained in:
parent
32862dbde2
commit
c019b5f0b9
|
@ -51,6 +51,7 @@ INSTALLED_APPS = (
|
|||
'bootstrap3_datetime',
|
||||
'django_bootstrap_breadcrumbs',
|
||||
'frontend',
|
||||
'debug_toolbar'
|
||||
)
|
||||
|
||||
MIDDLEWARE_CLASSES = (
|
||||
|
|
|
@ -1,6 +1,13 @@
|
|||
{% 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>
|
||||
|
|
Loading…
Reference in New Issue