diff --git a/message_center/views.py b/message_center/views.py index 6477388..a02ccff 100644 --- a/message_center/views.py +++ b/message_center/views.py @@ -196,9 +196,31 @@ def view_manage_message_settings(request): form.save() messages.success(request, 'Message Settings saved successfully') return redirect('/message_center/channel_list/') + form_description_content = ''' + Max Length +
Maximum length of a message in characters. Longer messages will be truncated.
+ Daily Report Time +Time of day to send daily status and backup reports. Format: HH:MM (24-hour clock)
+ Max Retry and Retry Interval +Maximum number of retries for a failed message and the interval between retries in seconds.
+ Concatenate Status Change ++ When enabled, the system will concatenate status change notifications for multiple routers into a single message. + If a router goes offline and then online again within the status change delay, the system will not send any message. +
+ Concatenate Backup Fails +Instead of sending a single message for each backup failure, the system will concatenate multiple failures into a single message.
+ Status Change and Backup fail Delay +Time in seconds to wait for additional notifications before sending a concatenated message.
+ ''' + context = { 'message_settings': message_settings, 'form': form, + 'form_description': { + 'size': '', + 'content': form_description_content + }, } return render(request, 'generic_form.html', context=context) @@ -226,8 +248,24 @@ def view_manage_message_channel(request): form.save() messages.success(request, 'Message Channel saved successfully') return redirect('/message_center/channel_list/') + form_description_content = ''' + Destination +Destination address for the message channel. For CallMeBot, this is the phone number. For Telegram, this is the chat ID.
+ Token +For CallMeBot, this is the API token. For Telegram, this is the bot token.
+ Status Change and Backup Fail +Enable or disable notifications for status changes and backup failures.
+ Daily Status and Backup Report +Enable or disable daily status and backup reports. This is a quick summary of online/offline status and backup success/failure.
+ + ''' + context = { 'message_settings': message_settings, 'form': form, + 'form_description': { + 'size': '', + 'content': form_description_content + }, } return render(request, 'generic_form.html', context=context)