Clearer reporting.
[irspy-moved-to-github.git] / web / htdocs / details / edit.mc
index 3118a34..2fa9a0a 100644 (file)
@@ -1,4 +1,4 @@
-%# $Id: edit.mc,v 1.6 2006-11-01 10:00:21 mike Exp $
+%# $Id: edit.mc,v 1.8 2006-11-08 17:42:11 mike Exp $
 <%args>
 $id
 </%args>
@@ -69,12 +69,12 @@ if ($n == 0) {
        ZOOM::IRSpy::_really_rewrite_record($conn, $xc->getContextNode());
     }
 </%perl>
-     <h2><% xml_encode($id) %></h2>
-% if (defined $update) {
-     <p><b>The record has been updated (nchanges=<% $nchanges %>).</b></p>
-% }
+     <h2><% xml_encode($xc->find("e:databaseInfo/e:title")) %></h2>
 % if ($nchanges) {
-     <p><b>Changed <% $nchanges %> element<% $nchanges == 1 ? "" : "s" %>.</b></p>
+     <p style="font-weight: bold">
+      The record has been updated.<br/>
+      Changed <% $nchanges %> element<% $nchanges == 1 ? "" : "s" %>.
+     </p>
 % }
      <form method="get" action="">
       <table class="fullrecord" border="1" cellspacing="0" cellpadding="5" width="100%">
@@ -102,4 +102,12 @@ if ($n == 0) {
        </tr>
       </table>
      </form>
+<%perl>
+       if ($nchanges) {
+           my $x = $xc->getContextNode()->toString();
+           $x = xml_encode($x);
+           #$x =~ s/$/<br\/>/gm;
+           print "<pre>$x</pre>\n";
+       }
+</%perl>
 % }