{% extends 'base.html' %}

{% load i18n %}
{% load staticfiles %}

{% block header %}
    <link type="text/css" rel="stylesheet" media="all" href="{% static 'css/dashboard.css' %}" />
{% endblock %}

{% block javascript %}
    <script type="text/javascript" src="{% static 'js/jquery/jquery.form.js' %}"></script>
    <script type="text/javascript" src="{% static 'js/dashboard.js' %}"></script>
{% endblock %}

{% block title %}{% trans 'Dashboard' %} – {{ block.super }}{% endblock %}

{% block content %}
    <h1>{% trans 'Dashboard' %}
        <small class="pull-right">
            <a href="{% url 'core_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>
    <div class="row-fluid">
        <div class="span6 column" id="col1">
            {% for widget in widgets %}
                {% if widget.default_column == 1 %}
                    {{ widget.get_html }}
                {% endif %}
            {% endfor %}
        </div>
        <div class="span6 column" id="col2">
            {% for widget in widgets %}
                {% if widget.default_column == 2 %}
                    {{ widget.get_html }}
                {% endif %}
            {% endfor %}
        </div>
    </div>
{% endblock %}
