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
2a8a636d
Commit
2a8a636d
authored
Apr 18, 2017
by
Robin Sonnabend
Browse files
Small fixes for using start_time
parent
d5efed83
Changes
2
Show whitespace changes
Inline
Side-by-side
server.py
View file @
2a8a636d
...
...
@@ -484,7 +484,6 @@ def new_protocol():
flash
(
"Dir fehlen die nötigen Zugriffsrechte."
,
"alert-error"
)
return
redirect
(
request
.
args
.
get
(
"next"
)
or
url_for
(
"index"
))
protocol
=
Protocol
(
protocoltype_id
=
protocoltype
.
id
)
print
(
form
.
start_time
.
data
)
form
.
populate_obj
(
protocol
)
if
form
.
start_time
.
data
is
None
:
protocol
.
start_time
=
protocoltype
.
usual_time
...
...
templates/protocol-show.html
View file @
2a8a636d
...
...
@@ -82,7 +82,7 @@
{% endif %}
{% else %}
{% if protocol.date is not none %}
<p><strong>
Geplant:
</strong>
{{protocol.date|datify_long}}, {{protocol.
star
t_time|timify}}
</p>
<p><strong>
Geplant:
</strong>
{{protocol.date|datify_long}}, {{protocol.
ge
t_time
()
|timify}}
</p>
{% endif %}
{% for meta in protocol.metas %}
<p><strong>
{{meta.name}}:
</strong>
{{meta.value}}
</p>
...
...
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