mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
allow config fields of type 'textarea'
This commit is contained in:
parent
903875b6f7
commit
b07b94b59a
|
@ -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
|
||||
} /* }}} */
|
||||
|
|
Loading…
Reference in New Issue
Block a user