[TASK] Move dynamic formset configuration to template.
This commit is contained in:
parent
e7fc6dcb8a
commit
5839ec3bbc
|
@ -4,10 +4,22 @@
|
|||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$('#presentationform #presentationpersonformset').formset({
|
||||
prefix: '{{ person_formset.prefix }}'
|
||||
prefix: '{{ person_formset.prefix }}',
|
||||
addText: 'weitere Person hinzufügen',
|
||||
deleteText: 'eine Person entfernen',
|
||||
addCssClass: 'add-row',
|
||||
deleteCssClass: 'delete-row',
|
||||
formCssClass: 'dynamic-form',
|
||||
extraClasses: []
|
||||
});
|
||||
$('#presentationform #presentationeventformset').formset({
|
||||
prefix: '{{ event_formset.prefix }}'
|
||||
prefix: '{{ event_formset.prefix }}',
|
||||
addText: 'weitere Veranstaltung hinzufügen',
|
||||
deleteText: 'eine Veranstaltung entfernen',
|
||||
addCssClass: 'add-row',
|
||||
deleteCssClass: 'delete-row',
|
||||
formCssClass: 'dynamic-form',
|
||||
extraClasses: []
|
||||
});
|
||||
})
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue