28 lines
913 B
HTML
28 lines
913 B
HTML
{% extends 'map/base.html' %}
|
|
{% load crispy_forms_filters %}
|
|
|
|
{% block title %}Manage your groups{% endblock %}
|
|
{% block h1 %}Manage your groups{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="alert alert-info">
|
|
<h4 class="alert-heading">Notice</h4>
|
|
<div>
|
|
Here you can list and manage groups you belong to. All members in these groups can see your location.
|
|
</div>
|
|
</div>
|
|
|
|
<ul class="list-group">
|
|
{% for group in groups %}
|
|
<li class="list-group-item d-flex justify-content-between align-items-center">
|
|
{{ group.name }}
|
|
<span>
|
|
<span class="badge badge-secondary badge-pill">{{ group.friends.count }}</span>
|
|
<a href="{% url 'leave-group' group.pk %}" class="btn btn-sm btn-secondary">Leave</a>
|
|
</span>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
{% endblock %}
|