{% extends "control_panel/base.html" %}
{% load i18n %}
{% load staticfiles %}
{% load my_filters %}
{% load include_block %}

{% block i18n_do_not_translate %}
    {% block username_active %}active{% endblock username_active %}
    {% block control_panel_active %}{% endblock control_panel_active %}
    {% block progress_active %}active{% endblock progress_active %}
    {% block account_management_active %}active{% endblock account_management_active %}
{% endblock i18n_do_not_translate %}
        
{% block title %}{{ student.get_name }} - {% trans "User Management" %}{{ block.super }}{% endblock title%}

{% block headjs %}
    {% include_block "coachreports/student_view.html" "student_report_js" %}    
{% endblock headjs %}

{% block headcss %}{% comment %}Don't insert block.super here, because block.super is WEIRD and isn't the super for student_view IN student view, but instead THIS super.{% endcomment %}
    {% include_block "coachreports/student_view.html" "headcss" %}
{% endblock headcss %}


{% block titlebar_title %}
    <div class="container">
        
        <div class="row">
            <li id="account-management-page-title">
                {% blocktrans with student_name=student.get_name %}Account management page for {{ student_name }}{% endblocktrans %}
            </li>
        {% endblock titlebar_title %}

        {% block buttons %}
            {% if not is_central %}
                {% if not restricted %}
                <li>
                    <a class="btn btn-success" href="{% url 'edit_facility_user' id=student.id %}?next={{ request.path }}">{% trans "Edit account preferences" %}</a>
                </li>
                {% endif %}
                <li class="client-online-only">
                    <a class="server-online-only btn btn-success" href="{% url 'update_all_distributed' %}">{% trans "Download data from Khan Academy" %}</a>
                </li>
        </div>
    
    </div>
    {% endif %}
{% endblock buttons %}

{% block content %}
    {% block titlebar %}{{ block.super }}
    {% endblock titlebar %}

    {% include_block "coachreports/student_view.html" "student_report" %}
{% endblock content %}
