altes JS-Menu wieder aktiviert - ist nicht schön, aber funktioniert besser
[kivitendo-erp.git] / templates / webpages / am / config_master.html
index 2bda248..0849435 100644 (file)
@@ -1,13 +1,16 @@
 [% USE HTML %]<body onLoad="fokus()">
 
- <div class="listtop">[% title %]</div>
+ <p>
+  <div class="listtop">[% title %]</div>
+ </p>
 
- <form method="post" action="am.pl" name="Form" onKeyUp="highlight(event)" onClick="highlight(event)">
+ <form method="post" action="am.pl" name="Form">
 
   <ul id="maintab" class="shadetabs">
    <li class="selected"><a href="#" rel="page_personal_settings"><translate>Personal settings</translate></a></li>
    <li><a href="#" rel="page_display_options"><translate>Display options</translate></a></li>
    <li><a href="#" rel="page_print_options"><translate>Print options</translate></a></li>
+   <li><a href="#" rel="page_todo_list_options"><translate>TODO list options</translate></a></li>
   </ul>
 
   <input type="hidden" name="type" value="preferences">
      <tr>
       <th align="right"><translate>Setup Menu</translate></th>
       <td>
-       <input name="menustyle" id="menustyle_v3" type="radio" class="radio" value="v3" [% IF menustyle_v3 %]checked[% END %]>&nbsp;
-       <label for="menustyle_v3"><translate>Top (CSS)</translate></label>
-       <input name="menustyle" id="menustyle_neu" type="radio" class="radio" value="neu" [% IF menustyle_neu %]checked[% END %]>&nbsp;
-       <label for="menustyle_neu"><translate>Top (Javascript)</translate></label>
-       <input name="menustyle" id="menustyle_old" type="radio" class="radio" value="old" [% IF menustyle_old %]checked[% END %]>&nbsp;
-       <label for="menustyle_old"><translate>Old (on the side)</translate></label>
-       <input name="menustyle" id="menustyle_xml" type="radio" class="radio" value="xml" [% IF menustyle_xml %]checked[% END %]>&nbsp;
-       <label for="menustyle_xml">XML (XUL,...)</label>
+       <select name="menustyle">
+        <option value="v3"[% IF myconfig_menustyle == 'v3' %] selected[% END %]><translate>Top (CSS)</translate></option>
+        <option value="neu"[% IF myconfig_menustyle == 'neu' %] selected[% END %]><translate>Top (Javascript)</translate></option>
+        <option value="js"[% IF myconfig_menustyle == 'js' %] selected[% END %]><translate>Top (Javascript) old</translate></option>
+        <option value="xml"[% IF myconfig_menustyle == 'xml' %] selected[% END %]><translate>Top (XUL; only for Mozilla Firefox)</translate></option>
+        <option value="old"[% IF myconfig_menustyle == 'old' %] selected[% END %]><translate>Old (on the side)</translate></option>
+       </select>
       </td>
      </tr>
 
      <tr>
       <th align="right"><translate>Form details (second row)</translate></th>
       <td>
-       <input type="radio" id="rad_show_form_details" name="show_form_details" value="1" [% IF myconfig_show_form_details %]checked[% END %]>&nbsp;
-       <label for="rad_show_form_details"><translate>Show by default</translate></label>
-       <input type="radio" id="rad_hide_form_details" name="show_form_details" value="0" [% UNLESS myconfig_show_form_details %]checked[% END %]>&nbsp;
-       <label for="rad_hide_form_details"><translate>Hide by default</translate></label></td>
+       <select name="show_form_details">
+        <option value="1"[% IF  myconfig_show_form_details %] selected[% END %]><translate>Show by default</translate></option>
+        <option value="0"[% IF !myconfig_show_form_details %] selected[% END %]><translate>Hide by default</translate></option>
+       </select>
+      </td>
      </tr>
     </table>
 
 
     <br style="clear: left" />
    </div>
+
+   <div id="page_todo_list_options" class="tabcontent">
+
+    <table>
+     <tr>
+      <th align="right"><translate>Show your TODO list after loggin in</translate></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"><translate>Yes</translate></label>
+       <input type="radio" name="todo_cfg.show_after_login" id="todo_cfg_show_after_login_0" value="0"[% IF !todo_cfg.show_after_login %] checked[% END %]>
+       <label for="todo_cfg_show_after_login_0"><translate>No</translate></label>
+      </td>
+     </tr>
+
+     <tr class="listheading">
+      <th colspan="3"><translate>Configuration of individual TODO items</translate></th>
+     </tr>
+
+     <tr>
+      <th align="right"><translate>Show follow ups...</translate></th>
+      <td>
+       <input type="checkbox" name="todo_cfg.show_follow_ups" id="todo_cfg_show_follow_ups" value="1"[% IF todo_cfg.show_follow_ups %] checked[% END %]>
+       <label for="todo_cfg_show_follow_ups"><translate>...on the TODO list</translate></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"><translate>...after loggin in</translate></label>
+      </td>
+     </tr>
+
+     [%- IF AUTH_RIGHTS_SALES_QUOTATION_EDIT %]
+     <tr>
+      <th align="right"><translate>Show overdue sales quotations and requests for quotations...</translate></th>
+      <td>
+       <input type="checkbox" name="todo_cfg.show_overdue_sales_quotations" id="todo_cfg_show_overdue_sales_quotations" value="1"[% IF todo_cfg.show_overdue_sales_quotations %] checked[% END %]>
+       <label for="todo_cfg_show_overdue_sales_quotations"><translate>...on the TODO list</translate></label>
+      </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"><translate>...after loggin in</translate></label>
+      </td>
+     </tr>
+     [%- END %]
+    </table>
+
+    <br style="clear: left" />
+   </div>
   </div>
 
   <p><input type="submit" class="submit" name="action" value="<translate>Save</translate>"></p>
 
  <script type="text/javascript">
   <!--
-      //Start Tab Content script for UL with id="maintab" Separate multiple ids each with a comma.
-      initializetabcontent("maintab");
+      var maintab = new ddtabcontent("maintab");
+      maintab.setpersist(true);
+      maintab.setselectedClassTarget("link"); //"link" or "linkparent"
+      maintab.init();
     -->
  </script>