1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-23 14:44:29 +02:00

Styling fixes.

This commit is contained in:
Cameron
2017-01-31 16:39:00 -08:00
parent d9fe5c8410
commit 5d94c192b6
14 changed files with 74 additions and 48 deletions

View File

@@ -2205,9 +2205,14 @@ class e_form
$labelFound = vartrue($options['label']);
unset($options['label']); // label attribute not valid in html5
$options = $this->format_options('radio', $name, $options);
$options['checked'] = $checked; //comes as separate argument just for convenience
if(empty($options['id']))
{
$options['id'] = '';
}
// $options['class'] = 'inline';
$text = "";
@@ -2423,11 +2428,11 @@ class e_form
{
if(!empty($options['class']))
{
$options['class'] .= " input-".$options['size'];
$options['class'] .= "form-control input-".$options['size'];
}
else
{
$options['class'] = "input-".$options['size'];
$options['class'] = "form-control input-".$options['size'];
}
unset($options['size']); // don't include in html 'size='.
@@ -3379,7 +3384,7 @@ class e_form
case 'radio':
//$def_options['class'] = ' ';
$def_options = array('class' => '');
$def_options = array('class' => '', 'id'=>'');
unset($def_options['size'], $def_options['selected']);
break;