diff options
Diffstat (limited to 'cgi/edithtml')
| -rwxr-xr-x | cgi/edithtml | 16 |
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>') |
