76 lines
3.3 KiB
HTML
76 lines
3.3 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% load tags %}
|
|
{% load i18n %}
|
|
{% load staticfiles %}
|
|
|
|
{% block header %}
|
|
<link type="text/css" rel="stylesheet" media="all" href="{% static 'styles/dashboard.css' %}" />
|
|
{% endblock %}
|
|
{% block javascript %}
|
|
<script type="text/javascript" src="{% static 'javascript/jquery-ui.min.js' %}"></script>
|
|
<script type="text/javascript" src="{% static 'javascript/dashboard.js' %}"></script>
|
|
<script type="text/javascript" src="{% static 'javascript/jquery.cookie.js' %}"></script>
|
|
<script type="text/javascript" src="{% static 'javascript/jquery.form.js' %}"></script>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1>{% trans 'Dashboard' %}
|
|
<small class="pull-right">
|
|
<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>
|
|
</small>
|
|
</h1>
|
|
{% if perms.projector.can_manage_projector %}
|
|
<div style="text-align: right; padding: 0 10px 5px 0; margin-top:-20px;">
|
|
<!-- control projector view -->
|
|
{% trans "Adjust projector view" %}:
|
|
<a class="projector_edit" href="{% url projector_bigger %}" title="{% trans 'Zoom in' %}">
|
|
<img src="{% static 'images/icons/zoom-in.png' %}" />
|
|
</a>
|
|
<a class="projector_edit" href="{% url projector_smaller %}" title="{% trans 'Zoom out' %}">
|
|
<img src="{% static 'images/icons/zoom-out.png' %}" />
|
|
</a>
|
|
<a class="projector_edit" href="{% url projector_up %}" title="{% trans 'Scroll text up' %}">
|
|
<img src="{% static 'images/icons/go-up.png' %}" />
|
|
</a>
|
|
<a class="projector_edit" href="{% url projector_down %}" title="{% trans 'Scroll text down' %}">
|
|
<img src="{% static 'images/icons/go-down.png' %}" />
|
|
</a>
|
|
<a class="projector_edit" href="{% url projector_clean %}" title="{% trans 'Reset projector view' %}">
|
|
<img src="{% static 'images/icons/view-reset.png' %}" />
|
|
</a>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="column" id="col1">
|
|
{% for name, widget in widgets.items %}
|
|
{% if widget.default_column == 1 %}
|
|
<div class="widget" id="widget_{{ widget.get_name }}">
|
|
<div class="widget-header">
|
|
<i class="{% if widget %}icon-{{widget.name}}{% else %}icon-star{% endif %}"></i>
|
|
<h3>{% trans widget.get_title %}</h3>
|
|
</div>
|
|
<div class="widget-content">
|
|
{{ widget.html }}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div> <!-- end column-->
|
|
|
|
<div class="column" id="col2">
|
|
{% for name, widget in widgets.items %}
|
|
{% if widget.default_column == 2 %}
|
|
<div class="widget" id="widget_{{ widget.get_name }}">
|
|
<div class="widget-header"><i class="icon-star"></i>
|
|
<h3>{% trans widget.get_title %}<h3>
|
|
</div>
|
|
<div class="widget-content">
|
|
{{ widget.html }}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div> <!-- end column -->
|
|
{% endblock %}
|