TopQuickSearch: UserPreferences kleinere Syntaxverbesserungen
[kivitendo-erp.git] / templates / webpages / am / config.html
index 0f012a1..3cea818 100644 (file)
@@ -1,11 +1,11 @@
 [%- USE T8 %]
 [%- USE LxERP %]
-[%- USE HTML %][%- USE L %]
-<h1>[% title %]</h1>
+[%- USE HTML %]
+[%- USE L %]
 
- <form method="post" action="am.pl" name="Form">
-  <input type="hidden" name="type" value="preferences">
+<h1>[% title %]</h1>
 
+ <form method="post" action="am.pl" name="Form" id="form">
   <div class="tabwidget">
    <ul>
     <li><a href="#page_personal_settings">[% 'Personal settings' | $T8 %]</a></li>
           [% L.select_tag(
             'focus_position',
             [
-              ['new_description', LxERP.t8('New row, description')],
-              ['new_partnumber', LxERP.t8('New row, partnumber')],
+              ['new_description',  LxERP.t8('New row, description')],
+              ['new_partnumber',   LxERP.t8('New row, partnumber')],
+              ['new_qty',          LxERP.t8('New row, qty')],
               ['last_description', LxERP.t8('Last row, description')],
-              ['last_partnumber', LxERP.t8('Last row, partnumber')],
+              ['last_partnumber',  LxERP.t8('Last row, partnumber')],
+              ['last_qty',         LxERP.t8('Last row, qty')],
             ],
             default => MYCONFIG.focus_position)
           %]
       </td>
      </tr>
 
-     <tr>
-      <th align="right">[% 'Dropdown Limit' | $T8 %]</th>
-      <td><input name="vclimit" size="10" value="[% HTML.escape(MYCONFIG.vclimit) %]"></td>
-     </tr>
-
      <tr>
       <th align="right">[% 'Language' | $T8 %]</th>
       <td>
         [% L.input_tag('form_cvars_nr_cols',  MYCONFIG.form_cvars_nr_cols || 3,  size = 5) %]
       </td>
      </tr>
-
+     <tr>
+      <th align="right">[% 'Quick Searches that will be shown in the header for this user' | $T8 %]</th>
+      <td colspan=2>
+        <div class="clearfix">
+         [% L.select_tag("quick_search_modules[]",
+           enabled_quick_searchmodules,
+           value_key  = "name",
+           title_key  = "description_config",
+           id         = "quick_searches",
+           multiple   = 1,
+           with_empty = 1
+           size       = enabled_quick_searchmodules.size,
+           default    = default_quick_searchmodules) %]
+        </div>
+      </td>
+    </tr>
     </table>
    </div>
 
     </table>
    </div>
   </div>
-
-  <p><input type="submit" class="submit" name="action" value="[% 'Save' | $T8 %]"></p>
  </form>
 
  <script type="text/javascript">