entry.html 1.81 KB
Newer Older
1 2
{% extends "box/base/entry.html" %}
{% load i18n %}
3
{% load staticfiles %}
4 5 6 7 8 9 10 11 12 13 14 15
{% get_current_language as LANGUAGE_CODE %}

{% block content %}
<li class="entry" id="group-{{group.id}}">
    {{ block.super }}
</li>
{% endblock content %}

{% block summary %}
<div class="summary">
    <div class="name">
        {{ group.name }}
16
        <small class="details">(<a href="{{ group.get_absolute_url }}">{% trans "More details" %}</a>)</small>
17 18
    </div>
    <div class="actions">
19
        <a href="#" class="delete" data-url="{% url school.views.group_ajax_delete %}" data-id="{{group.id}}" data-name="{{group.name}}">
20
            <img src="{% static "icons/minus-circle.png" %}" alt="{% trans "Delete" %}" title="{% trans "Delete" %}" />
21 22
        </a>
        <a href="#" class="hide-group" data-id="{{group.id}}">
23
            <img src="{% static "icons/eye-half.png" %}" alt="{% trans "Hide" %}" title="{% trans "Hide" %}" />
24 25 26 27 28 29 30 31
        </a>
    </div>
    <div class="clear"></div>
</div>
{% endblock summary %}

{% block details %}
<ul>
32
    <li class="course">
33 34 35 36 37 38 39 40 41
        {% trans "Course" %}:
        <span class="value">
            {% if group.course %}
            {{group.course.name}}
            {% else %}
            {% trans "Not assigned" %}
            {% endif %}
        </span>
    </li>
42
    <li class="date">
43 44 45
        {% trans "Semester" %}:
        <span class="value">{{group.semester.name}}</span>
    </li>
46
    <li class="owner">
47 48 49
        {% trans "Owner(s)" %}:
        <span class="value">{{group.owner_list}}</span>
    </li>
50
    <li class="members">
51 52 53 54 55 56
        {% trans "Member count" %}:
        <span class="value">{{group.member_count}}</span>
    </li>
    <li>
        &nbsp;
        <span class="value">
57
            <a href="{{group.get_absolute_url}}">{% trans "More details" %}</a>
58 59 60 61
        </span>
    </li>
</ul>
{% endblock details %}