[%- USE T8 %]
[%- USE HTML %][%- USE L -%][%- USE LxERP -%]
+[%- SET auth_client = '{AUTH}client' %]
+[%- SET auth_login = '{AUTH}login' %]
<center>
<table class="login" border="3" cellpadding="20">
<tr>
<td class="login" align="center">
- <a href="http://www.kivitendo.de" target="_top" class="no-underlined-links"><img src="image/kivitendo.png" border="0"></a>
+ <a href="http://www.kivitendo.de" target="_top" class="no-underlined-links"><img src="image/kivitendo.png" class='kivitendo-logo' border="0"></a>
<h1>[% LxERP.t8('kivitendo v#1', version) %]</h1>
[% IF error %]
<table>
<tr>
<th align="right">[% 'Login Name' | $T8 %]</th>
- <td>[% L.input_tag('{AUTH}login', '', id='auth_login', style=style, class='initial_focus') %]</td>
+ <td>[% L.input_tag('{AUTH}login', FORM.$auth_login, id='auth_login', style=style, class='initial_focus') %]</td>
</tr>
<tr>
<th align="right">[% 'Password' | $T8 %]</th>
|
<a href="doc/kivitendo-Dokumentation.pdf" target="_top">[%- LxERP.t8('Documentation') %]</a>
</p>
+
+[% IF FORM.$auth_client %]
+<script type='text/javascript'>
+$(function() {
+ $('[name="{AUTH}client_id"] option').filter(function() {
+ return ($(this).text() === '[% FORM.$auth_client %]');
+ }).prop('selected', true);
+});
+</script>
+[% END %]