[%- USE T8 %]
[%- USE HTML %]
-[%- USE L %]
-<body class="admin">
-
- <script type="text/javascript" src="js/common.js"></script>
- <script type="text/javascript" src="js/jquery.js"></script>
+[%- USE L %][%- USE LxERP -%]
<script type="text/javascript">
<!--
function open_connection_test_window() {
-->
</script>
- <form name="Form" id="Form" method="post" action="admin.pl">
+ <h1>[% title %]</h1>
- <div class="listtop" width="100%">[% title %]</div>
+ <form name="Form" id="Form" method="post" action="admin.pl">
<p><a href="admin.pl?action=list_users">[% 'Back' | $T8 %]</a></p>
<table width="100%">
<table>
<tr>
<th align="right">[% 'Date Format' | $T8 %]</th>
- <td>[% L.select_tag('user.dateformat', L.options_for_select(all_dateformats, default=user.dateformat)) %]</td>
+ <td>[% L.select_tag('user.dateformat', all_dateformats, default = user.dateformat) %]</td>
</tr>
<tr>
<th align="right">[% 'Number Format' | $T8 %]</th>
- <td>[% L.select_tag('user.numberformat', L.options_for_select(all_numberformats, default=user.numberformat)) %]</td>
+ <td>[% L.select_tag('user.numberformat', all_numberformats, default = user.numberformat) %]</td>
</tr>
<tr>
<tr>
<th align="right">[% 'Language' | $T8 %]</th>
- <td>[% L.select_tag('user.countrycode', L.options_for_select(all_countrycodes, title='title', default=user.countrycode)) %]</td>
+ <td>[% L.select_tag('user.countrycode', all_countrycodes, title_key = 'title', default = user.countrycode) %]</td>
</tr>
<tr>
<th align="right">[% 'Stylesheet' | $T8 %]</th>
- <td>[% L.select_tag('user.stylesheet', L.options_for_select(all_stylesheets, default=user.stylesheet)) %]</td>
+ <td>[% L.select_tag('user.stylesheet', all_stylesheets, default = user.stylesheet) %]</td>
</tr>
<tr>
</tr>
<tr>
<th align="right">[% 'Use Templates' | $T8 %]</th>
- <td>[% L.select_tag('usetemplates', L.options_for_select(all_templates, default=user.templates)) %]</td>
+ <td>[% L.select_tag('usetemplates', all_templates, default = user.templates) %]</td>
</tr>
<tr>
<th align="right">[% 'New Templates' | $T8 %]</th>
</tr>
<tr>
<th align="right">[% 'Setup Templates' | $T8 %]</th>
- <td>[% L.select_tag('mastertemplates', L.options_for_select(all_master_templates, default='German')) %]</td>
+ <td>[% L.select_tag('mastertemplates', all_master_templates, default = 'Standard') %]</td>
</tr>
<tr>
<th align="right">[% 'Setup Menu' | $T8 %]</th>
- <td>[% L.select_tag('user.menustyle', L.options_for_select(all_menustyles, title='title', default=user.menustyle)) %]</td>
+ <td>[% L.select_tag('user.menustyle', all_menustyles, title_key = 'title', default = user.menustyle) %]</td>
</tr>
<tr>
<th align='right'>[% 'Mandatory Departments' | $T8 %]</th>
<input type="hidden" name="new_user_login" id="new_user_login" value="">
<input type="hidden" name="action_save_user_as_new" id="action_save_user_as_new" value="">
<input type="button" class="submit" id="save_as_new_button" value="[% 'Save as new' | $T8 %]">
- <input type="submit" class="submit" name="action_delete_user" value="[% 'Delete' | $T8 %]">
+ [% L.submit_tag("action_delete_user", LxERP.t8('Delete'), confirm=LxERP.t8('Are you sure?')) %]
<input type="hidden" name="edit" value="1">
[% END %]
if (!new_user_login || (new_user_login == ''))
return;
- $("#action_save_user_as_new").attr('value', '1');
- $("#new_user_login").attr('value', new_user_login);
- $("#user_id").attr('value', '');
+ $("#action_save_user_as_new").val('1');
+ $("#new_user_login").val(new_user_login);
+ $("#user_id").val('');
$("#Form").submit();
});
});
-->
</script>
-
-</body>
-</html>