Merge branch 'bankerweiterung_und_skonto'
[kivitendo-erp.git] / templates / webpages / am / config.html
index 29a9687..ac7875b 100644 (file)
@@ -1,25 +1,20 @@
 [%- USE T8 %]
 [%- USE LxERP %]
-[% USE HTML %][% USE L %]<body onLoad="fokus()">
-
- <p>
-  <div class="listtop">[% title %]</div>
- </p>
+[%- USE HTML %][%- USE L %]
+<h1>[% title %]</h1>
 
  <form method="post" action="am.pl" name="Form">
-
-  <ul id="maintab" class="shadetabs">
-   <li class="selected"><a href="#" rel="page_personal_settings">[% 'Personal settings' | $T8 %]</a></li>
-   <li><a href="#" rel="page_display_options">[% 'Display options' | $T8 %]</a></li>
-   <li><a href="#" rel="page_print_options">[% 'Print options' | $T8 %]</a></li>
-   <li><a href="#" rel="page_todo_list_options">[% 'TODO list options' | $T8 %]</a></li>
-  </ul>
-
   <input type="hidden" name="type" value="preferences">
 
-  <div class="tabcontentstyle">
+  <div class="tabwidget">
+   <ul>
+    <li><a href="#page_personal_settings">[% 'Personal settings' | $T8 %]</a></li>
+    <li><a href="#page_display_options">[% 'Display options' | $T8 %]</a></li>
+    <li><a href="#page_print_options">[% 'Print options' | $T8 %]</a></li>
+    <li><a href="#page_todo_list_options">[% 'TODO list options' | $T8 %]</a></li>
+   </ul>
 
-   <div id="page_personal_settings" class="tabcontent">
+   <div id="page_personal_settings">
 
     <table>
      <tr>
 
      <tr valign="top">
       <th align="right">[% 'Signature' | $T8 %]</th>
-      <td><textarea name="signature" rows="3" cols="50">[% HTML.escape(myconfig_signature) %]</textarea></td>
-     </tr>
-
+      <td><textarea id="signature" name="signature" class="toggletextarea" rows="5" cols="50">[% HTML.escape(myconfig_signature) %] </textarea>
+         <span id="full_signature" class="toggletextarea"> <textarea readonly name="full_signature" rows="10" cols="50" >[% HTML.escape(full_signature) %]</textarea> </span>
+         <a href="#" class="togglelink">[% 'Check full signature' | $T8 %]</a>
+         <a href="#" id="edit_signature" class="togglelink">[% 'Edit user signature' | $T8 %]</a>
+          </td> </tr>
      <tr>
       <th align="right">[% 'Phone' | $T8 %]</th>
       <td><input name="tel" size="14" value="[% HTML.escape(myconfig_tel) %]"></td>
       <th align="right">[% 'Fax' | $T8 %]</th>
       <td><input name="fax" size="14" value="[% HTML.escape(myconfig_fax) %]"></td>
      </tr>
-     <tr>
-      <th align="right">[% 'Company' | $T8 %]</th>
-      <td><input name="company" size="30" value="[% HTML.escape(myconfig_company) %]"></td>
-     </tr>
-     <tr valign="top">
-      <th align="right">[% 'Address' | $T8 %]</th>
-      <td><textarea name="address" rows="4" cols="50">[% HTML.escape(myconfig_address) %]</textarea></td>
-     </tr>
-     <tr>
-      <th align="right">[% 'SEPA creditor ID' | $T8 %]</th>
-      <td><input name="sepa_creditor_id" size="30" maxlength="35" value="[% HTML.escape(myconfig_sepa_creditor_id) %]"></td>
-     </tr>
 
-       <tr>
-        <th align="right"q>[% 'taxincluded checked' | $T8 %]</th>
+      <tr>
+        <th align="right">[% 'taxincluded checked' | $T8 %]</th>
         <td>
           [% L.yes_no_tag('taxincluded_checked', myconfig_taxincluded_checked) %]
         </td>
       </tr>
 
-    </table>
+      <tr>
+        <th align="right">[% 'Focus position after update' | $T8 %]</th>
+        <td>
+          [% L.select_tag(
+            'focus_position',
+            [
+              ['new_description', LxERP.t8('New row, description')],
+              ['new_partnumber', LxERP.t8('New row, partnumber')],
+              ['last_description', LxERP.t8('Last row, description')],
+              ['last_partnumber', LxERP.t8('Last row, partnumber')],
+            ],
+            default => myconfig_focus_position)
+          %]
+        </td>
+      </tr>
+
+      <tr>
+        <th align="right">[% 'Item multi selection with qty' | $T8 %]</th>
+        <td>
+          [% L.yes_no_tag('item_multiselect', myconfig_item_multiselect) %]
+        </td>
+      </tr>
 
-    <br style="clear: left" />
+    </table>
    </div>
 
-   <div id="page_display_options" class="tabcontent">
+   <div id="page_display_options">
 
     <table>
      <tr>
         [% L.select_tag('dateformat', DATEFORMATS, value_key = 'value', title_key = 'name') %]
       </td>
      </tr>
+     <tr>
+       <th align="right">[% 'Time Format' | $T8 %]</th>
+       <td>
+         [% L.select_tag('timeformat', TIMEFORMATS, value_key = 'value', title_key = 'name') %]
+       </td>
+     </tr>
      <tr>
       <th align="right">[% 'Output Number Format' | $T8 %]</th>
       <td>
        <select name="menustyle">
         <option value="old"[% IF myconfig_menustyle == 'old' %] selected[% END %]>[% 'Old (on the side)' | $T8 %]</option>
         <option value="v3"[% IF myconfig_menustyle == 'v3' %] selected[% END %]>[% 'Top (CSS)' | $T8 %]</option>
-        <option value="v4"[% IF myconfig_menustyle == 'v4' %] selected[% END %]>[% 'Top (CSS) new' | $T8 %]</option>
         <option value="neu"[% IF myconfig_menustyle == 'neu' %] selected[% END %]>[% 'Top (Javascript)' | $T8 %]</option>
        </select>
       </td>
        </select>
       </td>
      </tr>
-    </table>
 
-    <br style="clear: left" />
+     <tr>
+      <th align="right">[% 'Number of columns of custom variables in form details (second row)' | $T8 %]</th>
+      <td>
+        [% L.input_tag('form_cvars_nr_cols',  myconfig_form_cvars_nr_cols || 3,  size = 5) %]
+      </td>
+     </tr>
+
+    </table>
    </div>
 
-   <div id="page_print_options" class="tabcontent">
+   <div id="page_print_options">
 
     <table>
      <input name="printer" type="hidden" value="[% HTML.escape(myconfig_printer) %]">
       <td><input name="copies" size="10" value="[% HTML.escape(myconfig_copies) %]"></td>
      </tr>
     </table>
-
-    <br style="clear: left" />
    </div>
 
-   <div id="page_todo_list_options" class="tabcontent">
+   <div id="page_todo_list_options">
 
     <table>
      <tr>
-      <th align="right">[% 'Show your TODO list after loggin in' | $T8 %]</th>
+      <th align="right">[% 'Show your TODO list after logging in' | $T8 %]</th>
       <td colspan="2">
        <input type="radio" name="todo_cfg.show_after_login" id="todo_cfg_show_after_login_1" value="1"[% IF todo_cfg.show_after_login %] checked[% END %]>
        <label for="todo_cfg_show_after_login_1">[% 'Yes' | $T8 %]</label>
       </td>
       <td>
        <input type="checkbox" name="todo_cfg.show_follow_ups_login" id="todo_cfg_show_follow_ups_login" value="1"[% IF todo_cfg.show_follow_ups_login %] checked[% END %]>
-       <label for="todo_cfg_show_follow_ups_login">[% '...after loggin in' | $T8 %]</label>
+       <label for="todo_cfg_show_follow_ups_login">[% '...after logging in' | $T8 %]</label>
       </td>
      </tr>
 
       </td>
       <td>
        <input type="checkbox" name="todo_cfg.show_overdue_sales_quotations_login" id="todo_cfg_show_overdue_sales_quotations_login" value="1"[% IF todo_cfg.show_overdue_sales_quotations_login %] checked[% END %]>
-       <label for="todo_cfg_show_overdue_sales_quotations_login">[% '...after loggin in' | $T8 %]</label>
+       <label for="todo_cfg_show_overdue_sales_quotations_login">[% '...after logging in' | $T8 %]</label>
       </td>
      </tr>
      [%- END %]
     </table>
-
-    <br style="clear: left" />
    </div>
   </div>
 
 
  <script type="text/javascript">
   <!--
-      var maintab = new ddtabcontent("maintab");
-      maintab.setpersist(true);
-      maintab.setselectedClassTarget("link"); //"link" or "linkparent"
-      maintab.init();
+$(function() {
+  $("#full_signature").toggle();
+  $("#edit_signature").toggle();
+  $('.togglelink').click(function() {
+    $('.toggletextarea').toggle();
+    $('.togglelink').toggle();
+    return false;
+  });
+});
     -->
  </script>
-
-</body>
-</html>