Skip to content
Snippets Groups Projects
Commit 573c8488 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Updates to admin for wagtail 2.2

parent dc0ae60e
No related branches found
No related tags found
No related merge requests found
......@@ -90,7 +90,7 @@ class ReadOnlyInlinePanel(ReadOnlyPanel):
def on_instance_bound(self):
values = getattr(self.instance, self.attr).all()
child_panel = self.get_child_edit_handler()
self.children = [child_panel.bind_to_instance(value, form=self.form) for value in values]
self.children = [child_panel.bind_to_instance(value, form=self.form, request=self.request) for value in values]
class FilteredFieldPanel(FieldPanel):
......
......@@ -4,13 +4,12 @@
{% block content %}
<div>
{% block header %}
{% include "modeladmin/includes/breadcrumb.html" %}
{% include "wagtailadmin/shared/header.html" with title=view.get_page_title subtitle=view.get_page_subtitle icon=view.header_icon %}
{% include "modeladmin/includes/header_with_breadcrumb.html" with title=view.get_page_title subtitle=view.get_page_subtitle icon=view.header_icon tabbed=True %}
{% endblock %}
<div class="nice-padding">
<h2>{% blocktrans %}Choose a Fund{% endblocktrans %}</h2>
<p>{% blocktrans %}Rounds must be associated with a Fund. For which Fund are you creating a new Round for?{% endblocktrans %}</p>
<p>{% blocktrans %}Rounds must be associated with a Fund or RFP. What are you creating a new Round for?{% endblocktrans %}</p>
<form action="" method="post" novalidate>
{% csrf_token %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment