[%- 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>
</td>
</tr>
+ [%- IF INSTANCE_CONF.get_feature_experimental_order -%]
+ <tr>
+ <th align="right">[% 'Scrollbar height percentage for form postion area (0 means no scrollbar)' | $T8 %]</th>
+ <td>
+ [% L.input_tag('positions_scrollbar_height', positions_scrollbar_height, size = 5) %]
+ </td>
+ </tr>
+ <tr>
+ <th align="right">[% 'Search parts by vendor partnumber (model) in purchase order forms' | $T8 %]</th>
+ <td>
+ [% L.yes_no_tag('purchase_search_makemodel', purchase_search_makemodel) %]
+ [%- 'This also enables displaying a column with the vendor partnumber (model) (new order controller).' | $T8 %]
+ </td>
+ </tr>
+ <tr>
+ <th align="right">[% 'Search parts by customer partnumber in sales order forms' | $T8 %]</th>
+ <td>
+ [% L.yes_no_tag('sales_search_customer_partnumber', sales_search_customer_partnumber) %]
+ [%- 'This also enables displaying a column with the customer partnumber (new order controller).' | $T8 %]
+ </td>
+ </tr>
+ <tr>
+ <th align="right">[% 'Show update button for positions in order forms' | $T8 %]</th>
+ <td>
+ [% L.yes_no_tag('positions_show_update_button', positions_show_update_button) %]
+ </td>
+ </tr>
+ [%- END -%]
+
<tr>
<th align="right">[% 'Show custom variable search inputs' | $T8 %]</th>
<td>
</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>
+
+ <tr>
+ <th align="right">[% 'Displayable Name Preferences' | $T8 %]</th>
+ <td>
+ <table>
+ [% FOREACH module=displayable_name_specs_by_module.keys.sort %]
+ [%- SET spec=displayable_name_specs_by_module.$module -%]
+ <tr>
+ <td align="right">[% spec.specs.title %]</td>
+ <td>
+ <table>
+ <tr>
+ <th align="left" class="listheading">[% 'Option' | $T8 %]</th>
+ <th align="left" class="listheading">[% 'Name' | $T8 %]</th>
+ </tr>
+ [% FOREACH option=spec.specs.options %]
+ <tr>
+ <td>[% option.title %]</td>
+ <td>[% option.name %]</td>
+ </tr>
+ [% END %]
+ <tr>
+ <th align="left">[% 'Display' | $T8 %]:</th>
+ <td>
+ [% L.hidden_tag("displayable_name_specs[+].module", module) %]
+ [% L.input_tag("displayable_name_specs[].value", spec.prefs.get, size=50) %]
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ [% END %]
+ </table>
+ </td>
+
</table>
</div>
</table>
</div>
</div>
-
- <p><input type="submit" class="submit" name="action" value="[% 'Save' | $T8 %]"></p>
</form>
<script type="text/javascript">