Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
AE
Sith
Commits
6ef39257
Commit
6ef39257
authored
May 03, 2016
by
Skia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix user template
parent
6e05207e
Pipeline
#22
passed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
accounting/views.py
accounting/views.py
+2
-2
core/templates/core/user_detail.jinja
core/templates/core/user_detail.jinja
+0
-3
No files found.
accounting/views.py
View file @
6ef39257
...
...
@@ -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)
"""
...
...
core/templates/core/user_detail.jinja
View file @
6ef39257
...
...
@@ -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
%}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment