Commit ea9e9231 by Dányi Bence

webui: group list improved

parent b2a6bcfe
{% load i18n %} {% load i18n %}
{% get_current_language as LANGUAGE_CODE %} {% get_current_language as LANGUAGE_CODE %}
<div class="boxes" id="groups"> <div class="boxes" id="groups">
<div class="contentblock"> <div class="contentblock">
<h2> <h2>
{% trans "My Groups" %} {% trans "My Groups" %}
</h2> </h2>
<div class="content"> <div class="content">
<ul class="wm-list"> <ul class="wm-list">
{% if groups %} {% if groups %}
{% for group in groups %} {% for group in groups %}
<li class="wm"> <li class="wm">
<div class="summary"> <div class="summary">
<div class="name">{{ group.name }}</div> <div class="name">{{ group.name }}</div>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
<div class="details"> <div class="details">
<ul> <ul>
<li>asd</li> <li>
</ul> {% trans "Course" %}:
</div> <span class="value">
</li> {% if group.course %}
{% endfor %} {{group.course.name}}
{% else %} {% else %}
<div id="new-wm-tooltip"> {% trans "Not assigned" %}
<div id="new-wm-tooltip-container"> {% endif %}
<p> </span>
{% trans "You have no groups" %} </li>
</p> <li>
<p> {% trans "Semester" %}:
{% trans "Create a new one, and add your students to the new group" %} <span class="value">{{group.semester.name}}</span>
</p> </li>
<div id="new-wm-tooltip-tail"></div> <li>
</div> {% trans "Owner(s)" %}:
</div> <span class="value">{{group.owner_list}}</span>
{% endif %} </li>
<li class="wm" id="new-group"> <li>
<div class="summary"> {% trans "Member count" %}:
<div class="name">Új csoport felvétele</div> <span class="value">{{group.member_count}}</span>
<div class="clear"></div> </li>
</div> <li>
</li> &nbsp;
</ul> <span class="value"><a href="/group/show/{{group.id}}">{% trans "More details" %}</a></span>
</div> </li>
</div> </ul>
</div> </div>
</li>
{% endfor %}
{% else %}
<div id="new-wm-tooltip">
<div id="new-wm-tooltip-container">
<p>
{% trans "You have no groups" %}
</p>
<p>
{% trans "Create a new one, and add your students to the new group" %}
</p>
<div id="new-wm-tooltip-tail"></div>
</div>
</div>
{% endif %}
<li class="wm" id="new-group">
<div class="summary">
<div class="name">{% trans "Create new group" %}</div>
<div class="clear"></div>
</div>
<div id="new-group-wizard" style="display: none">
<h3>{% trans "Create new group" %}</h3>
<p>
<textarea placeholder="{% trans 'Student NEPTUN codes, one per line' %}"></textarea>
</p>
</div>
</li>
</ul>
</div>
</div>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment