summaryrefslogtreecommitdiff
path: root/cgi/edithtml
diff options
context:
space:
mode:
authormailman1998-02-27 16:57:53 +0000
committermailman1998-02-27 16:57:53 +0000
commit389956e137a670ef6557f0bcd0871c0eb775bfd7 (patch)
tree76498223612c2f143dd542792f220e17eacd3dee /cgi/edithtml
parent3085534fa3a7fcaea39a558feea4d401015a4f41 (diff)
downloadmailman-389956e137a670ef6557f0bcd0871c0eb775bfd7.tar.gz
mailman-389956e137a670ef6557f0bcd0871c0eb775bfd7.tar.zst
mailman-389956e137a670ef6557f0bcd0871c0eb775bfd7.zip
Use new htmlformat.FontAttr() method to color the error messages red.
Diffstat (limited to 'cgi/edithtml')
-rwxr-xr-xcgi/edithtml16
1 files changed, 10 insertions, 6 deletions
diff --git a/cgi/edithtml b/cgi/edithtml
index b5ab807d8..1764492a5 100755
--- a/cgi/edithtml
+++ b/cgi/edithtml
@@ -120,18 +120,22 @@ try:
cgi_data = cgi.FieldStorage()
if len(cgi_data.keys()):
if not cgi_data.has_key('adminpw'):
- doc.AddItem(
- htmlformat.Header(3, htmlformat.Italic('Error: '
- 'You must supply the admin password to edit html.')))
+ m = 'Error: You must supply the admin password to edit html.'
+ doc.AddItem(htmlformat.Header(3,
+ htmlformat.Italic(
+ htmlformat.FontAttr(
+ m, color="ff5060"))))
doc.AddItem('<hr>')
else:
try:
list.ConfirmAdminPassword(cgi_data['adminpw'].value)
ChangeHTML(list, cgi_data, template_name, doc)
except:
- doc.AddItem(
- htmlformat.Header(3, htmlformat.Italic(
- 'Error: Incorrect admin password.')))
+ m = 'Error: Incorrect admin password.'
+ doc.AddItem(htmlformat.Header(3,
+ htmlformat.Italic(
+ htmlformat.FontAttr(
+ m, color="ff5060"))))
doc.AddItem('<hr>')