mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +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='') { /* {{{ */
|
protected function getTextField($name, $value, $type='', $placeholder='') { /* {{{ */
|
||||||
$html = '';
|
$html = '';
|
||||||
if($type != 'password' && strlen($value) > 80)
|
if($type == 'textarea' || ($type != 'password' && strlen($value) > 80))
|
||||||
$html .= '<textarea class="input-xxlarge" name="'.$name.'">'.$value.'</textarea>';
|
$html .= '<textarea class="input-xxlarge" name="'.$name.'">'.$value.'</textarea>';
|
||||||
else {
|
else {
|
||||||
if(strlen($value) > 40)
|
if(strlen($value) > 40)
|
||||||
|
@ -110,7 +110,7 @@ class SeedDMS_View_Settings extends SeedDMS_Bootstrap_Style {
|
||||||
else
|
else
|
||||||
$value = $settings->{"_".$name};
|
$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>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user