2012-09-10 23:28:19 +02:00
|
|
|
|
{% extends "base.html" %}
|
2012-03-06 08:19:49 +01:00
|
|
|
|
|
|
|
|
|
{% load i18n %}
|
2012-04-14 14:51:56 +02:00
|
|
|
|
{% load staticfiles %}
|
2012-03-06 08:19:49 +01:00
|
|
|
|
|
|
|
|
|
{% block header %}
|
2012-08-22 09:39:20 +02:00
|
|
|
|
<link type="text/css" rel="stylesheet" media="all" href="{% static 'styles/dashboard.css' %}" />
|
2012-09-10 23:28:19 +02:00
|
|
|
|
{% endblock %}
|
|
|
|
|
{% block javascript %}
|
2013-02-15 08:39:36 +01:00
|
|
|
|
<script type="text/javascript" src="{% static 'javascript/jquery-ui.custom.min.js' %}"></script>
|
2012-04-14 15:00:24 +02:00
|
|
|
|
<script type="text/javascript" src="{% static 'javascript/jquery.cookie.js' %}"></script>
|
2012-07-04 02:43:26 +02:00
|
|
|
|
<script type="text/javascript" src="{% static 'javascript/jquery.form.js' %}"></script>
|
2013-02-05 11:24:41 +01:00
|
|
|
|
<script type="text/javascript" src="{% static 'javascript/dashboard.js' %}"></script>
|
2012-03-06 08:19:49 +01:00
|
|
|
|
{% endblock %}
|
|
|
|
|
|
2013-06-14 20:24:48 +02:00
|
|
|
|
{% block title %}{% trans "Dashboard" %} – {{ block.super }}{% endblock %}
|
|
|
|
|
|
2012-03-06 08:19:49 +01:00
|
|
|
|
{% block content %}
|
2012-09-10 23:28:19 +02:00
|
|
|
|
<h1>{% trans 'Dashboard' %}
|
|
|
|
|
<small class="pull-right">
|
2013-01-05 15:29:57 +01:00
|
|
|
|
<a href="{% url 'projector_select_widgets' %}" class="btn btn-mini" rel="tooltip" data-original-title="{% trans 'Manage widgets' %}"><i class="icon-th-large"></i> {% trans 'Widgets' %}</a>
|
2012-09-10 23:28:19 +02:00
|
|
|
|
</small>
|
|
|
|
|
</h1>
|
2013-05-06 20:17:13 +02:00
|
|
|
|
<div class="row-fluid">
|
|
|
|
|
<div class="span6 column" id="col1">
|
2012-08-15 11:56:43 +02:00
|
|
|
|
{% for name, widget in widgets.items %}
|
|
|
|
|
{% if widget.default_column == 1 %}
|
2012-09-10 23:28:19 +02:00
|
|
|
|
<div class="widget" id="widget_{{ widget.get_name }}">
|
2012-09-11 00:00:44 +02:00
|
|
|
|
<div class="widget-header">
|
2013-06-16 00:44:41 +02:00
|
|
|
|
<h3>
|
|
|
|
|
<i class="{% if widget %}icon-{{widget.name}}{% else %}icon-star{% endif %}"></i>
|
|
|
|
|
<div class="collapsebutton btn-group right" data-toggle="buttons-checkbox">
|
|
|
|
|
<button type="button" class="btn btn-mini"
|
|
|
|
|
data-toggle="collapse" data-target="#widgetcontent_{{ widget.get_name }}"
|
|
|
|
|
title="{% trans 'Collapse widget content' %}">
|
|
|
|
|
_</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="fixbutton btn-group right" data-toggle="buttons-checkbox">
|
|
|
|
|
<button type="button" class="btn btn-mini" style="width: 20px;"
|
|
|
|
|
title="{% trans 'Fix widget position' %}">
|
|
|
|
|
<i class="icon-pushpin"></i></button>
|
|
|
|
|
</div>
|
|
|
|
|
{% trans widget.get_title %}
|
|
|
|
|
</h3>
|
2012-09-10 23:28:19 +02:00
|
|
|
|
</div>
|
2013-06-16 00:44:41 +02:00
|
|
|
|
<div class="widget-content collapse in" id="widgetcontent_{{ widget.get_name }}">
|
|
|
|
|
<br>{{ widget.html }}<br>
|
2012-08-15 11:56:43 +02:00
|
|
|
|
</div>
|
2012-06-11 13:43:48 +02:00
|
|
|
|
</div>
|
2012-08-15 11:56:43 +02:00
|
|
|
|
{% endif %}
|
|
|
|
|
{% endfor %}
|
2012-04-14 16:17:26 +02:00
|
|
|
|
</div> <!-- end column-->
|
2012-03-07 06:44:43 +01:00
|
|
|
|
|
2013-05-06 20:17:13 +02:00
|
|
|
|
<div class="span6 column" id="col2">
|
2012-08-15 11:56:43 +02:00
|
|
|
|
{% for name, widget in widgets.items %}
|
|
|
|
|
{% if widget.default_column == 2 %}
|
2012-09-10 23:28:19 +02:00
|
|
|
|
<div class="widget" id="widget_{{ widget.get_name }}">
|
2013-06-16 00:44:41 +02:00
|
|
|
|
<div class="widget-header">
|
|
|
|
|
<h3>
|
|
|
|
|
<i class="{% if widget %}icon-{{widget.name}}{% else %}icon-star{% endif %}"></i>
|
|
|
|
|
<div class="collapsebutton btn-group right" data-toggle="buttons-checkbox">
|
|
|
|
|
<button type="button" class="btn btn-mini"
|
|
|
|
|
data-toggle="collapse" data-target="#widgetcontent_{{ widget.get_name }}"
|
|
|
|
|
title="{% trans 'Collapse widget content' %}">
|
|
|
|
|
_</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="fixbutton btn-group right" data-toggle="buttons-checkbox">
|
|
|
|
|
<button type="button" class="btn btn-mini" style="width: 20px;"
|
|
|
|
|
title="{% trans 'Fix widget position' %}">
|
|
|
|
|
<i class="icon-pushpin"></i></button>
|
|
|
|
|
</div>
|
|
|
|
|
{% trans widget.get_title %}
|
|
|
|
|
</h3>
|
2012-09-10 23:28:19 +02:00
|
|
|
|
</div>
|
2013-06-16 00:44:41 +02:00
|
|
|
|
<div class="widget-content collapse in" id="widgetcontent_{{ widget.get_name }}">
|
|
|
|
|
<br>{{ widget.html }}<br>
|
2012-08-15 11:56:43 +02:00
|
|
|
|
</div>
|
2012-03-21 22:21:23 +01:00
|
|
|
|
</div>
|
2012-08-15 11:56:43 +02:00
|
|
|
|
{% endif %}
|
|
|
|
|
{% endfor %}
|
2012-04-14 16:17:26 +02:00
|
|
|
|
</div> <!-- end column -->
|
2013-05-06 20:17:13 +02:00
|
|
|
|
</div>
|
2012-03-06 08:19:49 +01:00
|
|
|
|
{% endblock %}
|