box.html 1.58 KB
Newer Older
1 2 3
{% extends "box/base/box.html" %}
{% load i18n %}
{% load l10n %}
4
{% load staticfiles %}
5 6
{% get_current_language as LANGUAGE_CODE %}

Dányi Bence committed
7 8 9 10
{% block boxhelp %}
<div class="boxhelp">
    <div class="help">
        <div class="icon">
Dányi Bence committed
11
            <img src="{% static "icons/information-frame.png" %}" alt="{% trans "Help" %}" />
Dányi Bence committed
12 13
        </div>
        <div class="boxhelp-box">
14 15 16
            <p>{% blocktrans %}This is the list of this group's members.{% endblocktrans %}</p>
            <p>{% blocktrans %}Members are the people who can start new
            instances of templates shared with the group.
Dányi Bence committed
17 18 19 20 21 22 23 24 25
            {% endblocktrans %}</p>
        </div>
    </div>
    <div class="icon">
        <img src="" alt="eye" title="{% trans "Show/hide box" %}" class="toggle-box" data-id="members" id="toggle-box-members"/>
    </div>
</div>
{% endblock %}

26 27 28 29 30 31 32 33 34 35
{% block title %}
    {% trans "Members of" %}: {{group.name}}
{% endblock title %}

{% block content %}
<ul class="entry-list" id="group-members">
    {% for member in members %}
        {% include "box/person/entry.html" %}
    {% endfor %}
    <li class="entry small-row">
Bence Dányi committed
36
        <div class="summary" id="new-member" data-fallback="slide">
37 38 39
            <div class="name">{% trans "Add user" %}</div>
            <div id="new-member-form">
                <input type="text" placeholder="{% trans "User NEPTUN code" %}" />
40
                <input type="submit" value="{% trans "Add user" %}" data-url="{% url school.views.group_ajax_add_new_member gid=group.id %}"/>
41 42 43 44 45 46
            </div>
            <div class="clear"></div>
        </div>
    </li>
</ul>
{% endblock content %}