[%- USE T8 %]
[%- USE L %]
[%- USE HTML %]
-<body onload="on_load();">
+<h1>[% title %]</h1>
<script type="text/javascript">
- <!--
- function on_load() {
- document.Form.subject.focus();
- }
- -->
+ $(function(){ document.Form.subject.focus(); });
</script>
- <form action="fu.pl" method="post" name="Form">
+ <form action="fu.pl" method="post" name="Form" id="form">
[%- IF SAVED_MESSAGE %]
<p>[% SAVED_MESSAGE %]</p>
[%- END %]
- <div class="listtop">[% title %]</div>
-
<input type="hidden" name="id" value="[% HTML.escape(id) %]">
<input type="hidden" name="note_id" value="[% HTML.escape(note_id) %]">
<input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
</table>
</p>
+ [%- IF POPUP_MODE %]
<p>
<input type="hidden" name="action" value="dispatcher">
<input type="submit" class="submit" name="action_save" value="[% 'Save' | $T8 %]">
<input type="submit" class="submit" name="action_finish" value="[% 'Finish' | $T8 %]">
<input type="submit" class="submit" name="action_delete" value="[% 'Delete' | $T8 %]">
[%- END %]
- [%- IF POPUP_MODE %]
<input type="submit" class="submit" onclick="window.close()" value="[% 'Cancel' | $T8 %]">
- [%- END %]
</p>
- [%- IF POPUP_MODE %]
[%- IF FOLLOW_UPS.size %]
<hr height="3" noshade>
- <div class="listtop">[% 'Existing pending follow-ups for this item' | $T8 %]</div>
+ <h2>[% 'Existing pending follow-ups for this item' | $T8 %]</h2>
<p>
<table>
<input type="hidden" name="trans_rowcount" value="[% LINKS.size %]">
</form>
-
-</body>