1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-17 03:54:09 +02:00

Issue #1138 - Bootstrap UI fixes.

This commit is contained in:
Cameron
2015-07-15 13:48:19 -07:00
parent 40043dd009
commit 35f225aa79
7 changed files with 64 additions and 25 deletions

View File

@@ -554,7 +554,12 @@ class e_form
if(!vartrue($options['size'])) $options['size'] = 15;
if(!vartrue($options['class'])) $options['class'] = 'tbox number e-spinner input-small form-control';
if(!empty($options['size']))
{
$options['class'] .= 'input-'.$options['size'];
unset($options['size']);
}
$options['type'] ='number';
$mlength = vartrue($maxlength) ? "maxlength=".$maxlength : "";
@@ -886,7 +891,7 @@ class e_form
$thpath = isset($sc_parameters['nothumb']) || vartrue($hide) ? $default : $tp->thumbUrl($default_thumb, $att, true);
$label = "<img id='{$name_id}_prev' src='{$default_url}' alt='{$default_url}' class='well well-small image-selector' style='display:block;' />";
$label = "<img id='{$name_id}_prev' src='{$default_url}' alt='{$default_url}' class='well well-small image-selector img-responsive' style='display:block;' />";
if($cat != 'news' && $cat !='page' && $cat !='')
{
@@ -2243,6 +2248,7 @@ class e_form
break;
case 'cancel':
$options['class'] .= 'btn-default';
// use this for neutral colors.
break;
@@ -2654,6 +2660,7 @@ class e_form
{
if ((in_array($key, $columnPref) || $key=='options' || vartrue($val['forced'])) && !vartrue($val['nolist']))
{
$class = vartrue($val['class']) ? 'class="'.$val['class'].'"' : '';
$width = vartrue($val['width']) ? ' style="width:'.$val['width'].'"' : '';
$text .= '<col '.$class.$width.' />