Skip to content
Snippets Groups Projects
Commit cae4f3b5 authored by Todd Dembrey's avatar Todd Dembrey Committed by Fredrik Jonsson
Browse files

Make the funds use a consistent base template

parent 3b2ffa7d
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ class ApplicationBaseManager(PageQuerySet):
class ApplicationBase(EmailForm, WorkflowStreamForm): # type: ignore
is_createable = False
template = 'funds/application_base.html'
# Adds validation around forms & workflows. Isn't on Workflow class due to not displaying workflow field on Round
base_form_class = WorkflowFormAdminForm
......
{% extends "base.html" %}
{% load wagtailcore_tags static i18n %}
{% load wagtailcore_tags static i18n util_tags %}
{# Dont include fixed apply button on this page #}
{% block apply_button %}{% endblock %}
{% block header_modifier %}header--light-bg{% endblock %}
......@@ -23,8 +23,8 @@
<div class="wrapper wrapper--medium wrapper--light-grey-bg wrapper--form">
{% if not page.open_round and not page.start_date and not request.is_preview %}
{# the fund has no open rounds and we arent on a round page #}
<h3>{% trans "Sorry this fund is not accepting applications at the moment" %}</h3>
{# the page has no open rounds and we arent on a round page #}
<h3>{% blocktrans %}Sorry this {{ page|verbose_name }} is not accepting applications at the moment{% endblocktrans %}</h3>
{% else%}
<form class="form" action="" method="POST" enctype="multipart/form-data">
{{ form.media }}
......
{% extends "funds/fund_type.html" %}
{% extends "funds/application_base.html" %}
{% extends "funds/fund_type_landing.html" %}
{% extends "funds/application_base_landing.html" %}
{% extends "funds/fund_type.html" %}
{% extends "funds/application_base.html" %}
{% block page_title %}{{ page.get_parent.title }}{% endblock %}
......
{% extends "funds/fund_type_landing.html" %}
{% extends "funds/application_base_landing.html" %}
{% block page_title %}{{ page.get_parent.title }}{% endblock %}
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