Commit 6ef39257 authored by Skia's avatar Skia

Fix user template

parent 6e05207e
Pipeline #22 passed with stage
......@@ -66,7 +66,7 @@ class BankAccountCreateView(CanEditMixin, CreateView):
fields = ['name', 'rib', 'number']
template_name = 'accounting/account_edit.jinja'
class BankAccountDeleteView(CanEditMixin, DeleteView):
class BankAccountDeleteView(CanEditMixin, DeleteView): # TODO change Delete to Close
"""
Delete a bank account (for the admins)
"""
......@@ -102,7 +102,7 @@ class ClubAccountCreateView(CanEditMixin, CreateView):
fields = ['name', 'club', 'bank_account']
template_name = 'accounting/account_edit.jinja'
class ClubAccountDeleteView(CanEditMixin, DeleteView):
class ClubAccountDeleteView(CanEditMixin, DeleteView): # TODO change Delete to Close
"""
Delete a club account (for the admins)
"""
......
......@@ -9,9 +9,6 @@
<p><a href="{{ url('core:user_list') }}">Back to list</a></p>
<ul>
{% if request.user.id == profile.id %}
<li><a href="{{ url('core:user_tools') }}">Tools</a></li>
{% endif %}
{% if can_edit(profile, request.user) or user.id == profile.id %}
<li><a href="{{ url('core:user_edit', user_id=profile.id) }}">Edit</a></li>
{% endif %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment