From b9f35e5bbabfecbf34858ef7c20c6658bb67bec2 Mon Sep 17 00:00:00 2001
From: Dan Braghis <dan.braghis@torchbox.com>
Date: Thu, 21 Jun 2018 14:14:13 +0100
Subject: [PATCH] Add determination block on the application submission form

---
 .../funds/applicationsubmission_form.html     | 37 ++++++++++++-------
 1 file changed, 23 insertions(+), 14 deletions(-)

diff --git a/opentech/apply/funds/templates/funds/applicationsubmission_form.html b/opentech/apply/funds/templates/funds/applicationsubmission_form.html
index b4f4ad174..71496889f 100644
--- a/opentech/apply/funds/templates/funds/applicationsubmission_form.html
+++ b/opentech/apply/funds/templates/funds/applicationsubmission_form.html
@@ -21,22 +21,31 @@
 </div>
 {% endif %}
 
-<div class="wrapper wrapper--medium wrapper--light-grey-bg wrapper--form">
-    <form class="form" action="" method="post" enctype="multipart/form-data">
-        {% csrf_token %}
+<div class="wrapper wrapper--light-grey-bg wrapper--form wrapper--sidebar">
+    <div>
+        <form class="form" action="" method="post" enctype="multipart/form-data">
+            {% csrf_token %}
 
-        {% for field in form %}
-            {% if field.field %}
-            {% include "funds/includes/field.html" %}
-            {% else %}
-            {{ field }}
-            {% endif %}
-        {% endfor %}
-        {% for button_name, button_value in buttons %}
-            <input class="button button--primary" type="submit" name="{{ button_name }}" value="{{ button_value }}" />
-        {% endfor %}
-    </form>
+            {% for field in form %}
+                {% if field.field %}
+                {% include "funds/includes/field.html" %}
+                {% else %}
+                {{ field }}
+                {% endif %}
+            {% endfor %}
+            {% for button_name, button_value in buttons %}
+                <input class="button button--primary" type="submit" name="{{ button_name }}" value="{{ button_value }}" />
+            {% endfor %}
+        </form>
+    </div>
+
+    <aside class="sidebar">
+    {% block determination %}
+        {% include 'determinations/includes/determination_block.html' with submission=object %}
+    {% endblock %}
+    </aside>
 </div>
+
 {% endblock %}
 
 {% block extra_js %}
-- 
GitLab