CSV-Import von zusätzlichen Rechnungsadressen
[kivitendo-erp.git] / templates / webpages / login_screen / user_login.html
index 75eb399..20c63f1 100644 (file)
@@ -1,11 +1,13 @@
 [%- 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>
-     <h1>[% 'kivitendo' | $T8 %] [% version %]</h1>
+     <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 %]
      <div class="message_error_login">[% HTML.escape(error) %]</div>
@@ -22,6 +24,7 @@
       <form method="post" name="loginscreen" action="controller.pl" target="_top">
 
        <input type="hidden" name="show_dbupdate_warning" value="1">
+       [% L.hidden_tag("callback", callback) %]
 
        <table width="100%">
         <tr>
@@ -29,7 +32,7 @@
           <table>
            <tr>
             <th align="right">[% 'Login Name' | $T8 %]</th>
-            <td>[% L.input_tag('{AUTH}login', '', id='auth_login', style=style) %]</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>
    &nbsp;|&nbsp;
    <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 %]