Templates added

This commit is contained in:
2024-06-05 11:33:02 +03:00
parent 69a2160eb7
commit 50c53060bf
117 changed files with 16737 additions and 0 deletions

View 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 %}