mirror of
https://github.com/e107inc/e107.git
synced 2025-08-18 12:21:45 +02:00
Admin -> Mail : upgraded GUI to v2 standards. Template still requires attention.
This commit is contained in:
@@ -3984,12 +3984,21 @@ class e_form
|
||||
}
|
||||
}
|
||||
|
||||
if(!is_array($att['writeParms']))
|
||||
{
|
||||
parse_str(varset($att['writeParms']), $writeParms);
|
||||
}
|
||||
else
|
||||
{
|
||||
$writeParms = $att['writeParms'];
|
||||
}
|
||||
|
||||
|
||||
|
||||
if('hidden' === $att['type'])
|
||||
{
|
||||
if(!is_array($att['writeParms'])) parse_str(varset($att['writeParms']), $tmp);
|
||||
else $tmp = $att['writeParms'];
|
||||
|
||||
if(!vartrue($tmp['show']))
|
||||
if(!vartrue($writeParms['show']))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@@ -4039,12 +4048,13 @@ class e_form
|
||||
$leftCell = $required."<span{$required_class}>".defset(vartrue($att['title']), vartrue($att['title']))."</span>".$label;
|
||||
$rightCell = $this->renderElement($keyName, $model->getIfPosted($valPath), $att, varset($model_required[$key], array()), $model->getId())." {$help}";
|
||||
|
||||
if(vartrue($att['type']) == 'bbarea')
|
||||
if(vartrue($att['type']) == 'bbarea' || $writeParms['nolabel'] == true)
|
||||
{
|
||||
$text .= "
|
||||
<tr><td colspan='2'>
|
||||
<div style='padding-bottom:8px'>".$leftCell."</div>".
|
||||
$rightCell."
|
||||
<tr><td colspan='2'>";
|
||||
|
||||
$text .= "<div style='padding-bottom:8px'>".$leftCell."</div>";
|
||||
$text .= $rightCell."
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user