Templates added
This commit is contained in:
44
Templates/groups/index.html
Normal file
44
Templates/groups/index.html
Normal file
@@ -0,0 +1,44 @@
|
||||
{% extends "groups/base.html" %}
|
||||
{% load heasarc_templates %}
|
||||
|
||||
{% block header %}{% endblock %}
|
||||
{% block precontent %}{% endblock %}
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
|
||||
|
||||
{% if user.is_authenticated %}
|
||||
<h3>Registered SRG ArXiv groups</h3>
|
||||
<ul>
|
||||
{% for group in user.groups.all %}
|
||||
<li><a href="/groups/{{ group.pk }}/info">{{ group }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if django_group %}
|
||||
<h3>Группа: {{ django_group.name }}</h3>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Имя</th>
|
||||
<th scope="col">Фамилия</th>
|
||||
<th scope="col">Аккаунт</th>
|
||||
<th scope="col">Авторизация</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for user in django_group.user_set.all %}
|
||||
<tr>
|
||||
<td><strong>{{ user.first_name }}</strong></td>
|
||||
<td><strong>{{ user.last_name }}</strong></td>
|
||||
<td>{{ user }}</td>
|
||||
<td>{% if user.last_login %}{{ user.last_login|date:"d.m.Y" }}{% endif %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user