summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-09-22 18:08:45 +0000
committeralecpl <alec@alec.pl>2009-09-22 18:08:45 +0000
commit6a486e0bef9ba32ad5ef12fac66d3b1ecf21252e (patch)
treeff220b68cf539fcf45cc7e4c6a9e3089f25b3684
parent6d479a622bfb779e07e7ac7bd12154ec951982e5 (diff)
- allow setting login inputs size in skin template (#1486155)
-rwxr-xr-xprogram/include/rcube_template.php6
-rw-r--r--skins/default/templates/login.html2
2 files changed, 4 insertions, 4 deletions
diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php
index 3d894b5b6..5226f8db8 100755
--- a/program/include/rcube_template.php
+++ b/program/include/rcube_template.php
@@ -1005,8 +1005,8 @@ class rcube_template extends rcube_html_page
if (empty($url) && !preg_match('/_(task|action)=logout/', $_SERVER['QUERY_STRING']))
$url = $_SERVER['QUERY_STRING'];
- $input_user = new html_inputfield(array('name' => '_user', 'id' => 'rcmloginuser', 'size' => 30) + $attrib);
- $input_pass = new html_passwordfield(array('name' => '_pass', 'id' => 'rcmloginpwd', 'size' => 30) + $attrib);
+ $input_user = new html_inputfield(array('name' => '_user', 'id' => 'rcmloginuser') + $attrib);
+ $input_pass = new html_passwordfield(array('name' => '_pass', 'id' => 'rcmloginpwd') + $attrib);
$input_action = new html_hiddenfield(array('name' => '_action', 'value' => 'login'));
$input_tzone = new html_hiddenfield(array('name' => '_timezone', 'id' => 'rcmlogintz', 'value' => '_default_'));
$input_url = new html_hiddenfield(array('name' => '_url', 'id' => 'rcmloginurl', 'value' => $url));
@@ -1026,7 +1026,7 @@ class rcube_template extends rcube_html_page
}
}
else if (empty($default_host)) {
- $input_host = new html_inputfield(array('name' => '_host', 'id' => 'rcmloginhost', 'size' => 30));
+ $input_host = new html_inputfield(array('name' => '_host', 'id' => 'rcmloginhost') + $attrib);
}
$form_name = !empty($attrib['form']) ? $attrib['form'] : 'form';
diff --git a/skins/default/templates/login.html b/skins/default/templates/login.html
index a61e70c0b..680900136 100644
--- a/skins/default/templates/login.html
+++ b/skins/default/templates/login.html
@@ -16,7 +16,7 @@
<div class="boxcontent">
<form name="form" action="./" method="post">
-<roundcube:object name="loginform" form="form" autocomplete="off" />
+<roundcube:object name="loginform" form="form" autocomplete="off" size="30" />
<p style="text-align:center;"><input type="submit" class="button mainaction" value="<roundcube:label name='login' />" /></p>