From: Sven Schöling Date: Fri, 21 May 2021 15:04:31 +0000 (+0200) Subject: Mobile Layout: Loginscreen für mobile User X-Git-Tag: kivitendo-mebil_0.1-0~9^2~106 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=a4e85aedf9988078279547603fe20ba5c452948e;p=kivitendo-erp.git Mobile Layout: Loginscreen für mobile User --- diff --git a/SL/Controller/LoginScreen.pm b/SL/Controller/LoginScreen.pm index 59fabb245..adcc8f05b 100644 --- a/SL/Controller/LoginScreen.pm +++ b/SL/Controller/LoginScreen.pm @@ -165,7 +165,9 @@ sub error_state { } sub set_layout { - $::request->{layout} = SL::Layout::Dispatcher->new(style => 'login'); + $::request->{layout} = $::request->is_mobile + ? SL::Layout::Dispatcher->new(style => 'mobile_login') + : SL::Layout::Dispatcher->new(style => 'login'); } sub init_clients { diff --git a/templates/mobile_webpages/login_screen/user_login.html b/templates/mobile_webpages/login_screen/user_login.html new file mode 100644 index 000000000..28d98d33c --- /dev/null +++ b/templates/mobile_webpages/login_screen/user_login.html @@ -0,0 +1,58 @@ +[%- USE T8 %] +[%- USE HTML %][%- USE L -%][%- USE LxERP -%] + +
+ + + +
+
[% LxERP.t8('kivitendo v#1', version) %]
+ +
+
+[% IF error %] +
[% error | html %]
+[% END %] +[% IF warning %] +
[% warning | html %]
+[% END %] +[% IF info %] +
[% ok | html %]
+[% END %] +
+
+ +
+
+
+ +
+
+
+ [% L.input_tag('{AUTH}login', FORM.$auth_login, id='auth_login', class='initial_focus validate', label=LxERP.t8('Login Name')) %] + +
+
+
+
+ [% L.input_tag('{AUTH}password', '', type='password', id='auth_password', class='validate', label=LxERP.t8('Password')) %] + +
+
+
+
+ [% L.select_tag('{AUTH}client_id', SELF.clients, id='auth_client_id', title_key='name', default=SELF.default_client_id) %] + +
+
+ + +
+ [% L.hidden_tag("action", "LoginScreen/login") %] + +
+
+ +
+
+