  [% META title = 'System Error' %]
<!-- BEGIN [% template.name %] -->
  <h2 class="error">System Error</h2>

  <p>The system encountered the following error:</p>

  <pre>
      package: <strong>[% package %]</strong>
      line no: <strong>[% line %]</strong>
      time: <strong>[% time.strftime('%d.%b.%Y %T') %]</strong>
      message: <strong>[% msg %]</strong>
  </pre>

  [% text = 'Submit error report &#187;' %]
  
  <script type="text/javascript">
    function make_blank() {
        document.form1.action.innerHTML = "";
    }
    function toggleview (id1,id2) {
        var obj1 = document.getElementById(id1);
        var obj2 = document.getElementById(id2);
        (obj1.className=="itemshown") ? obj1.className="itemhidden" : obj1.className="itemshown";
        (obj1.className=="itemshown") ? obj2.innerHTML="[% text %]" : obj2.innerHTML="[% text %]";
    }
  </script>
  
  <p class="indent">
    <a href="javascript:toggleview('form','toggleform'), id='toggleform'">
        [% text %]
    <a/>
  </p>
  
  <div class="itemhidden" id="form">
    <form method="post" name="form1" action="[% app_url %]/error/notify">
        <textarea class="indent" name="action" rows="10" cols="60"
            onClick='make_blank()'>Enter brief description of what you were doing ....
        </textarea>
        <input type="hidden" name="package" value="[% package %]" />
        <input type="hidden" name="line" value="[% line %]" />
        <input type="hidden" name="time" value="[% time.strftime('%d.%b.%Y %T') %]" />
        <input type="hidden" name="message" value="[% msg | html %]" />
        <p class="indent">[% site.html.submit %]</p>
    </form>
  </div>

  <!--
  <p align="center">
    <strong>
        IF THE ERROR PERSISTS PLEASE INFORM
        <a href="mailto:[% c.cfg('settings').admin_contact %]">ADMINISTRATOR</a>
    </strong>
  </p>
  -->
  
  <p align="center">[% site.html.back_button %]</p>
<!-- END [% template.name %] -->