From a4e85aedf9988078279547603fe20ba5c452948e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 21 May 2021 17:04:31 +0200 Subject: [PATCH] =?utf8?q?Mobile=20Layout:=20Loginscreen=20f=C3=BCr=20mobi?= =?utf8?q?le=20User?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/LoginScreen.pm | 4 +- .../login_screen/user_login.html | 58 +++++++++++++++++++ 2 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 templates/mobile_webpages/login_screen/user_login.html 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") %] + +
+
+ +
+
+
-- 2.20.1