Commit caef3af0 authored by Leonidas Poulopoulos's avatar Leonidas Poulopoulos
Browse files

Errors template now render as base extension

parent b57020fd
{% extends "base.html" %}
{% load i18n %}
<html>
<head>
<title>{% if error %}{% if inactive %}Activation Pending{% else %}Error{% endif %}{% endif %}</title>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<script src="/static/js/jquery.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/static/css/base.css">
<link rel="stylesheet" type="text/css" href="/static/css/smoothness/jquery-ui-1.8.13.custom.css">
<script type="text/javascript" src="/static/js/jquery-ui-1.8.12.custom.min.js"></script>
<script type="text/javascript" src="/static/js/jquery.tooltip.min.js"></script>
{% block title %}{% if error %}{% if inactive %}Activation Pending{% else %}Error{% endif %}{% endif %}{% endblock %}
<script type="text/javascript">
$(document).ready(function(){
$(".relogin").tooltip({ position: "bottom center", opacity: 0.7});
});
</script>
<style type="text/css">
{% block extrahead %}
<script type="text/javascript">
$(document).ready(function(){
$(".relogin").tooltip({ position: "bottom center", opacity: 0.7});
});
</script>
<style type="text/css">
.tooltip {
display: none;
background: transparent url(/static/black_arrow_updown.png);
font-size: 12px;
height: 70px;
width: 160px;
padding: 25px;
padding-top: 30px;
color: #fff;
}
.tooltip {
display: none;
background: transparent url(/static/black_arrow_updown.png);
font-size: 12px;
height: 70px;
width: 160px;
padding: 25px;
padding-top: 30px;
color: #fff;
}
</style>
</head>
</style>
{% endblock %}
{% block menublock %}
{% if user.is_authenticated %}
<span class="topmenuuser">{% trans "Welcome" %} <strong>{{user}}</strong></span>
{% endif %}
{% if user.is_authenticated %}
<span class="topmenuaction"><a href="{% url user-profile %}">{% trans "My profile" %}</a></span>
{% if user.is_superuser %}
<span class="topmenuaction"><a href="{% url admin:index %}">{% trans "Admin" %}</a></span>
{% endif %}
<span class="topmenuaction"><a href="{% url logout %}">{% trans "Logout" %}</a></span>
{% else %}
<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>
{% endif %}
{% endblock %}
<body>
<div id="main">
<div id="header">
<a class="grnetlogo" href="{% url group-routes %}">
<img class="logoimg" src="/static/grnet_logo.png">
</a>
<div id="title">
<a href="/">Firewall on Demand</a>
</div>
<div class="loginform">
<div id="formcontent">
{% if user.is_authenticated %}
<span class="topmenuuser">{% trans "Welcome" %} <strong>{{user}}</strong></span>
{% endif %}
{% comment %}
<span {% if user.is_authenticated %}class="topmenuaction"{% else %}class="topmenuuser"{% endif %} >
<form action="{% url django.views.i18n.set_language %}" method="post" style="display:inline;" id="langform">
{% csrf_token %}
<input name="next" type="hidden" value="{{ next }}" />
<input id="langsel" name="language" type="hidden" value="" />
{% 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 %}
{% endfor %}
</form>
</span>
{% endcomment %}
{% if user.is_authenticated %}
<span class="topmenuaction"><a href="{% url user-profile %}">{% trans "My profile" %}</a></span>
{% if user.is_superuser %}
<span class="topmenuaction"><a href="{% url admin:index %}">{% trans "Admin" %}</a></span>
{% endif %}
<span class="topmenuaction"><a href="{% url logout %}">{% trans "Logout" %}</a></span>
{% else %}
<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>
{% endif %}
</div>
</div>
</div>
<div id="content">
{% block brcrmb_container %}
<div class="info_content_title">{% if user.is_authenticated %}<a href="{% url group-routes %}">{% trans "My rules" %}</a>{% endif %}
{% block breadcrumbs %}{% endblock %}
</div>
{% endblock %}
{% block content %}
{% if error %}{% if inactive %}<h2>Activation Pending</h2>{% else %}<h2>Error</h2>{% endif %}{% endif %}
<div>
{% if missing_attributes %}
<p>One or more required shibboleth attributes were not released towards this service</p>
{% endif %}
<p {% if not inactive %}style="color: red;"{% endif %}>{% autoescape off %}{{error}}{% endautoescape %}</p>
{% if missing_attributes %}
<p>
Required shibboleth attributes:<br>
<ul>
<li>HTTP_EPPN</li>
<li>HTTP_SHIB_HOMEORGANIZATION</li>
<li>HTTP_SHIB_INETORGPERSON_MAIL</li>
<li>An appropriate HTTP_SHIB_EP_ENTITLEMENT</li>
</ul>
Optional Attributes:
<ul>
<li>HTTP_SHIB_INETORGPERSON_GIVENNAME</li>
<li>HTTP_SHIB_PERSON_SURNAME</li>
</ul>
</p>
{% endif %}
</div>
{% endblock %}
</div>
<div id="footer">
{% if user.is_authenticated %}
{% 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 />
{% endif %}
<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>
</div>
{% block content %}
{% if error %}{% if inactive %}<h2>Activation Pending</h2>{% else %}<h2>Error</h2>{% endif %}{% endif %}
<div>
{% if missing_attributes %}
<p>One or more required shibboleth attributes were not released towards this service</p>
{% endif %}
<p {% if not inactive %}style="color: red;"{% endif %}>{% autoescape off %}{{error}}{% endautoescape %}</p>
{% if missing_attributes %}
<p>
Required shibboleth attributes:<br>
<ul>
<li>HTTP_EPPN</li>
<li>HTTP_SHIB_HOMEORGANIZATION</li>
<li>HTTP_SHIB_INETORGPERSON_MAIL</li>
<li>An appropriate HTTP_SHIB_EP_ENTITLEMENT</li>
</ul>
Optional Attributes:
<ul>
<li>HTTP_SHIB_INETORGPERSON_GIVENNAME</li>
<li>HTTP_SHIB_PERSON_SURNAME</li>
</ul>
</p>
{% endif %}
</div>
</body>
</html>
{% endblock %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment