]> wagnertech.de Git - mfinanz.git/blobdiff - templates/webpages/ct/form_header.html
@sven s: warum warten? Patch aus Kundenprojekt, der einige Felder in customer auf...
[mfinanz.git] / templates / webpages / ct / form_header.html
index 71a2a165b3962a8e027cebff2db679230085f4ce..a6f2ceb5610fd0e54c454f1c385dd899a0be5d63 100644 (file)
@@ -1,16 +1,16 @@
 [%- USE T8 %]
 [% USE HTML %][% USE LxERP %]
-<body onLoad="fokus()">
+<body>
 
  <div class="listtop">[% title %]</div>
 
- <form method="post" name="ct" action="ct.pl" onKeyUp="highlight(event)" onClick="highlight(event)">
+ <form method="post" name="ct" action="ct.pl" >
 
   <ul id="maintab" class="shadetabs">
    <li class="selected"><a href="#" rel="billing">[% 'Billing Address' | $T8 %]</a></li>
    <li><a href="#" rel="shipto">[% 'Shipping Address' | $T8 %]</a></li>
-   <li><a href="#" rel="contacts">Ansprechpartner</a></li>
-   <li><a href="#" rel="deliveries">[% 'Lieferungen' | $T8 %]</a></li>
+   <li><a href="#" rel="contacts">[% 'Contacts' | $T8 %]</a></li>
+   <li><a href="#" rel="deliveries">[% 'Supplies' | $T8 %]</a></li>
    <li><a href="#" rel="vcnotes">[% 'Notes' | $T8 %]</a></li>
    [%- IF CUSTOM_VARIABLES.size %]
    <li><a href="#" rel="custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
         -%]
        </td>
       </tr>
+      [%- IF id %]
       <tr>
        <th align="right">[% 'Representative' | $T8 %]</th>
+       <td>
+        <input type="hidden" name="salesman_id" value="[%- HTML.escape(salesman_id) %]"%>
+        [%- HTML.escape(salesman) %]
+       </td>
+      </tr>
+      [%- END %]
+      <tr>
+       <th align="right">
+        [%- IF !id %]
+         [% 'Representative' | $T8 %]
+        [%- ELSE %]
+         [% 'Change representative to' | $T8 %]
+        [%- END %]
+       </th>
        <td>
         [%- INCLUDE generic/multibox.html
-              name      = 'salesman_id',
-              DATA      = ALL_SALESMAN_CUSTOMERS,
-              id_key    = 'id',
-              label_key = 'name',
+              name       = 'new_salesman_id',
+              DATA       = ALL_SALESMAN_CUSTOMERS,
+              id_key     = 'id',
+              label_key  = 'name',
+              show_empty = id,
         -%]
        </td>
       </tr>
      </tr>
 
      <tr>
-      <th align="right" nowrap>[% 'Homepage' | $T8 %]</th>
-      <td><input name="homepage" size="45" value="[% HTML.escape(homepage) %]"></td>
+      <th align="right" nowrap>
+      [% IF homepage %]<a href="[% HTML.escape(homepage) %]" title="[% 'Open this Website' | $T8 %]" target="_blank">[% 'Homepage' | $T8 %]</a>
+      [% ELSE %][% 'Homepage' | $T8 %]
+      [% END %]
+      </th>
+      <td><input name="homepage" size="45" title="[% 'Example: http://lx-office.org' | $T8 %]" value="[% HTML.escape(homepage) %]"></td>
      </tr>
     </table>
 
 
     <table>
      <tr>
-      <th align="left" nowrap>[% 'Notes' | $T8 %]</th>
+      <th align="left" nowrap>[% 'Internal Notes' | $T8 %]</th>
      </tr>
 
      <tr>
     <table>
      <input type="hidden" name="cp_id" value="[% HTML.escape(cp_id) %]">
      <tr>
-      <th align="right">[% 'Ansprechpartner' | $T8 %]</th>
+      <th align="left">[% 'Contacts' | $T8 %]</th>
       <td>
        [%- INCLUDE generic/multibox.html
              name       = 'cp_id',