{% extends "box/base/entry.html" %}
{% load i18n %}
{% load staticfiles %}
{% get_current_language as LANGUAGE_CODE %}

{% block content %}
<li class="entry small-row" id="member-{{member.code}}">
    {{block.super}}
</li>
{% endblock content %}

{% block summary %}
<div class="summary">
    <div class="name">
        {% if not member.user %}
        {{member.code}}
        {% else %}
        {{member}} ({{member.code}})
        {% endif %}
    </div>
    <div class="actions">
        <a href="#" class="remove" data-url="{% url school.views.group_ajax_remove_member gid=group.id %}" data-neptun="{{member.code}}">
            <img src="{% static "icons/minus-circle.png" %}" alt="{% trans 'Remove' %}" />
        </a>
    </div>
    <div class="clear"></div>
</div>
{% endblock summary %}

{% block details %}
{% if not member.user %}
    {% trans "This user never logged in, no data available" %}
    {% else %}
    <ul>
        <li>
            {% trans "Name" %}<span class="value">{{member}}</span>
        </li>
        <li>
            {% trans "NEPTUN" %}<span class="value">{{member.code}}</span>
        </li>
        <li>
            E-mail:<span class="value"><a href="mailto:{{member.user.email}}">{{member.user.email}}</a></span>
        </li>
    </ul>
    {% endif %}
{% endblock details %}
