- reasons for applying
authorRezende & Pedro & Carlos & Raphael <rezende@land.ufrj.br>
Thu, 18 Sep 2014 21:17:34 +0000 (18:17 -0300)
committerRezende & Pedro & Carlos & Raphael <rezende@land.ufrj.br>
Thu, 18 Sep 2014 21:17:34 +0000 (18:17 -0300)
- authorities in validation request

portal/actions.py
portal/templates/management-tab-requests.html

index 2e56766..a5d1a68 100644 (file)
@@ -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):
index 9f53c4d..eeb84a6 100644 (file)
@@ -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" %}
        <div class="col-md-12">
                <h2>{{authority}}</h2>
                <table class="table">
 {% if sub_authorities %}
        
        {% for authority, requests in sub_authorities.items %}
-       {% if authority == pi_authority or 'fibre'%}
+       {% if authority == pi_authority or authority == 'fibre'%}
                <div class="col-md-12">
                <h3>{{authority}}</h3>
                    <table class="table">
 {% if delegation_authorities %}
        
        {% for authority, requests in delegation_authorities.items %}
-       {% if authority == pi_authority  or 'fibre'%}
+       {% if authority == pi_authority  or authority == 'fibre'%}
        <div class="col-md-12">
                <h3>{{authority}}</h3>
                    <table class="table">