Merge pull request #1757 from nisargjhaveri/navi_settings_fix
Make text and password fields in config forms smaller
This commit is contained in:
commit
8725217b29
@ -230,11 +230,11 @@ function PMA_displayInput($path, $name, $type, $value, $description = '',
|
||||
|
||||
switch ($type) {
|
||||
case 'text':
|
||||
$htmlOutput .= '<input type="text" size="60" ' . $name_id . $field_class
|
||||
$htmlOutput .= '<input type="text" size="40" ' . $name_id . $field_class
|
||||
. ' value="' . htmlspecialchars($value) . '" />';
|
||||
break;
|
||||
case 'password':
|
||||
$htmlOutput .= '<input type="password" size="60" ' . $name_id . $field_class
|
||||
$htmlOutput .= '<input type="password" size="40" ' . $name_id . $field_class
|
||||
. ' value="' . htmlspecialchars($value) . '" />';
|
||||
break;
|
||||
case 'short_text':
|
||||
|
||||
@ -200,7 +200,7 @@ class PMA_FormDisplay_Tpl_Test extends PHPUnit_Framework_TestCase
|
||||
);
|
||||
|
||||
$this->assertContains(
|
||||
'<input type="text" size="60" name="test/path" id="test/path" ' .
|
||||
'<input type="text" size="40" name="test/path" id="test/path" ' .
|
||||
'class="custom field-error" value="val" />',
|
||||
$result
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user