parent
b422d36885
commit
838e5625f8
@ -0,0 +1,45 @@
|
||||
{% load i18n l10n wagtailadmin_tags %}
|
||||
|
||||
{{ self.formset.management_form }}
|
||||
|
||||
{% if self.formset.non_form_errors %}
|
||||
<div class="error-message">
|
||||
{% for error in self.formset.non_form_errors %}
|
||||
<span>{{ error|escape }}</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if self.help_text %}
|
||||
{% help_block status="info" %}{{ self.help_text }}{% endhelp_block %}
|
||||
{% endif %}
|
||||
|
||||
<div id="id_{{ self.formset.prefix }}-FORMS">
|
||||
{% comment %}
|
||||
|
||||
Child elements of this div will become orderable elements. Do not place additional
|
||||
"furniture" elements here unless you intend them to be part of the child ordering.
|
||||
|
||||
{% endcomment %}
|
||||
|
||||
{% for child in self.children %}
|
||||
{% include "wagtailadmin/panels/inline_panel_child.html" %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<template id="id_{{ self.formset.prefix }}-EMPTY_FORM_TEMPLATE">
|
||||
{% include "wagtailadmin/panels/inline_panel_child.html" with child=self.empty_child %}
|
||||
</template>
|
||||
|
||||
{% block js_init %}
|
||||
<script>
|
||||
(function() {
|
||||
var panel = new InlinePanel({
|
||||
formsetPrefix: "id_{{ self.formset.prefix }}",
|
||||
emptyChildFormPrefix: "{{ self.empty_child.form.prefix }}",
|
||||
canOrder: {% if can_order %}true{% else %}false{% endif %},
|
||||
maxForms: {{ self.formset.max_num|unlocalize }}
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
{% endblock %}
|
@ -0,0 +1 @@
|
||||
[{"model": "core.salesrep", "pk": 1, "fields": {"name": "Ed Gunning", "user": null}}, {"model": "core.salesrep", "pk": 2, "fields": {"name": "Tracy Goettsch", "user": 11}}]
|
Loading…
Reference in new issue