{% extends "lfc/manage/base.html" %}
{% load i18n %}

{% block left_slot %}
    <div class="navigation-group">
        {% for group in groups %}
            <div>
                <a {% ifequal group.id current_group_id %}class="selected"{% endifequal %}
                   href="{% url 'lfc_manage_group' group.id %}">
                    {{ group.name }}
                </a>
            </div>
        {% endfor %}
    </div>
{% endblock %}

{% block content %}

    <div id="menu"
         class="site-actions">

        <ul class="sf-menu">
            <li>
                <a href="{% url 'lfc_manage_add_group' %}">{% trans "Add Group" %}</a>
            </li>
            {% if display_delete %}
                <li>
                    <a class="delete-link" href="{% url 'lfc_delete_user' current_user_id %}">{% trans "Delete User" %}</a>
                </li>
            {% endif %}
        </ul>
    </div>

    <div id="manage-tabs">
        <ul>
            <li class="ui-tabs-nav-item"><a href="#data">{% trans "Data" %}</a></li>
        </ul>

        <div id="data">
            <form action="{% url 'lfc_manage_add_group' %}"
                  method="POST">
                {% csrf_token %}
                {% include "lfc/manage/lfc_form.html" %}
                <input type="submit" value='{% trans "Add group" %}' />
            </form>
        </div>
    </div>


{% endblock %}
