]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/login_screen/user_login.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / login_screen / user_login.html
1 [% USE T8 %]
2 [% USE HTML %]
3 [% USE L %]
4 [% USE LxERP %]
5 [% SET auth_client = '{AUTH}client' %]
6 [% SET auth_login  = '{AUTH}login'  %]
7
8
9 <h1>[% LxERP.t8('kivitendo v#1', version) %]</h1>
10 <div id="login-elements">
11 <div class="logo">
12   <a href="http://www.kivitendo.de" target="_top" class="no-underlined-links"><img src="image/kivitendo.png" class='kivitendo-logo'></a>
13 </div>
14
15 [% IF error %]
16   <div class="message message_error">[% HTML.escape(error) %]</div>
17 [% END %]
18 [% IF warning %]
19   <div class="message message_hint">[% HTML.escape(warning) %]</div>
20 [% END %]
21 [% IF info %]
22   <div class="message message_ok">[% HTML.escape(info) %]</div>
23 [% END %]
24
25 <div class="separate-form">
26
27   [% IF SELF.clients.size %]
28   <form method="post" name="loginscreen" action="controller.pl" target="_top">
29     <input type="hidden" name="show_dbupdate_warning" value="1">
30     [% L.hidden_tag("callback", callback) %]
31
32     <table class="tbl-horizontal login">
33       <caption>[% 'User login' | $T8 %]</caption>
34       <colgroup><col class="wi-small"><col class="wi-normal"></colgroup>
35       <tbody>
36         <tr>
37           <th>[% 'Login Name' | $T8 %]</th>
38           <td>[% L.input_tag('{AUTH}login', FORM.$auth_login, id='auth_login', class='initial_focus wi-normal') %]</td>
39         </tr>
40         <tr>
41           <th>[% 'Password' | $T8 %]</th>
42           <td>[% L.input_tag('{AUTH}password', '', type='password', class='wi-normal') %]</td>
43         </tr>
44         <tr>
45           <th>[% 'Client' | $T8 %]</th>
46           <td>[% L.select_tag('{AUTH}client_id', SELF.clients, title_key='name', default=SELF.default_client_id, class='wi-normal') %]</td>
47         </tr>
48         <tr>
49           <th>&nbsp;</th>
50           <td>
51             <input type="hidden" name="action" value="LoginScreen/login">
52             <input type="submit" value="[% 'Login' | $T8 %]">
53           </td>
54         </tr>
55       </tbody>
56     </table>
57   </form>
58 </div><!-- /.separate-form -->
59
60 [% ELSE %]
61   <p>
62     [% LxERP.t8("No clients have been created yet.") %]
63     [% LxERP.t8("Please do so in the administration area.") %]
64   </p>
65   <p><a href="controller.pl?action=Admin/login">[% LxERP.t8("Administration area") %]</a></p>
66 [% END %]
67
68 <div>
69   <p>
70     <a href="controller.pl?action=Admin/login" target="_top">[% LxERP.t8('Administration area') %]</a>
71     &nbsp;|&nbsp;
72     [%- LxERP.t8('Documentation') %]
73     <a href="doc/kivitendo-Dokumentation.pdf" target="_top">[% LxERP.t8('PDF') %]</a>
74     /
75     <a href="doc/html/index.html" target="_top">[%- LxERP.t8('HTML') %]</a>
76   </p>
77 </div>
78
79 </div>
80
81
82 [% IF FORM.$auth_client %]
83 <script type='text/javascript'>
84 $(function() {
85   $('[name="{AUTH}client_id"] option').filter(function() {
86      return ($(this).text() === '[% FORM.$auth_client %]');
87   }).prop('selected', true);
88 });
89 </script>
90 [% END %]