[%- USE T8 %]
[%- USE LxERP %]
[%- USE HTML %]
-[%- USE L %]
-[% USE Dumper %]
+[%- USE L %][%- USE P -%]
+
<h1>[% title %]</h1>
<form method="post" action="am.pl" name="Form" id="form">
</tr>
<tr>
- <th align="right">[% 'E-mail' | $T8 %]</th>
+ <th align="right">[% 'Email address' | $T8 %]</th>
<td><input name="email" size="30" value="[% HTML.escape(MYCONFIG.email) %]"></td>
</tr>
<tr valign="top">
- <th align="right">[% 'Signature' | $T8 %]</th>
- <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>
+ <th align="right">[% 'Email signature' | $T8 %]</th>
+ <td>
+ [% P.textarea_tag("signature", MYCONFIG.signature, class="texteditor", rows="5", cols="50") %]
+ </td>
+ </tr>
+
+ <tr valign="top">
+ <th align="right">[% "Company's email signature" | $T8 %]</th>
+ <td>[% P.restricted_html(company_signature) %]</td>
+ </tr>
+
<tr>
<th align="right">[% 'Phone' | $T8 %]</th>
<td><input name="tel" size="14" value="[% HTML.escape(MYCONFIG.tel) %]"></td>
</td>
</tr>
+ <tr>
+ <th align="right">[% 'Use date and duration for time recordings' | $T8 %]</th>
+ <td>
+ [% L.yes_no_tag('time_recording_use_duration', time_recording_use_duration) %]
+ </td>
+ </tr>
+
</table>
</div>
</td>
</tr>
+ <tr>
+ <th align="right">[% 'Longdescription dialog size percentage from main window (0 means fix values)' | $T8 %]</th>
+ <td>
+ [% L.input_tag('longdescription_dialog_size_percentage', longdescription_dialog_size_percentage, size = 5) %]
+ </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>
[% 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,
+ 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) %]
- [% # L.multiselect2side("quick_searches", labelsx=LxERP.t8("All modules"), labeldx=LxERP.t8("Enabled modules")) %]
+ 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>
</div>
</div>
</form>
-
- <script type="text/javascript">
- <!--
-$(function() {
- $("#full_signature").toggle();
- $("#edit_signature").toggle();
- $('.togglelink').click(function() {
- $('.toggletextarea').toggle();
- $('.togglelink').toggle();
- return false;
- });
-});
- -->
- </script>