Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
protokollsystem
proto3
Commits
501cd1f1
Commit
501cd1f1
authored
Mar 21, 2017
by
Administrator
Browse files
Do not show empty delete row
parent
9d333224
Changes
1
Hide whitespace changes
Inline
Side-by-side
views/tables.py
View file @
501cd1f1
...
@@ -58,16 +58,20 @@ class ProtocolsTable(Table):
...
@@ -58,16 +58,20 @@ class ProtocolsTable(Table):
self
.
search_results
=
search_results
self
.
search_results
=
search_results
def
headers
(
self
):
def
headers
(
self
):
user
=
current_user
()
result
=
[
"ID"
,
"Sitzung"
,
"Sitzung"
,
"Datum"
]
result
=
[
"ID"
,
"Sitzung"
,
"Sitzung"
,
"Datum"
]
state_part
=
[
"Status"
]
state_part
=
[
"Status"
]
search_part
=
[
"Suchergebnis"
]
search_part
=
[
"Suchergebnis"
]
login_part
=
[
"Typ"
,
"Löschen"
]
login_part
=
[
"Typ"
]
admin_part
=
[
"Löschen"
]
if
self
.
search_results
is
None
:
if
self
.
search_results
is
None
:
result
.
extend
(
state_part
)
result
.
extend
(
state_part
)
else
:
else
:
result
.
extend
(
search_part
)
result
.
extend
(
search_part
)
if
check_login
():
if
check_login
():
result
.
extend
(
login_part
)
result
.
extend
(
login_part
)
if
protocol
.
protocoltype
.
has_admin_right
(
user
):
result
.
extend
(
admin_part
)
return
result
return
result
def
classes
(
self
):
def
classes
(
self
):
...
...
Write
Preview
Supports
Markdown
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