Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
daa60826
authored
Jun 08, 2015
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: help texts for messages
parent
7961f28a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
circle/dashboard/forms.py
+14
-0
circle/dashboard/tables.py
+1
-0
No files found.
circle/dashboard/forms.py
View file @
daa60826
...
...
@@ -1630,6 +1630,20 @@ class MessageForm(ModelForm):
class
Meta
:
model
=
Message
fields
=
(
"message"
,
"enabled"
,
"effect"
,
"start"
,
"end"
)
help_texts
=
{
'start'
:
_
(
"Start time of the message in "
"YYYY.DD.MM. hh.mm.ss format."
),
'end'
:
_
(
"End time of the message in "
"YYYY.DD.MM. hh.mm.ss format."
),
'effect'
:
_
(
'The color of the message box defined by the '
'respective '
'<a href="http://getbootstrap.com/components/#alerts">'
'Bootstrap class</a>.'
)
}
labels
=
{
'start'
:
_
(
"Start time"
),
'end'
:
_
(
"End time"
)
}
@property
def
helper
(
self
):
...
...
circle/dashboard/tables.py
View file @
daa60826
...
...
@@ -370,3 +370,4 @@ class MessageListTable(Table):
'id'
:
"disk-list-table"
}
order_by
=
(
"-pk"
,
)
fields
=
(
'pk'
,
'message'
,
'enabled'
,
'effect'
)
empty_text
=
_
(
"No messages."
)
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