From: Rezende & Pedro & Carlos & Raphael Date: Thu, 18 Sep 2014 21:17:34 +0000 (-0300) Subject: - reasons for applying X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=commitdiff_plain;h=8033ebeaeea2271f88a9d9ebe09c6d5f6f310fdd - reasons for applying - authorities in validation request --- 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}}