From 83d7667aca7e946a15f1167d15814fa6f974c31d Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 30 Jun 2021 13:54:12 +0200 Subject: [PATCH] Add missing icon for "Login As" input in Elastic skin(s) --- plugins/kolab_auth/kolab_auth.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/kolab_auth/kolab_auth.php b/plugins/kolab_auth/kolab_auth.php index 2c926174..d10c792b 100644 --- a/plugins/kolab_auth/kolab_auth.php +++ b/plugins/kolab_auth/kolab_auth.php @@ -435,11 +435,16 @@ class kolab_auth extends rcube_plugin $input = new html_inputfield(array('name' => '_loginas', 'id' => 'rcmloginas', 'type' => 'text', 'autocomplete' => 'off')); + $row = html::tag('tr', null, html::tag('td', 'title', html::label('rcmloginas', rcube::Q($this->gettext('loginas')))) . html::tag('td', 'input', $input->show(trim(rcube_utils::get_input_value('_loginas', rcube_utils::INPUT_POST)))) ); - $args['content'] = preg_replace('/<\/tbody>/i', $row . '', $args['content']); + + // add icon style for Elastic + $style = html::tag('style', [], '#login-form .input-group .icon.loginas::before { content: "\f508"; } '); + + $args['content'] = preg_replace('/<\/tbody>/i', $row . '' . $style, $args['content']); return $args; }