From b3eb4903e097056b96482cbef48af8eb0bdf2998 Mon Sep 17 00:00:00 2001
From: Fredrik Jonsson <frjo@xdeb.org>
Date: Mon, 19 Nov 2018 22:09:42 +0100
Subject: [PATCH] Add edit account link on submissions for otf staff.

---
 .../funds/templates/funds/includes/rendered_answers.html      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/opentech/apply/funds/templates/funds/includes/rendered_answers.html b/opentech/apply/funds/templates/funds/includes/rendered_answers.html
index 93977b104..573d6bd24 100644
--- a/opentech/apply/funds/templates/funds/includes/rendered_answers.html
+++ b/opentech/apply/funds/templates/funds/includes/rendered_answers.html
@@ -1,4 +1,4 @@
-{% load workflow_tags %}
+{% load wagtailusers_tags workflow_tags %}
 <h3>Proposal Information</h3>
 <div class="grid grid--proposal-info">
     <div>
@@ -13,7 +13,7 @@
 
     <div>
         <h5>Legal Name</h5>
-        <p>{{ object.get_full_name_display }}</p>
+        <p>{{ object.get_full_name_display }}{% if request.user.is_apply_staff %} (<a href="{% url 'wagtailusers_users:edit' object.user_id %}">Edit account</a>){% endif %}</p>
     </div>
 
     <div>
-- 
GitLab