network_inventory/users/templates/groups/group_details.html

47 lines
1.5 KiB
HTML
Raw Normal View History

2021-12-30 20:51:39 +01:00
{% extends "core/base.html" %}
{% block section_title %}{{ group }}{% endblock %}
{% block content %}
<div class="row">
<div class="col">
<div class="card mt-3">
<div class="card-body">
2022-04-04 10:15:27 +02:00
<h4>Description</h4>
<div class="card-text"><p>{{ group.description }}</p></div>
2021-12-30 20:51:39 +01:00
<div class="card-text">
2022-04-04 10:26:27 +02:00
<p>Customer: <a href="{% url 'customer' group.customer.id %}">
{{ group.customer }}
</a></p>
<table class="table table-bordered">
<tr>
<th>User</th>
</tr>
{% for user in users %}
<tr>
2022-04-04 10:26:27 +02:00
<td><a href="{% url 'user' user.id %}">
{{ user }}
</a></td>
</tr>
{% endfor %}
</table>
2022-04-04 09:57:46 +02:00
{% if groups %}
<table class="table table-bordered">
<tr>
<th>Group Name</th>
<th>Address</th>
</tr>
{% for group in groups %}
<tr>
<td>{{ group.name }}</td>
<td><a href="mailto:{{ group.mail_address }}">{{ group.mail_address }}</a></td>
</tr>
{% endfor %}
</table>
{% endif %}
2021-12-30 20:51:39 +01:00
</div>
</div>
</div>
</div>
</div>
{% endblock %}