Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Mareš
Postal Owl
Commits
e01e2c72
Commit
e01e2c72
authored
Feb 27, 2022
by
Martin Mareš
Browse files
More occurrences of "Name" renamed to "Ident"
parent
77174aeb
Changes
2
Hide whitespace changes
Inline
Side-by-side
owl.py
View file @
e01e2c72
...
...
@@ -1128,7 +1128,7 @@ def admin_topic_graders(sident, cident, tid):
class
EditTopicForm
(
FlaskForm
):
rank
=
wtforms_html5
.
IntegerField
(
"Rank:"
,
validators
=
[
validators
.
required
()])
ident
=
wtforms
.
StringField
(
"
Name
:"
)
ident
=
wtforms
.
StringField
(
"
Ident
:"
)
title
=
wtforms
.
StringField
(
"Title:"
,
validators
=
[
validators
.
required
()])
type
=
wtforms
.
SelectField
(
"Type:"
,
choices
=
[(
'H'
,
'heading'
),
(
'T'
,
'task'
),
(
'A'
,
'award'
),
(
'D'
,
'discussion'
)],
validators
=
[
validators
.
required
()])
deadline
=
wtforms_html5
.
DateTimeLocalField
(
"Deadline:"
,
format
=
'%Y-%m-%dT%H:%M'
,
validators
=
[
validators
.
Optional
()])
...
...
templates/admin-topics.html
View file @
e01e2c72
...
...
@@ -4,7 +4,7 @@
<h2>
{{ g.course.name }}: Edit topics
</h2>
<table
class=
topics
>
<tr><th>
Rank
<th>
Name
<th>
Title
<th>
Type
<th>
Deadline
<th>
Points
<tr><th>
Rank
<th>
Ident
<th>
Title
<th>
Type
<th>
Deadline
<th>
Points
{% if g.course.student_grading %}
<th>
Student graders{% endif %}
{% for t in topics %}
{% if t.public %}
...
...
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