Commit 017760f2 authored by Stauros Kroustouris's avatar Stauros Kroustouris

add forgoten templates directory

parent ac45540a
{% extends "base.html" %}
{% load i18n %}
{% block topmenu %}
<ul class="nav">
<li>
<a href="{% url index %}">{% trans "Home" %}</a>
</li>
<li>
<a href="/faq/{{LANGUAGE_CODE}}/">FAQ</a>
</li>
{% include "front/management_dropdown.html" %}
</ul>
{% endblock %}
{% block content %}
<div class="container-fluid">
<div class="row-fluid">
<div class="span2">
</div><!--/span-->
<div class="span10">
<div class="row-fluid">
<!--/span-->
<h3>Oops! You got a nice 404: Page does not exist</h3>
<hr>
{% block subcontent %}
<div class="span10 alert alert-error">No matter how you reached this page, it simply does not exist!</div>
{% endblock %}
<!--/span-->
</div><!--/row-->
</div><!--/span-->
</div><!--/span-->
</div><!--/.fluid-container-->
{% endblock %}
\ No newline at end of file
{% extends "base.html" %}
{% load i18n %}
{% block topmenu %}
<ul class="nav">
<li>
<a href="{% url index %}">{% trans "Home" %}</a>
</li>
<li>
<a href="/faq/{{LANGUAGE_CODE}}/">FAQ</a>
</li>
{% include "front/management_dropdown.html" %}
</ul>
{% endblock %}
{% block content %}
<div class="container-fluid">
<div class="row-fluid">
<div class="span2">
</div><!--/span-->
<div class="span10">
<div class="row-fluid">
<!--/span-->
<h3>Oops! You got a 500: Error!</h3>
<hr>
{% block subcontent %}
<div class="span10 alert alert-error">An error occured! Don't worry, our team has been notified about it and will soon fix it!</div>
{% endblock %}
<!--/span-->
</div><!--/row-->
</div><!--/span-->
</div><!--/span-->
</div><!--/.fluid-container-->
{% endblock %}
\ No newline at end of file
{% load i18n %}
<!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/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">
<style type="text/css">
body {
padding-top: 90px;
/*padding-bottom: 60px;*/
}
.sidebar-nav {
padding: 9px 0;
}
.headtitle {
font-family: "Franklin Gothic Demi", "Franklin Gothic",
"ITC Franklin Gothic", Arial, sans-serif;
letter-spacing: -1px;
}
#logotitle,#logotitle.a {
color: #656565;
font-size: 18px;
font-weight: bold;
left: 105px;
position: relative;
top: 60px;
font-family: "Franklin Gothic Demi", "Franklin Gothic",
"ITC Franklin Gothic", Arial, sans-serif;
letter-spacing: -1px;
width: 300px;
}
.navbar .brand { max-height: 40px; overflow: visible;padding-top: 0;padding-bottom: 0; }
.dropdown-menu.loginoptions a {
width: 80px;
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>
<script type="text/javascript">
function setlang(lang){
$("#langsel").val(lang);
$("#langform").submit();
}
</script>
{% block extrahead %}{% endblock %}
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid" style="padding-left: 0px; width: auto;">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<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>
<div class="nav-collapse collapse">
{% block topmenu %}
<ul class="nav">
<li {% block hometop %}{% endblock %}>
<a href="{% url index %}">{% trans "Home" %}</a>
</li>
<li {% block faqtop %}{% endblock %}>
<a href="/faq/{{LANGUAGE_CODE}}/">FAQ</a>
</li>
{% include "front/management_dropdown.html" %}
</ul>
{% endblock %}
<ul class="nav pull-right">
<li class="dropdown pull-right">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{% trans "Language" %}: {% for lang in LANGUAGES %}{% ifequal LANGUAGE_CODE lang.0 %}{% trans lang.1 %}{% endifequal %}{% endfor %}<b class="caret"></b></a>
<ul class="dropdown-menu">
<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="" />
</form>
{% for lang in LANGUAGES %}
<li>
<a class="select_lang" href="#" onclick="setlang('{{ lang.0 }}'); return false;" title="{{lang.1}}">{% trans lang.1 %}{% ifequal LANGUAGE_CODE lang.0 %} <i class="icon-ok"></i>{% endifequal %}</a>
</li>
{% endfor %}
</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>
</li>
</ul>
</div>
</div>
</div>
</div>
{% block content %}
<div class="container-fluid">
<div class="row-fluid">
<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>
<li {% block faq %}{% endblock %}><a href="/faq/{{LANGUAGE_CODE}}/">FAQ</a></li>
<li class="nav-header">{% trans "INSTITUTIONS" %}</li>
<li {% block mgmt %}{% endblock %}><a href="{% url managementPage %}">{% trans "Management" %}</a></li>
<li class="nav-header">{% trans "SERVICE" %}</li>
<li {% block closest %}{% endblock %}><a href="{% url geolocate %}" target="_blank">{% trans "Closest eduroam" %}</a></li>
<li {% block world %}{% endblock %}><a href="{% url world %}">{% trans "World eduroam" %}</a></li>
<li {% block participants %}{% endblock %}><a href="{% url participants %}">{% trans "Participants" %}</a></li>
<li><a href="/static/pebble_app/pebduroam.pbw">{% 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><!--/span-->
<div class="span10">
<div class="row-fluid">
<!--/span-->
{% block subcontent %}
{% endblock %}
<!--/span-->
</div><!--/row-->
</div><!--/span-->
</div><!--/row-->
</div><!--/.fluid-container-->
{% endblock %}
{% include "footer.html" %}
</body>
</html>
{% load i18n %}
<form id="add_user_form" method="POST" class="form-horizontal">
{% csrf_token %}
<div class="control-group {% if form.name.errors %} error {% endif %}">
<label class="control-label" for="id_name"><b>{% trans "Name" %}</b></label>
<div class="controls">
{{ form.name }}
{% if form.name.errors %} <span class="help-inline"> {{ form.name.errors|join:", " }} </span>
{% endif %} <span class="help-block"> {{ form.name.help_text }}</span>
</div>
</div>
<div class="control-group {% if form.email.errors %} error {% endif %}">
<label class="control-label" for="id_email"><b>{% trans "Email" %}</b></label>
<div class="controls">
{{ form.email }}
{% if form.email.errors %} <span class="help-inline"> {{ form.email.errors|join:", " }} </span>
{% endif %} <span class="help-block"> {{ form.email.help_text }}</span>
</div>
</div>
<div class="control-group {% if form.phone.errors %} error {% endif %}">
<label class="control-label" for="id_phone"><b>{% trans "Phone" %}</b></label>
<div class="controls">
{{ form.phone }}
{% if form.phone.errors %} <span class="help-inline"> {{ form.phone.errors|join:", " }} </span>
{% endif %} <span class="help-block"> {{ form.phone.help_text }}</span>
</div>
</div>
</form>
{% 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 "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>
{% endblock %}
{% block homeactive %}{% endblock %}
{% block catactive %}class="active"{% endblock %}
{% block subcontent %} <h4>eduroam CAT enroll</h4>
{% 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 %}
<hr>
{% if current_enrollments %}
<div class="row">
<div class="span12">
<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" width="100%" id="table">
<thead>
<tr>
<th>{% trans "CAT Institution ID" %}</th>
<th>{% trans "CAT configuration profiles" %}</th>
<th>{% trans "URL/Status" %}</th>
<th>{% trans "CAT instance" %}</th>
<th>{% trans "Applier" %}</th>
</tr>
</thead>
<tbody>
{% for enrollment in current_enrollments %}
<tr class="GradeC">
<td>{{enrollment.cat_inst_id}}</td>
<td>{% if enrollment.cat_configuration_url %}<a href="{{enrollment.cat_configuration_url}}" target="_blank">CAT url</a>{% else %}-{% endif %}</td>
<td>{% if not enrollment.cat_active %}{% if enrollment.url %}<a href="{{enrollment.url}}" target="_blank">{{enrollment.url|truncatechars:50}}</a>{% else %}-{% endif %}{% else %}ACTIVE{% endif %}</td>
<td>{{enrollment.cat_instance}}</td>
<td>{{enrollment.applier.first_name}} {{enrollment.applier.last_name}}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endif %}
{% if cat_instances %}
<div class="row">
<div class="span6 well">
<form method="POST" class="form-horizontal" id="catenroll_form" action="{% url catenroll %}">
{% csrf_token %}
<div class="control-group">
<label class="control-label" for="id_catinstance"><b>{% trans "CAT instance" %}</b></label>
<div class="controls">
<select id="catinstance" name="catinstance">
{% for instance in cat_instances %}
<option value="{{instance.0}}">{{instance.1}}</option>
{% endfor %}
</select>
</div>
</div>
<div class="control-group">
<div class="controls">
<button type="submit" id="applybutton" value="Apply" class="btn btn-primary">
{% trans "Apply" %}</button>
</div>
</div>
</form>
</div></div>
{% endif %}
{% if response_status %}
<div class="row">
<div class="span12">
<div class="alert {% if response_status == 'Error' %}alert-error{% else %}alert-success{% endif %}">
<div><strong>Status:</strong> {{response_status}}</div>
{% if not cat_url %}
<div><strong>Response:</strong> {{response}}</div>
{% else %}
<div><strong>Institution Id:</strong> {{inst_uid}}</div>
<div><strong>CAT url:</strong> <a href="{{cat_url}}" target="_blank">{{cat_url}}</a></div>
{% endif %}
</div>
</div>
</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 %}
{% 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 contacts %}
var oTable = $('#table').dataTable({
"sPaginationType": "bootstrap",
"sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
"aoColumns": [{
"bSearchable": true,
"bSortable": true
}, {
"bSearchable": true,
"bSortable": true
}, {
"bSearchable": true,
"bSortable": true
}, {
"bVisible": true,
"bSearchable": false,
"bSortable": false
}],
"aaSorting": [[0, 'desc']],
"iDisplayLength": 25,
"oSearch": {"bSmart": false, "bRegex":true},
"oLanguage": {
"sLengthMenu": '{% trans "Display" %} <select><option value="25">25</option><option value="50">50</option><option value="-1">{% trans "All" %}</option></select> {% trans "contacts" %}',
"sProcessing": "Processing...",
"sZeroRecords": '{% trans "No records to display" %}',
"sInfo": "Showing _START_ to _END_ of _TOTAL_ entries",
"sInfoEmpty": "{% trans "Showing 0 to 0 of 0 entries" %}",
"sInfoFiltered": "(filtered from _MAX_ total entries)",
"sInfoPostFix": "",
"sSearch": '{% trans "Search:" %}',
"sUrl": "",
"oPaginate": {
"sFirst": '{% trans "First" %}',
"sPrevious": '{% trans "Previous" %}',
"sNext": '{% trans "Next" %}',
"sLast": '{% trans "Last" %}'
}
}
});
oTable.fnDraw();
$('[id^=del_contact_]').click(function(){
contact_id = (this.id).replace("del_contact_", '');
name = this.getAttribute("data-contactname");
$("#mymodalbody").html("{% trans 'You are about to delete contact' %}: <b>"+name+"</b><br>{% trans 'Press Delete to proceed or Cancel to cancel deletion' %}");
$("#myModalLabel").html("{% trans 'Delete contact' %} "+name);
$('#myModal').modal('show');
$(".modal-footer").show();
$("#contact_name_del").html(name)
return false;
});
$("#delcontactSubmit").click(function(){
$.ajax({
url:"{% url del-contact %}/?contact_pk="+contact_id,
type: "GET",
success: function(data){
if (data.error){
$(".modal-footer").hide();
$("#mymodalbody").html("<font style='color:#B94A48'>"+data.error+"</font>");
}
if (data.success){
$(".modal-footer").hide();
$("#mymodalbody").html("contact "+name+" successfully deleted");
window.setTimeout('location.reload()', 1000);
}
}
});
});
{% endif %}
});
</script>
{% endblock %}
{% block navbar %}
{% endblock %}
{% block homeactive %}{% endblock %}
{% block contactsactive %}class="active"{% endblock %}
{% block subcontent %}
<h4>{% trans "Contacts" %}</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 %}
<div><a href="{% url edit-contacts %}" class="btn btn-primary">{% trans "Add new contact" %}</a></div>
<div class="span10"></div>
{% if contacts %}
<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" width="100%" id="table">
<thead>
<tr>
<th>{% trans "Name" %}</th>
<th>{% trans "Email" %}</th>
<th>{% trans "Phone" %}</th>
<th style="text-align: center;">{% trans "Action" %}</th>
</tr>
</thead>
<tbody>
{% for contact in contacts %}
<tr class="GradeC">
<td>{{contact.name}}</td>
<td>{{contact.email}}</td>
<td>{{contact.phone}}</td>
<td style="text-align: center;"><a href="{% url edit-contacts contact.pk %}" class="btn btn-small">{% trans "edit" %}</a> <a href="#" id="del_contact_{{contact.pk}}" data-contactname="{{contact.name}}" class="btn btn-small btn-warning">{% trans "delete" %}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
<div class="modal hide fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">{% trans "Delete contact" %}</h3>
</div>
<div class="modal-body" id="mymodalbody">
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">{% trans "Cancel" %}</button>
<a class="btn btn-warning" id="delcontactSubmit" href="#">{% trans "Delete" %}</a>
</div>
</div>
{% endblock %}
{% extends "edumanage/welcome.html"%}
{% load i18n %}
{% 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>
{% 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>
<hr>
<form method="POST" class="form-horizontal">
{% csrf_token %}
{% if form.non_field_errors %}
<p class="error">
{{ form.non_field_errors}}
</p>
{% endif %}
<div style="display: none">
{{form.instid}}
</div>
<div class="control-group {% if form.name.errors %} error {% endif %}">
<label class="control-label" for="id_name"><b>{% trans "Name" %}</b></label>
<div class="controls">
{{ form.name }}
{% if form.name.errors %} <span class="help-inline"> {{ form.name.errors|join:", " }} </span>
{% endif %} <span class="help-block"> {{ form.name.help_text }}</span>
</div>
</div>
<div class="control-group {% if form.email.errors %} error {% endif %}">
<label class="control-label" for="id_email"><b>{% trans "Email" %}</b></label>
<div class="controls">
{{ form.email }}
{% if form.email.errors %} <span class="help-inline"> {{ form.email.errors|join:", " }} </span>
{% endif %} <span class="help-block"> {{ form.email.help_text }}</span>
</div>
</div>
<div class="control-group {% if form.phone.errors %} error {% endif %}">
<label class="control-label" for="id_phone"><b>{% trans "Phone" %}</b></label>
<div class="controls">
{{ form.phone }}
{% if form.phone.errors %} <span class="help-inline"> {{ form.phone.errors|join:", " }} </span>
{% endif %} <span class="help-block"> {{ form.phone.help_text }}</span>
</div>
</div>
<div class="control-group">
<div class="controls">
<button type="submit" id="applybutton" value="Apply" class="btn btn-primary">
{% trans "Apply" %}</button>
</div>
</div>
</form>
{% endblock %}
{% extends "edumanage/welcome.html"%}
{% load i18n %}
{% block extrahead %}
<style type="text/css">
.control-label{
padding-top: 0px !important;
width: auto !important;
}
</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 %}
<div class="form-horizontal">
<div class="control-group">
<label class="control-label" for="id_ertype">{% trans "Name" %}</label>
<div class="controls">
{% tolocale institution LANGUAGE_CODE %}
</div>
</div>
<div class="control-group">