Altered user pending activation message
[flowspy] / templates / error.html
1 {% load i18n %}
2 <html>
3 <head>
4 <title>Error</title>
5 <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
6 <META HTTP-EQUIV="Expires" CONTENT="-1">
7 <script src="/static/js/jquery.min.js" type="text/javascript"></script>
8 <link rel="stylesheet" type="text/css" href="/static/css/base.css">
9 <link rel="stylesheet" type="text/css" href="/static/css/smoothness/jquery-ui-1.8.13.custom.css">
10 <script type="text/javascript" src="/static/js/jquery-ui-1.8.12.custom.min.js"></script>
11 <script type="text/javascript" src="/static/js/jquery.tooltip.min.js"></script>
12
13 <script type="text/javascript">
14 $(document).ready(function(){
15         $(".relogin").tooltip({ position: "bottom center", opacity: 0.7});
16         });
17 </script>
18 <style type="text/css">
19
20     .tooltip {
21         display: none;
22         background: transparent url(/static/black_arrow_updown.png);
23         font-size: 12px;
24         height: 70px;
25         width: 160px;
26         padding: 25px;
27                 padding-top: 30px;
28         color: #fff;
29     }
30
31 </style>
32 </head>
33
34
35
36 <body>
37         <div id="main">
38                         <div id="header">
39                                 <a class="grnetlogo" href="{% url group-routes %}">
40                                         <img class="logoimg" src="/static/grnet_logo.png">
41                                 </a>
42                                 <div id="title">
43                                         <a href="/">Firewall on Demand</a>
44                                 </div>
45                                 <div class="loginform">
46                                         <div id="formcontent">
47                                                 {% if user.is_authenticated %}
48                                                 <span class="topmenuuser">{% trans "Welcome" %} <strong>{{user}}</strong></span>
49                                                 {% endif %}
50                                                 {% comment %}
51                                                 <span {% if user.is_authenticated %}class="topmenuaction"{% else %}class="topmenuuser"{% endif %} >
52                                                                 <form action="{% url django.views.i18n.set_language %}" method="post" style="display:inline;" id="langform">
53                                                                 {% csrf_token %}
54                                                                 <input name="next" type="hidden" value="{{ next }}" />
55                                                                 <input id="langsel" name="language" type="hidden" value="" />
56                                                                 {% for lang in LANGUAGES %}<a class="select_lang" href="#" onclick="setlang('{{ lang.0 }}'); return false;" title="{{lang.1}}">{% ifnotequal LANGUAGE_CODE lang.0 %}<font style="font-weight:normal;">{% endifnotequal %}{% trans lang.1 %}{% ifnotequal LANGUAGE_CODE lang.0 %}</font>{% endifnotequal %}</a>{% if not forloop.last %} -{% endif %}
57                                                                 {% endfor %}
58                                                         </form>
59                                                 </span>
60                                                 {% endcomment %}
61                                                 {% if user.is_authenticated %}
62                                                 <span class="topmenuaction"><a href="{% url user-profile %}">{% trans "My profile" %}</a></span>
63 {% if user.is_superuser %}
64                                                 <span class="topmenuaction"><a href="{% url admin:index %}">{% trans "Admin" %}</a></span>
65 {% endif %}
66                                                 <span class="topmenuaction"><a href="{% url logout %}">{% trans "Logout" %}</a></span>
67                                                 {% else %}
68                                                 <span class="topmenuaction relogin" title="After clicking Retry Login, it is strongly suggested to close your browser and visit the page again"><a href="{% url logout %}">{% trans "Retry Login" %}</a></span>
69                                                 {% endif %}
70                                         </div>
71                                         
72                                 </div>
73                         </div>
74                         <div id="content">
75                                 {% block brcrmb_container %}
76                                 <div class="info_content_title">{% if user.is_authenticated %}<a href="{% url group-routes %}">{% trans "My routes" %}</a>{% endif %}
77                                 {% block breadcrumbs %}{% endblock %}
78                                 </div>
79                                 
80                                 {% endblock %}
81                                 {% block content %}
82                                 {% if error %}{% if inactive %}<h2>Activation Pending</h2>{% else %}<h2>Error</h2>{% endif %}{% endif %}
83                                 <div>
84                                 {% if missing_attributes %}
85                                 <p>One or more required shibboleth attributes were not released towards this service</p>
86                                 {% endif %}
87                                 <p {% if not inactive %}style="color: red;"{% endif %}>{% autoescape off %}{{error}}{% endautoescape %}</p>
88                                 {% if missing_attributes %}
89                                 <p>
90                                 Required shibboleth attributes:<br>
91                                 <ul>
92                                 <li>HTTP_EPPN</li>
93                                 <li>HTTP_SHIB_HOMEORGANIZATION</li>
94                                 <li>HTTP_SHIB_INETORGPERSON_MAIL</li>
95                                 <li>An appropriate HTTP_SHIB_EP_ENTITLEMENT</li>
96                                 </ul>
97                                 Optional Attributes:
98                                 <ul>
99                                 <li>HTTP_SHIB_INETORGPERSON_GIVENNAME</li>
100                                 <li>HTTP_SHIB_PERSON_SURNAME</li>
101                                 </ul>
102                                 </p>
103                                 {% endif %}
104                                 </div>
105
106                                 {% endblock %}
107
108                         </div>
109                         <div id="footer">
110                         {% if user.is_authenticated %}
111                         {% trans "If you have any questions or need help, contact GRNET Helpdesk at <a href='mailto:helpdesk@grnet.gr'>helpdesk@grnet.gr</a> or 800-11-47638." %}<br />
112                         {% endif %}
113                         <a href="http://www.grnet.gr">{% trans "GRNET" %} NOC</a> | <a href="/about/info/">{% trans "Info" %}</a> | <a href="/about/terms-of-service">{% trans "Service Terms" %}</a>
114                         </div>
115         </div>
116 </body>
117 </html>