diff options
author | terry%mozilla.org <> | 2000-02-26 03:31:49 +0000 |
---|---|---|
committer | terry%mozilla.org <> | 2000-02-26 03:31:49 +0000 |
commit | 0effcbcf51b490c93cc8467bab199d7e8bbe85fa (patch) | |
tree | 1229c06f0a6f06846ed06fbcc0518e45dac17aa9 /defparams.pl | |
parent | 78dfe401dab8c769f8ff43f26ce0878fc9bcadaa (diff) | |
download | bugs-0effcbcf51b490c93cc8467bab199d7e8bbe85fa.tar bugs-0effcbcf51b490c93cc8467bab199d7e8bbe85fa.tar.gz bugs-0effcbcf51b490c93cc8467bab199d7e8bbe85fa.tar.bz2 bugs-0effcbcf51b490c93cc8467bab199d7e8bbe85fa.tar.xz bugs-0effcbcf51b490c93cc8467bab199d7e8bbe85fa.zip |
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.pl | 18 |
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, |