From cc9e31cc9728444e1e7f8dfcc88fa73928c9592f Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Tue, 23 Jan 2018 22:40:37 +0000 Subject: [PATCH] Allow submission of forms to the fund rather than round url --- opentech/apply/funds/templates/funds/fund_type.html | 4 ++-- opentech/apply/funds/templates/funds/round.html | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/opentech/apply/funds/templates/funds/fund_type.html b/opentech/apply/funds/templates/funds/fund_type.html index 8b61a7da8..4d3a7bbf8 100644 --- a/opentech/apply/funds/templates/funds/fund_type.html +++ b/opentech/apply/funds/templates/funds/fund_type.html @@ -2,9 +2,9 @@ {% load wagtailcore_tags %} {% block content %} - <h1>{{ page.title }}</h1> + <h1>{% block title %}{{ page.title }}{% endblock %}</h1> - <form action="{% pageurl page %}" method="POST"> + <form action="" method="POST"> {% csrf_token %} {% if form.errors or form.non_field_errors %} diff --git a/opentech/apply/funds/templates/funds/round.html b/opentech/apply/funds/templates/funds/round.html index f9c01ba8e..db8010fbc 100644 --- a/opentech/apply/funds/templates/funds/round.html +++ b/opentech/apply/funds/templates/funds/round.html @@ -1 +1,3 @@ -{% include "funds/fund_type.html" %} +{% extends "funds/fund_type.html" %} + +{% block title %}{{ page.get_parent.title }}{% endblock %} -- GitLab