Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / fu / search.html
index 63d8c0a..073adcd 100644 (file)
@@ -1,24 +1,13 @@
 [%- USE T8 %]
+[%- USE L %]
 [% USE HTML %]
-<body onload="on_load()">
+<h1>[% title %]</h1>
 
  <script type="text/javascript">
-  <!--
-      function on_load() {
-        Calendar.setup({ inputField : "follow_up_date_from", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "follow_up_date_from_trigger" });
-        Calendar.setup({ inputField : "follow_up_date_to",   ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "follow_up_date_to_trigger" });
-        Calendar.setup({ inputField : "itime_from",          ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "itime_from_trigger" });
-        Calendar.setup({ inputField : "itime_to",            ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "itime_to_trigger" });
-        document.Form.subject.focus();
-      }
-    -->
+   $(function(){ document.Form.subject.focus(); });
  </script>
 
- <div class="listtop">[% title %]</div>
-
- <form action="fu.pl" method="post" name="Form">
-  <input type="hidden" name="nextsub" value="report">
-
+ <form action="fu.pl" method="post" name="Form" id="form">
   <p>
    <table>
     <tr>
      <td align="right">[% 'Follow-Up Date' | $T8 %]</td>
      <td>
       [% 'From' | $T8 %]
-      <input name="follow_up_date_from" id="follow_up_date_from" size="12">
-      <input type="button" name="follow_up_date_from_button" id="follow_up_date_from_trigger" value="?">
+      [% L.date_tag('follow_up_date_from') %]
       [% 'To (time)' | $T8 %]
-      <input name="follow_up_date_to" id="follow_up_date_to" size="12">
-      <input type="button" name="follow_up_date_to_button" id="follow_up_date_to_trigger" value="?">
+      [% L.date_tag('follow_up_date_to') %]
      </td>
     </tr>
 
      <td align="right">[% 'Created on' | $T8 %]</td>
      <td>
       [% 'From' | $T8 %]
-      <input name="itime_from" id="itime_from" size="12">
-      <input type="button" name="itime_from_button" id="itime_from_trigger" value="?">
+      [% L.date_tag('itime_from') %]
       [% 'To (time)' | $T8 %]
-      <input name="itime_to" id="itime_to" size="12">
-      <input type="button" name="itime_to_button" id="itime_to_trigger" value="?">
+      [% L.date_tag('itime_to') %]
      </td>
     </tr>
 
 
    </table>
   </p>
-
-  <p>
-   <input type="submit" name="action" value="[% 'Continue' | $T8 %]">
-  </p>
  </form>
-
-</body>
-</html>