Files
modoboa/extensions/stats/templates/index.html
T
Florent Dionisi 6074497a80 #24 : period selector added for adminmenu stats.
TODO : better parsing of POST and GET request parameters in view functions. Add same view for usermenu stats.
2009-12-01 18:04:48 +01:00

42 lines
1.2 KiB
HTML

{% extends "admin/domain_header.html" %}
{% load i18n %}
{% block html_head %}
<script src="/static/js/mootools-more.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/static/stylesheets/box.css" />
<link rel="stylesheet" type="text/css" href="/static/stylesheets/calendar.css" />
<style type="text/css">
#selectors {
float: right;
}
</style>
<script type="text/javascript">
window.addEvent("domready", function() {
$("period").addEvent("change", function(event) {
{% url extensions.stats.main.index domain.id as stats_url %}
location.href = "{{ stats_url }}" + "?period=" + $("period").value;
});
});
</script>
<script type="text/javascript" src="/static/js/calendar.js"></script>
{% endblock %}
{% block menu %}
{% if domain %}
{% load admin_extras %}
{% domain_menu domain.id "stats" perms %}
{% endif %}
{% endblock %}
{% block domcontent %}
<div id="selectors">
<label for="period">{% trans "Period:" %}</label>
<select id="period" name="period">
{% for p in periods %}
<option value="{{ p }}" {% ifequal p period %}selected{% endifequal %}>{{ p }}</option>
{% endfor %}
</select>
</div>
{% include "stats/graphs.html" %}
</div>
{% endblock %}