show-group.html 3.15 KB
Newer Older
1 2 3 4
{% extends "base.html" %}
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% block content %}
Dányi Bence committed
5
<div class="boxes">
Dányi Bence committed
6
    {% include "box/person/box.html" %}
7 8
    <div class="contentblock" id="group-owners">
        <h2>{% trans "Owners of" %}: {{group.name}}</h2>
Dányi Bence committed
9
        <ul class="entry-list">
10
            {% for owner in owners %}
Dányi Bence committed
11
            <li class="entry small-row">
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
                <div class="summary">
                    <div class="name">
                        {% if not owner.user %}
                        {{owner.code}}
                        {% else %}
                        {{owner}} ({{owner.code}})
                        {% endif %}
                    </div>
                    <div class="actions">
                        <a href="#" class="remove" data-gid="{{group.id}}" data-neptun="{{owner.code}}">
                            <img src="/static/icons/minus-circle.png" alt="{% trans 'Remove' %}" />
                        </a>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="details">
                    <div class="container">
                        {% if not owner.user %}
                        {% trans "This user never logged in, no data available" %}
                        {% else %}
32 33 34 35 36 37 38 39 40 41 42
                        <ul>
                            <li>
                                {% trans "Name" %}<span class="value">{{owner}}</span>
                            </li>
                            <li>
                                {% trans "NEPTUN" %}<span class="value">{{owner.code}}</span>
                            </li>
                            <li>
                                E-mail:<span class="value"><a href="mailto:{{owner.user.email}}">{{owner.user.email}}</a></span>
                            </li>
                        </ul>
43 44 45 46 47
                        {% endif %}
                    </div>
                </div>
            </li>
            {% endfor %}
Dányi Bence committed
48
            <li class="entry small-row">
49 50 51
                <div class="summary" id="new-owner">
                    <div class="name">{% trans "Add owner" %}</div>
                    <div id="new-owner-form">
52 53
                        <input type="text" placeholder="{% trans "Owner name/NEPTUN" %}" disabled="disabled" />
                        <input type="submit" value="{% trans "Add owner" %}" data-id="{{group.id}}" disabled="disabled" />
54 55 56 57 58 59
                    </div>
                    <div class="clear"></div>
                </div>
            </li>
        </ul>
    </div>
Dányi Bence committed
60 61
</div>
<div class="boxes">
62
    {% if noshare %}
63 64
        <div class="tooltip" style="position:absolute">
            <div class="container">
Dányi Bence committed
65 66 67 68 69 70
                <p>
                    {% trans "This group has no shared templates." %}
                </p>
                <p>
                    {% trans "Share one, and the group members can start their own virtual machine." %}
                </p>
71
                <div class="tail"></div>
Dányi Bence committed
72
            </div>
Dányi Bence committed
73 74
        </div>
    {% endif %}
Dányi Bence committed
75
    {% include "box/template/box.html" %}
Dányi Bence committed
76
</div>
77
{% endblock %}