Revert "use common message instead of msg"
authorAdrian Oldham <adriann@visualthought.com.au>
Sun, 10 Apr 2011 23:02:46 +0000 (09:02 +1000)
committerAdrian Oldham <adriann@visualthought.com.au>
Sun, 10 Apr 2011 23:02:46 +0000 (09:02 +1000)
This reverts commit db628a9976e7a472705fc9ee7e8b3021b9981324.

site/cgi-bin/interest.pl
site/templates/interest/askagain_base.tmpl
site/templates/interest/error_base.tmpl [new file with mode: 0644]

index 39f314d..ac82cd2 100755 (executable)
@@ -65,15 +65,15 @@ $mailer->send(to=>$sendto, from=>$SHOP_FROM, subject=>$subject,
 BSE::Template->show_page('interest/confirm', $cfg, \%acts);
 
 sub error_page {
-  my ($id, $error, $template) = @_;
+  my ($id, $msg, $template) = @_;
 
-  $error = $cfg->entry(messages=>$id, $error) if $id;
-  $template ||= 'error';
+  $msg = $cfg->entry(messages=>$id, $msg) if $id;
+  $template ||= 'interest/error';
   my %acts;
   %acts =
     (
      BSE::Util::Tags->basic(\%acts, $cgi, $cfg),
-     error => sub { CGI::escapeHTML($error) },
+     msg => sub { CGI::escapeHTML($msg) },
     );
   BSE::Template->show_page($template, $cfg, \%acts);
   exit;
index fa072c9..f58c090 100644 (file)
@@ -6,7 +6,7 @@
     <table width="350">
       <tr> 
       <th colspan="2" align="center"> 
-        <p><font face="Verdana, Arial, Helvetica, sans-serif" size="3"><b><:message:></b></font></p>
+        <p><font face="Verdana, Arial, Helvetica, sans-serif" size="3"><b><:msg:></b></font></p>
       </th>
     </tr>
     <tr>
diff --git a/site/templates/interest/error_base.tmpl b/site/templates/interest/error_base.tmpl
new file mode 100644 (file)
index 0000000..a923262
--- /dev/null
@@ -0,0 +1,17 @@
+<:wrap base.tmpl:>
+<div align=center>
+  <table width="350">
+    <tr> 
+      <th colspan="2" align="center"> 
+        <p><font face="Verdana, Arial, Helvetica, sans-serif" size="3"><b>Error</b></font></p>
+      </th>
+    </tr>
+    <tr> 
+      <td colspan="2"> 
+        <p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">There was 
+          an error when registering your interest:</font></p>
+        <p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><:msg:></font></p>
+      </td>
+    </tr>
+  </table>
+</div>
\ No newline at end of file