From 8033ebeaeea2271f88a9d9ebe09c6d5f6f310fdd Mon Sep 17 00:00:00 2001 From: Rezende & Pedro & Carlos & Raphael Date: Thu, 18 Sep 2014 18:17:34 -0300 Subject: [PATCH] - reasons for applying - authorities in validation request --- portal/actions.py | 1 + portal/templates/management-tab-requests.html | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/portal/actions.py b/portal/actions.py index 2e567669..a5d1a686 100644 --- a/portal/actions.py +++ b/portal/actions.py @@ -234,6 +234,7 @@ def make_request_user(user): request['public_key'] = user.public_key request['private_key'] = user.private_key request['username'] = user.login + request['reasons'] = user.reasons return request def make_request_slice(slice): diff --git a/portal/templates/management-tab-requests.html b/portal/templates/management-tab-requests.html index 9f53c4d7..eeb84a65 100644 --- a/portal/templates/management-tab-requests.html +++ b/portal/templates/management-tab-requests.html @@ -62,7 +62,7 @@ {% if my_authorities %} {% for authority, requests in my_authorities.items %} - {% if authority == pi_authority or 'fibre'%} + {% if authority == pi_authority or authority == "fibre" %}

{{authority}}

@@ -127,7 +127,7 @@ {% if sub_authorities %} {% for authority, requests in sub_authorities.items %} - {% if authority == pi_authority or 'fibre'%} + {% if authority == pi_authority or authority == 'fibre'%}

{{authority}}

@@ -190,7 +190,7 @@ {% if delegation_authorities %} {% for authority, requests in delegation_authorities.items %} - {% if authority == pi_authority or 'fibre'%} + {% if authority == pi_authority or authority == 'fibre'%}

{{authority}}

-- 2.43.0