Commit daa60826 by Kálmán Viktor

dashboard: help texts for messages

parent 7961f28a
......@@ -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. format."),
'end': _("End time of the message in "
"YYYY.DD.MM. format."),
'effect': _('The color of the message box defined by the '
'respective '
'<a href="">'
'Bootstrap class</a>.')
labels = {
'start': _("Start time"),
'end': _("End time")
def helper(self):
......@@ -370,3 +370,4 @@ class MessageListTable(Table):
'id': "disk-list-table"}
order_by = ("-pk", )
fields = ('pk', 'message', 'enabled', 'effect')
empty_text = _("No messages.")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment