Fix user template

This commit is contained in:
Skia 2016-05-03 09:01:54 +02:00
parent 6e05207e84
commit 6ef39257ee
2 changed files with 2 additions and 5 deletions

View File

@ -66,7 +66,7 @@ class BankAccountCreateView(CanEditMixin, CreateView):
fields = ['name', 'rib', 'number'] fields = ['name', 'rib', 'number']
template_name = 'accounting/account_edit.jinja' 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) Delete a bank account (for the admins)
""" """
@ -102,7 +102,7 @@ class ClubAccountCreateView(CanEditMixin, CreateView):
fields = ['name', 'club', 'bank_account'] fields = ['name', 'club', 'bank_account']
template_name = 'accounting/account_edit.jinja' 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) Delete a club account (for the admins)
""" """

View File

@ -9,9 +9,6 @@
<p><a href="{{ url('core:user_list') }}">Back to list</a></p> <p><a href="{{ url('core:user_list') }}">Back to list</a></p>
<ul> <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 %} {% 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> <li><a href="{{ url('core:user_edit', user_id=profile.id) }}">Edit</a></li>
{% endif %} {% endif %}