summaryrefslogtreecommitdiffstats
path: root/defparams.pl
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-02-26 04:31:49 +0100
committerterry%mozilla.org <>2000-02-26 04:31:49 +0100
commit0effcbcf51b490c93cc8467bab199d7e8bbe85fa (patch)
tree1229c06f0a6f06846ed06fbcc0518e45dac17aa9 /defparams.pl
parent78dfe401dab8c769f8ff43f26ce0878fc9bcadaa (diff)
downloadbugzilla-0effcbcf51b490c93cc8467bab199d7e8bbe85fa.tar.gz
bugzilla-0effcbcf51b490c93cc8467bab199d7e8bbe85fa.tar.xz
Make a universal routine to report errors in forms, so that we can
have a universal (and more noticable) way of displaying them.
Diffstat (limited to 'defparams.pl')
-rw-r--r--defparams.pl18
1 files changed, 7 insertions, 11 deletions
diff --git a/defparams.pl b/defparams.pl
index 5f8d1ccc2..14fecf10c 100644
--- a/defparams.pl
+++ b/defparams.pl
@@ -207,6 +207,13 @@ DefParam("footerhtml",
%commandmenu%
</TD></TR></TABLE></TD></TR></TABLE>');
+DefParam("errorhtml",
+ "This is what is printed out when a form is improperly filled out. %errormsg% is replaced by the actual error itself; %<i>anythingelse</i>% gets replaced by the definition of that parameter (as defined on this page).",
+ "l",
+ qq{<TABLE CELLPADDING=20><TR><TD BGCOLOR="#ff0000">
+<FONT SIZE="+2">%errormsg%</FONT></TD></TR></TABLE>
+<P>Please press <B>Back</B> and try again.<P>});
+
DefParam("bannerhtml",
@@ -243,17 +250,6 @@ DefParam("shutdownhtml",
"");
-DefParam("warnbannerhtml",
- "HTML to prepend to warning messages.",
- "l",
- "<font size=+1>");
-
-DefParam("warnfooterhtml",
- "HTML to append to warning messages.",
- "l",
- "</font>");
-
-
DefParam("passwordmail",
q{The email that gets sent to people to tell them their password. Within
this text, %mailaddress% gets replaced by the person's email address,