Customizing user email activation page and organizations in the registration
authorLoic Baron <loic.baron@lip6.fr>
Sun, 27 Jul 2014 02:51:00 +0000 (23:51 -0300)
committerLoic Baron <loic.baron@lip6.fr>
Sun, 27 Jul 2014 02:51:00 +0000 (23:51 -0300)
portal/templates/fibre/fibre_registration_view.html
portal/templates/fibre/fibre_user_register_complete.html [new file with mode: 0644]

index 4b57f8b..a1ab866 100644 (file)
@@ -167,7 +167,39 @@ $(document).ready(function(){
                {% if authority.authority_hrn == "fibre.ufrj" %}
                        {value:"{{ authority.authority_hrn }}",label:"UNIVERSIDADE FEDERAL DO RIO DE JANEIRO"},
                {% else %}
-                       {value:"{{ authority.authority_hrn }}",label:"FIBRE"},
+                      {% if authority.authority_hrn == "fibre.ufg" %}
+                              {value:"{{ authority.authority_hrn }}",label:"UNIVERSIDADE FEDERAL DE GOIAS"},
+                      {% else %}
+                              {% if authority.authority_hrn == "fibre.uff" %}
+                                     {value:"{{ authority.authority_hrn }}",label:"UNIVERSIDADE FEDERAL FLUMINENSE"},
+                              {% else %}
+                                     {% if authority.authority_hrn == "fibre.ufpa" %}
+                                             {value:"{{ authority.authority_hrn }}",label:"UNIVERSIDADE FEDERAL DO PARA"},
+                                     {% else %}
+                                             {% if authority.authority_hrn == "fibre.ufpe" %}
+                                                     {value:"{{ authority.authority_hrn }}",label:"UNIVERSIDADE FEDERAL DE PERNAMBUCO"},
+                                             {% else %}
+                                                     {% if authority.authority_hrn == "fibre.ufscar" %}
+                                                            {value:"{{ authority.authority_hrn }}",label:"UNIVERSIDADE FEDERAL DE SAO CARLOS"},
+                                                     {% else %}
+                                                            {% if authority.authority_hrn == "fibre.unifacs" %}
+                                                                     {value:"{{ authority.authority_hrn }}",label:"UNIVERSIDADE SALVADOR"},
+                                                            {% else %}
+                                                                     {% if authority.authority_hrn == "fibre.usp" %}
+                                                                            {value:"{{ authority.authority_hrn }}",label:"UNIVERSIDADE DE SAO PAULO"},
+                                                                     {% else %}
+                                                                            {% if authority.authority_hrn == "fibre.cpqd" %}
+                                                                                    {value:"{{ authority.authority_hrn }}",label:"CENTRO DE PESQUISA E DESENVOLVIMENTO EM TELECOMUNICACOES"},
+                                                                            {% else %}
+                                                                                   {value:"{{ authority.authority_hrn }}",label:"FIBRE"},
+                                                                           {% endif %}
+                                                                    {% endif %}
+                                                           {% endif %}
+                                                   {% endif %}
+                                             {% endif %}
+                                    {% endif %}
+                              {% endif %}
+                     {% endif %}
                {% endif %}
             {% endif %}
         {% endfor %}    
diff --git a/portal/templates/fibre/fibre_user_register_complete.html b/portal/templates/fibre/fibre_user_register_complete.html
new file mode 100644 (file)
index 0000000..2bd2f0a
--- /dev/null
@@ -0,0 +1,18 @@
+{% extends "layout.html" %}
+
+{% block content %}
+
+<div class="row">
+       <h1><img src="{{ STATIC_URL }}img/icon_user_small.png" alt="User Registration" /> User sign-up</h1>
+</div>
+<div class="row">
+  <h3>Sign up information received.</h3>
+  <p>You can now log in to the portal. You will have limited access. </p>
+  <p>To gain full access, two steps are required:</p>
+  <ul>
+       <li>1. You confirm your signup request by clicking on the link in the email that we have sent to your email address.</li>
+       <li>2. A manager from your organization validates your request. (We have sent email to your organisation's registered managers.)</li>
+  </ul>                
+</div>
+
+{% endblock %}