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. 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):
......
......@@ -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