mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-25 02:24:26 +00:00
Fix user template
This commit is contained in:
parent
6e05207e84
commit
6ef39257ee
@ -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)
|
||||||
"""
|
"""
|
||||||
|
@ -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 %}
|
||||||
|
Loading…
Reference in New Issue
Block a user