Add missing icon for "Login As" input in Elastic skin(s)
This commit is contained in:
parent
5a94fd8bc6
commit
83d7667aca
1 changed files with 6 additions and 1 deletions
|
@ -435,11 +435,16 @@ class kolab_auth extends rcube_plugin
|
||||||
|
|
||||||
$input = new html_inputfield(array('name' => '_loginas', 'id' => 'rcmloginas',
|
$input = new html_inputfield(array('name' => '_loginas', 'id' => 'rcmloginas',
|
||||||
'type' => 'text', 'autocomplete' => 'off'));
|
'type' => 'text', 'autocomplete' => 'off'));
|
||||||
|
|
||||||
$row = html::tag('tr', null,
|
$row = html::tag('tr', null,
|
||||||
html::tag('td', 'title', html::label('rcmloginas', rcube::Q($this->gettext('loginas'))))
|
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))))
|
. html::tag('td', 'input', $input->show(trim(rcube_utils::get_input_value('_loginas', rcube_utils::INPUT_POST))))
|
||||||
);
|
);
|
||||||
$args['content'] = preg_replace('/<\/tbody>/i', $row . '</tbody>', $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 . '</tbody>' . $style, $args['content']);
|
||||||
|
|
||||||
return $args;
|
return $args;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue