mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-26 18:37:12 +00:00
page title and edit buttons
This commit is contained in:
parent
826573f553
commit
26d70c4ef9
@ -143,10 +143,6 @@ class UserDetailView(LoginRequiredMixin, DetailView):
|
|||||||
club_list = \
|
club_list = \
|
||||||
Membership.objects.all().filter(user=user).only("club")
|
Membership.objects.all().filter(user=user).only("club")
|
||||||
context['club_list'] = ClubTable(club_list)
|
context['club_list'] = ClubTable(club_list)
|
||||||
context['title'] = _("Account #%(id)s: %(username)s") % {
|
|
||||||
'id': user.pk,
|
|
||||||
'username': user.username,
|
|
||||||
}
|
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
{% load i18n static pretty_money %}
|
{% load i18n static pretty_money %}
|
||||||
<div class="card bg-light shadow">
|
<div class="card bg-light shadow">
|
||||||
|
<div class="card-header text-center">
|
||||||
|
<h4> Club {{ club.name }} </h4>
|
||||||
|
</div>
|
||||||
<div class="card-top text-center">
|
<div class="card-top text-center">
|
||||||
<a href="{% url 'member:club_update_pic' club.pk %}">
|
<a href="{% url 'member:club_update_pic' club.pk %}">
|
||||||
<img src="{{ club.note.display_image.url }}" class="img-thumbnail mt-2" >
|
<img src="{{ club.note.display_image.url }}" class="img-thumbnail mt-2" >
|
||||||
@ -29,4 +32,12 @@
|
|||||||
<dd class="col-xl-9"><a href="mailto:{{ club.email }}">{{ club.email}}</a></dd>
|
<dd class="col-xl-9"><a href="mailto:{{ club.email }}">{{ club.email}}</a></dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="card-footer text-center">
|
||||||
|
<a class="btn btn-primary btn-sm my-1" href="{% url 'member:club_add_member' pk=object.pk %}"> {% trans "Add member" %}</a>
|
||||||
|
<a class="btn btn-primary btn-sm my-1" href="{% url 'member:club_update' pk=object.pk %}"> {% trans "Edit" %}</a>
|
||||||
|
<a class="btn btn-primary btn-sm my-1" href="{% url 'member:club_add_member' pk=object.pk %}"> {% trans "Add roles" %}</a>
|
||||||
|
{% url 'member:club_detail' club.pk as club_detail_url %}
|
||||||
|
{%if request.get_full_path != club_detail_url %}
|
||||||
|
<a class="btn btn-primary btn-sm my-1" href="{{ user_profile_url }}">{% trans 'View Profile' %}</a>
|
||||||
|
{% endif %} </div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
{% load i18n static pretty_money %}
|
{% load i18n static pretty_money %}
|
||||||
|
|
||||||
<div class="card bg-light shadow">
|
<div class="card bg-light shadow">
|
||||||
|
<div class="card-header text-center" >
|
||||||
|
<h4> {% trans "Account #" %} {{ object.pk }}</h4>
|
||||||
|
</div>
|
||||||
<div class="card-top text-center">
|
<div class="card-top text-center">
|
||||||
<a href="{% url 'member:user_update_pic' object.pk %}">
|
<a href="{% url 'member:user_update_pic' object.pk %}">
|
||||||
<img src="{{ object.note.display_image.url }}" class="img-thumbnail mt-2" >
|
<img src="{{ object.note.display_image.url }}" class="img-thumbnail mt-2" >
|
||||||
|
Loading…
Reference in New Issue
Block a user