From 579c44628d53c228a0a63f21ce64dbebd851b7d2 Mon Sep 17 00:00:00 2001 From: Chris Caron Date: Sun, 29 May 2022 16:31:46 -0400 Subject: [PATCH] Monospace textarea (for presentation) (#76) --- apprise_api/api/forms.py | 3 ++- apprise_api/static/css/base.css | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apprise_api/api/forms.py b/apprise_api/api/forms.py index e9098e6..d28090e 100644 --- a/apprise_api/api/forms.py +++ b/apprise_api/api/forms.py @@ -133,7 +133,8 @@ class NotifyForm(forms.Form): body = forms.CharField( label=_('Body'), - widget=forms.Textarea(), + widget=forms.Textarea( + attrs={'placeholder': _('Define your message body here...')}), max_length=apprise.NotifyBase.body_maxlen, ) diff --git a/apprise_api/static/css/base.css b/apprise_api/static/css/base.css index 27aea24..42899a6 100644 --- a/apprise_api/static/css/base.css +++ b/apprise_api/static/css/base.css @@ -50,6 +50,7 @@ em { textarea { height: 16rem; + font-family: monospace; } .collapsible-body {