Commit f9f2d813 authored by Kroustouris Stauros's avatar Kroustouris Stauros Committed by root

un hard code static

parent ed798dcc
{% load i18n %}
{% load staticfiles %}
<!DOCTYPE html>
<html>
<head>
<title>{% block title %}eduroam | {{COUNTRY_CODE}}{% endblock %} : {% block currentpagetitle %}{% endblock %}</title>
<link href="/static/css/bootstrap.min.css" rel="stylesheet">
<link href="{% static 'css/bootstrap.min.css' %}" rel="stylesheet">
<link href="/static/css/style.css" rel="stylesheet">
<link href="{% static 'css/style.css' %}" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link REL="shortcut icon" HREF="/static/img/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/static/img/edu144-icon.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/static/img/edu114-icon.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/static/img/edu72-icon.png">
<link rel="apple-touch-icon-precomposed" href="/static/img/edu-icon.png">
<link REL="shortcut icon" HREF="{% static 'img/favicon.ico' %}">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{% static 'img/edu144-icon.png' %}">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{% static 'img/edu114-icon.png' %}">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{% static 'img/edu72-icon.png' %}">
<link rel="apple-touch-icon-precomposed" href="{% static 'img/edu-icon.png' %}">
<style type="text/css">
body {
padding-top: 90px;
......@@ -48,9 +49,9 @@ body {
display: inline-table;
}
</style>
<link href="/static/css/bootstrap-responsive.min.css" rel="stylesheet">
<script type="text/javascript" src="/static/js/jquery.min.js"></script>
<script src="/static/js/bootstrap.min.js"></script>
<link href="{% static 'css/bootstrap-responsive.min.css' %}" rel="stylesheet">
<script type="text/javascript" src="{% static 'js/jquery.min.js' %}"></script>
<script src="{% static 'js/bootstrap.min.js' %}"></script>
<script type="text/javascript">
function setlang(lang){
......@@ -72,8 +73,8 @@ body {
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand visible-desktop" href="{% block logourl %}{% url index %}{% endblock %}"><img src="/static/img/logo_holder.png" /></a>
<a class="brand hidden-desktop" href="{% url index %}"><img src="/static/img/logo_small.png" /></a>
<a class="brand visible-desktop" href="{% block logourl %}{% url index %}{% endblock %}"><img src="{% static 'img/logo_holder.png' %}" /></a>
<a class="brand hidden-desktop" href="{% url index %}"><img src="{% static 'img/logo_small.png' %}" /></a>
<div class="nav-collapse collapse">
{% block topmenu %}
<ul class="nav">
......@@ -83,8 +84,8 @@ body {
<li {% block faqtop %}{% endblock %}>
<a href="/faq/{{LANGUAGE_CODE}}/">FAQ</a>
</li>
{% include "front/management_dropdown.html" %}
</ul>
......@@ -106,11 +107,11 @@ body {
</ul>
</li>
<li class="hidden-phone">
<a href="{{DOMAIN_MAIN_URL}}" style="padding: 0px; margin: 0px;"><img src="/static/img/right_logo_small.png"></a>
<a href="{{DOMAIN_MAIN_URL}}" style="padding: 0px; margin: 0px;"><img src="{% static 'img/right_logo_small.png' %}"></a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
......@@ -120,7 +121,7 @@ body {
<div class="span2">
<div class="well sidebar-nav">
<ul class="nav nav-list">
<li {% block homepage %}{% endblock %}><a href="{% url index %}">{% trans "Home" %}</a></li>
<li class="nav-header">{% trans "USERS" %}</li>
<li {% block whatis %}{% endblock %}><a href="/what/{{LANGUAGE_CODE}}/">{% trans "The service" %}</a></li>
......@@ -134,20 +135,20 @@ body {
<li><a href="https://apps.getpebble.com/applications/5384b2119c84af48350000c7">{% trans "pebduroam" %}</a></li>
<li class="nav-header">{% trans "API" %}</li>
<li {% block api %}{% endblock %}><a href="{% url api %}">{% trans "Closest point" %}</a></li>
</ul>
</div><!--/.well -->
<div class="hidden-phone"><img src="/static/img/keep_calm_eduroam_small.png"></div>
<div class="hidden-phone"><img src="{% static 'img/keep_calm_eduroam_small.png' %}"></div>
</div><!--/span-->
<div class="span10">
<div class="row-fluid">
<!--/span-->
{% block subcontent %}
{% endblock %}
<!--/span-->
</div><!--/row-->
</div><!--/span-->
......
{% extends "edumanage/welcome.html"%}
{% load i18n %}
{% load staticfiles %}
{% block crumbs %}
<li><a href="{% url manage %}">{% trans "Home" %}</a><span class="divider">/</span></li>
<li class="active">{% trans "CAT Enroll" %}</li>
<li><a href="{% url manage %}">{% trans "Home" %}</a><span class="divider">/</span></li>
<li class="active">{% trans "CAT Enroll" %}</li>
{% endblock %}
{% block extrahead %}
<script type="text/javascript" src="/static/js/jquery.min.js"></script>
<script src="/static/js/bootstrap.min.js"></script>
{% block extrahead %}
<script type="text/javascript" src="{% static 'js/jquery.min.js' %}"></script>
<script src="{% static 'js/bootstrap.min.js' %}"></script>
{% endblock %}
{% block homeactive %}{% endblock %}
{% block catactive %}class="active"{% endblock %}
{% block subcontent %} <h4>eduroam CAT enroll</h4>
......@@ -38,7 +36,7 @@
<th>{% trans "Applier" %}</th>
</tr>
</thead>
<tbody>
{% for enrollment in current_enrollments %}
<tr class="GradeC">
......@@ -94,4 +92,4 @@
</div>
{% endif %}
{% endblock %}
{% extends "edumanage/welcome.html"%}
{% load i18n %}
{% block crumbs %}
<li><a href="{% url manage %}">{% trans "Home" %}</a><span class="divider">/</span></li>
<li class="active">{% trans "Contacts" %}</li>
{% endblock %}
{% load i18n %}
{% load staticfiles %}
{% block crumbs %}
<li><a href="{% url manage %}">{% trans "Home" %}</a><span class="divider">/</span></li>
<li class="active">{% trans "Contacts" %}</li>
{% endblock %}
{% block extrahead %}
<script type="text/javascript" src="/static/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/static/js/datatables_bootstrap.js"></script>
<script type="text/javascript" src="{% static 'js/jquery.dataTables.min.js' %}"></script>
<script type="text/javascript" src="{% static 'js/datatables_bootstrap.js' %}"></script>
<script type="text/javascript">
$(document).ready(function(){
{% if contacts %}
......@@ -59,7 +61,7 @@ $('[id^=del_contact_]').click(function(){
$("#myModalLabel").html("{% trans 'Delete contact' %} "+name);
$('#myModal').modal('show');
$(".modal-footer").show();
$("#contact_name_del").html(name)
$("#contact_name_del").html(name)
return false;
});
......@@ -76,7 +78,7 @@ $("#delcontactSubmit").click(function(){
$(".modal-footer").hide();
$("#mymodalbody").html("contact "+name+" successfully deleted");
window.setTimeout('location.reload()', 1000);
}
}
});
......@@ -88,14 +90,14 @@ $("#delcontactSubmit").click(function(){
{% endblock %}
{% block navbar %}
{% endblock %}
{% block homeactive %}{% endblock %}
{% block contactsactive %}class="active"{% endblock %}
{% block subcontent %}
<h4>{% trans "Contacts" %}</h4>
<hr>
{% if messages %}
......@@ -117,7 +119,7 @@ $("#delcontactSubmit").click(function(){
<th style="text-align: center;">{% trans "Action" %}</th>
</tr>
</thead>
<tbody>
{% for contact in contacts %}
<tr class="GradeC">
......
{% extends "edumanage/welcome.html"%}
{% load i18n %}
{% load staticfiles %}
{% block crumbs %}
<li><a href="{% url manage %}">{% trans "Home" %}</a><span class="divider">/</span></li>
<li><a href="{% url contacts %}">{% trans "Contacts" %}</a><span class="divider">/</span></li>
<li class="active">{% if edit %}{{form.instance.name}} ({% trans "edit" %}){% else %}{% trans "Add Contact" %}{% endif %}</li>
{% endblock %}
{% block extrahead %}
<script type="text/javascript" src="/static/js/jquery.min.js"></script>
<script type="text/javascript" src="//maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="{% static 'js/jquery.min.js' %}"></script>
<script type="text/javascript" src="//maps.googleapis.com/maps/api/js?sensor=false"></script>
{% endblock %}
{% block homeactive %}{% endblock %}
{% block contactsactive %}class="active"{% endblock %}
{% block subcontent %} <h4>{% if edit %}{{form.instance.name}} ({% trans "edit" %}){% else %}{% trans "Add Contact" %}{% endif %}</h4>
......@@ -60,4 +57,4 @@
</div>
</form>
{% endblock %}
......@@ -8,26 +8,26 @@
}
</style>
{% endblock %}
{% block crumbs %}
<li><a href="{% url manage %}">{% trans "Home" %}</a><span class="divider">/</span></li>
<li class="active">{% trans "Institution" %}</li>
{% endblock %}
{% block homeactive %}{% endblock %}
{% block instactive %}class="active"{% endblock %}
{% block subcontent %}
<h4>{% trans "Institution" %}</h4>
<hr>
{% if messages %}
<table class="table table-condensed">
{% for message in messages %}
<tr {% if message.tags %} class="{{ message.tags }}"{% endif %}><td>{{ message }}<td></tr>
{% endfor %}
</table>
{% endif %}
{% load tolocale %}
{% if institution %}
{% if institution.institutiondetails %}
{% block crumbs %}
<li><a href="{% url manage %}">{% trans "Home" %}</a><span class="divider">/</span></li>
<li class="active">{% trans "Institution" %}</li>
{% endblock %}
{% block homeactive %}{% endblock %}
{% block instactive %}class="active"{% endblock %}
{% block subcontent %}
<h4>{% trans "Institution" %}</h4>
<hr>
{% if messages %}
<table class="table table-condensed">
{% for message in messages %}
<tr {% if message.tags %} class="{{ message.tags }}"{% endif %}><td>{{ message }}<td></tr>
{% endfor %}
</table>
{% endif %}
{% load tolocale %}
{% if institution %}
{% if institution.institutiondetails %}
<div class="form-horizontal">
......@@ -65,7 +65,7 @@
</div>
<div class="control-group ">
<label class="control-label" for="id_urls">{% trans "Urls" %}</label>
<div class="controls">
{% for url in institution.institutiondetails.url.all %}
<a href="{{url.url}}" target="_blank">{{url.url}}</a> - {{url.get_urltype_display}} ({{url.get_lang_display}}){% if not forloop.last %}<br>{% endif %}
......@@ -99,7 +99,7 @@
<a class="btn btn-primary" href="{% url edit-institution institution.pk %}">{% trans "Edit" %}</a>
</div>
</div>
</div>
</div>
{% else %}
<div>{% trans "No institution details defined yet for" %} {% tolocale institution LANGUAGE_CODE%} <a href="{% url edit-institution institution.pk %}" class="btn btn-small btn-primary">{% trans "edit" %}</a></div>
{% endif %}
......@@ -107,4 +107,4 @@
<p>{% trans "No institution defined" %}</p>
{% endif %}
{% endblock %}
\ No newline at end of file
{% extends "edumanage/welcome.html"%}
{% load staticfiles %}
{% load i18n %}
{% load tolocale %}
{% block crumbs %}
<li><a href="{% url manage %}">{% trans "Home" %}</a><span class="divider">/</span></li>
<li><a href="{% url institutions %}">{% trans "Institution" %}</a><span class="divider">/</span></li>
<li class="active">{% tolocale institution LANGUAGE_CODE%} ({% trans "Edit" %})</li>
{% endblock %}
{% block extrahead %}
<script type="text/javascript" src="/static/js/jquery.formset.js"></script>
<script type="text/javascript" src="{% static 'js/jquery.formset.js' %}"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#adduserSubmit").click(function(){
$.ajax({
url:"{% url adduser %}",
url:"{% url adduser %}",
data:$("#add_user_form").serialize(),
type: "POST",
cache: false,
......@@ -21,7 +24,7 @@ $(document).ready(function() {
value = data.value;
text = data.text;
if (typeof value === 'undefined' && typeof text === 'undefined'){
$('#mymodalbody').html(data);
$('#mymodalbody').html(data);
}
else{
$('#id_contact').append($("<option></option>").attr("value",value).text(text));
......@@ -30,12 +33,12 @@ $(document).ready(function() {
}
catch (exception) {
$('#mymodalbody').html(data);
}
}
}
});
return false;
});
$("#add_contact").click(function(){
$('#myModal').modal('show')
$.ajax({
......@@ -45,11 +48,11 @@ $(document).ready(function() {
$('#mymodalbody').html(data);
}
});
return false;
});
$('#urlsform tbody tr').formset({
prefix: '{{urls_form.prefix}}',
formCssClass: "dynamic-formset1",
......@@ -58,13 +61,13 @@ $(document).ready(function() {
$(".delete-row").prepend('<i class="icon-remove-sign icon-white"></i> ').addClass('btn btn-small btn-warning');
$(".add-row").prepend('<i class="icon-plus-sign icon-white"></i> ').addClass('btn btn-small btn-info');
});
function addButton(row){
$(row).find(".delete-row").prepend('<i class="icon-remove-sign icon-white"></i> ').addClass('btn btn-small btn-warning');
}
</script>
{% endblock %}
......@@ -127,13 +130,13 @@ function addButton(row){
<table id="urlsform"><thead><tr><td>url</td><td>type</td><td>language</td></tr></thead><tbody>
{% for formset in urls_form.forms %}
{{ formset.id }}
<tr id="{{ formset.prefix }}-row">
<td> {% if formset.instance.pk %}{{ formset.DELETE }}{% endif %}{{ formset.url }}{% if formset.url.errors %}<br><div class="help-inline"> {{ formset.url.errors|join:", " }} </div>{% endif %}</td>
<td> {% if formset.instance.pk %}{{ formset.DELETE }}{% endif %}{{ formset.url }}{% if formset.url.errors %}<br><div class="help-inline"> {{ formset.url.errors|join:", " }} </div>{% endif %}</td>
<td>{{formset.urltype}}{% if formset.urltype.errors %}<br><p class="help-inline"> {{ formset.urltype.errors|join:", " }} </p>{% endif %}</td>
<td>{{formset.lang}}{% if formset.lang.errors %}<br><p class="help-inline"> {{ formset.lang.errors|join:", " }} </p>{% endif %}</td>
</tr>
{% endfor %}
</tbody></table>
......@@ -187,4 +190,4 @@ function addButton(row){
</div>
</div>
{% endblock %}
{% extends "edumanage/welcome.html"%}
{% load staticfiles %}
{% load i18n %}
{% block crumbs %}
<li><a href="{% url manage %}">{% trans "Home" %}</a><span class="divider">/</span></li>
......@@ -6,14 +7,14 @@
<li class="active">{% if edit %}{{form.instance.realm}} ({% trans "edit" %}){% else %}{% trans "Add Monitored Realm" %}{% endif %}</li>
{% endblock %}
{% block extrahead %}
<script type="text/javascript" src="/static/js/jquery.min.js"></script>
<script type="text/javascript" src="{% static 'js/jquery.min.js' %}"></script>
<script type="text/javascript" src="//maps.googleapis.com/maps/api/js?sensor=false"></script>
{% endblock %}
{% block homeactive %}{% endblock %}
{% block instrealmmon %}class="active"{% endblock %}
{% block subcontent %} <h4>{% if edit %}Monitored realm: {{form.instance.realm}} ({% trans "edit" %}){% else %}{% trans "Add Monitored Realm" %}{% endif %}</h4>
......@@ -50,4 +51,4 @@
</div>
</form>
{% endblock %}
{% extends "edumanage/welcome.html"%}
{% load i18n %}
{% block crumbs %}
<li><a href="{% url manage %}">{% trans "Home" %}</a><span class="divider">/</span></li>
<li class="active">{% trans "Monitored Realms" %}</li>
{% endblock %}
{% load i18n %}
{% block extrahead %}
<script type="text/javascript" src="/static/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/static/js/datatables_bootstrap.js"></script>
{% load staticfiles %}
{% block crumbs %}
<li><a href="{% url manage %}">{% trans "Home" %}</a><span class="divider">/</span></li>
<li class="active">{% trans "Monitored Realms" %}</li>
{% endblock %}
{% block extrahead %}
<script type="text/javascript" src="{% static 'js/jquery.dataTables.min.js' %}"></script>
<script type="text/javascript" src="{% static 'js/datatables_bootstrap.js' %}"></script>
<script type="text/javascript">
$(document).ready(function(){
{% if realms %}
......@@ -79,7 +81,7 @@ $("#delrealmSubmit").click(function(){
$(".modal-footer").hide();
$("#mymodalbody").html("monitored realm "+name+" successfully deleted");
window.setTimeout('location.reload()', 1000);
}
}
});
......@@ -109,7 +111,7 @@ $("#delmonlocauthparSubmit").click(function(){
$("#modalfooter2").hide();
$("#mymodalbody2").html("monitored realm parameters "+name+" successfully deleted");
window.setTimeout('location.reload()', 1000);
}
}
});
......@@ -121,9 +123,9 @@ $("#delmonlocauthparSubmit").click(function(){
{% endblock %}
{% block navbar %}
{% endblock %}
{% block homeactive %}{% endblock %}
{% block instrealmmon %}class="active"{% endblock %}
{% block subcontent %}
......@@ -132,7 +134,7 @@ $("#delmonlocauthparSubmit").click(function(){
<hr>
{% if messages %}
<table class="table table-condensed">
{% for message in messages %}
<tr {% if message.tags %} class="{{ message.tags }}"{% endif %}><td>{{ message }}<td></tr>
{% endfor %}
......@@ -146,15 +148,15 @@ $("#delmonlocauthparSubmit").click(function(){
<tr>
<th>{% trans "Realm" %}</th>
<th>{% trans "Type" %}</th>
<th style="text-align: center;">{% trans "Action" %}</th>
<th>
{% trans "Parameters" %}
</th>
</tr>
</thead>
<tbody>
{% for realm in realms %}
<tr class="GradeC">
......@@ -163,8 +165,8 @@ $("#delmonlocauthparSubmit").click(function(){
{{realm.get_mon_type_display}}
</td>
<td style="text-align: center;">
<a href="{% url edit-instrealmmon realm.pk %}" class="btn btn-small">{% trans "edit" %}</a>
<a href="{% url edit-instrealmmon realm.pk %}" class="btn btn-small">{% trans "edit" %}</a>
<a href="#" id="del_instrealmmon_{{realm.pk}}" data-realmname="{{realm.realm}}" class="btn btn-small btn-warning">{% trans "delete" %}</a>
</td>
<td style="text-align: center;">
......@@ -172,7 +174,7 @@ $("#delmonlocauthparSubmit").click(function(){
<div class="well paramwell">
<div class="row">
<div class="span6">
<dl class="dl-horizontal" style=" text-align: left;">
<dt>Method</dt>
<dd>{{realm.monlocalauthnparam.get_eap_method_display}}</dd>
......@@ -185,18 +187,18 @@ $("#delmonlocauthparSubmit").click(function(){
<div class="span6">
<a href="{% url edit-monlocauthpar realm.pk realm.monlocalauthnparam.pk %}" class="btn btn-mini">{% trans "edit" %}</a>
<a href="#" id="del_monlocauthpar_{{realm.monlocalauthnparam.pk}}" data-realmname="{{realm.realm}}" class="btn btn-small btn-warning">{% trans "delete" %}</a>
</div>
</div>
{% else %}
{% if not realm.monlocalauthnparam %}<a href="{% url edit-monlocauthpar realm.pk %}" class="btn btn-mini btn-primary">{% trans "add" %}</a>{% endif %}
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
......
{% extends "edumanage/welcome.html"%}
{% load i18n %}
{% load staticfiles %}
{% block crumbs %}
<li><a href="{% url manage %}">{% trans "Home" %}</a><span class="divider">/</span></li>
<li><a href="{% url instrealmmon %}">{% trans "Monitored Realms" %}</a><span class="divider">/</span></li>
<li class="active">{% if edit %}{{realm.realm}} parameters ({% trans "edit" %}){% else %}{% trans "Add Monitored Realm Parameters" %} ({{realm.realm}}){% endif %}</li>
{% endblock %}
{% block extrahead %}
<script type="text/javascript" src="/static/js/jquery.min.js"></script>
<script type="text/javascript" src="{% static 'js/jquery.min.js' %}"></script>
<script type="text/javascript" src="//maps.googleapis.com/maps/api/js?sensor=false"></script>
<script src="/static/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/static/js/showpass.js"></script>
<script src="{% static 'js/bootstrap.min.js' %}"></script>
<script type="text/javascript" src="{% static 'js/showpass.js' %}"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#id_passwp').showPassword();
......@@ -19,7 +21,7 @@ $(document).ready(function() {
{% endblock %}
{% block homeactive %}{% endblock %}
{% block instrealmmon %}class="active"{% endblock %}
{% block subcontent %} <h4>{% if edit %}{{realm.realm}} parameters ({% trans "edit" %}){% else %}{% trans "Add Monitored Realm Parameters" %} ({{realm.realm}}){% endif %}</h4>
......@@ -78,4 +80,4 @@ $(document).ready(function() {
</div>
</form>
{% endblock %}
{% extends "edumanage/welcome.html"%}
{% load staticfiles %}
{% load i18n %}
{% block crumbs %}
<li><a href="{% url manage %}">{% trans "Home" %}</a><span class="divider">/</span></li>
<li class="active">{% trans "Realms" %}</li>
{% endblock %}
{% load i18n %}
{% block crumbs %}
<li><a href="{% url manage %}">{% trans "Home" %}</a><span class="divider">/</span></li>
<li class="active">{% trans "Realms" %}</li>
{% endblock %}
{% block extrahead %}
<script type="text/javascript" src="/static/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/static/js/datatables_bootstrap.js"></script>
<script type="text/javascript" src="{% static 'js/jquery.dataTables.min.js' %}"></script>
<script type="text/javascript" src="{% static 'js/datatables_bootstrap.js' %}"></script>
<script type="text/javascript">
$(document).ready(function(){
{% if realms %}
......@@ -56,7 +58,7 @@ $('[id^=del_realm_]').click(function(){
$("#myModalLabel").html("Delete Realm "+name);
$('#myModal').modal('show');
$(".modal-footer").show();
$("#realm_name_del").html(name)
$("#realm_name_del").html(name)
return false;
});
......@@ -73,7 +75,7 @@ $("#delrealmSubmit").click(function(){
$(".modal-footer").hide();
$("#mymodalbody").html("Realm "+name+" successfully deleted");
window.setTimeout('location.reload()', 1000);
}
}