allow config fields of type 'textarea'

This commit is contained in:
Uwe Steinmann 2020-01-27 15:37:59 +01:00
parent 903875b6f7
commit b07b94b59a

View File

@ -49,7 +49,7 @@ class SeedDMS_View_Settings extends SeedDMS_Bootstrap_Style {
protected function getTextField($name, $value, $type='', $placeholder='') { /* {{{ */
$html = '';
if($type != 'password' && strlen($value) > 80)
if($type == 'textarea' || ($type != 'password' && strlen($value) > 80))
$html .= '<textarea class="input-xxlarge" name="'.$name.'">'.$value.'</textarea>';
else {
if(strlen($value) > 40)
@ -110,7 +110,7 @@ class SeedDMS_View_Settings extends SeedDMS_Bootstrap_Style {
else
$value = $settings->{"_".$name};
?>
<td><?php $this->showTextField($name, $value, ($type=='password' ? 'password' : ''), $placeholder); ?></td>
<td><?php $this->showTextField($name, $value, ($type=='password' || $type=='textarea' ? $type : ''), $placeholder); ?></td>
</tr>
<?php
} /* }}} */