1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-25 07:21:03 +02:00

Tag styling and admin-ui type='tags' added.

This commit is contained in:
Cameron
2013-03-15 21:50:03 -07:00
parent 3096bd2b6c
commit 196aed907e
4 changed files with 18 additions and 5 deletions

View File

@@ -166,7 +166,8 @@ class e_form
function tags($name, $value, $maxlength = 200, $options = array())
{
if(is_string($options)) parse_str($options, $options);
$options['class'] = 'tbox input-text e-tags';
$options['class'] = 'tbox span1 e-tags';
$options['size'] = 7;
return $this->text($name, $value, $maxlength, $options);
}
@@ -2337,6 +2338,7 @@ class e_form
$value = vartrue($attributes['writeParms']['__options']['pre']).vartrue($attributes['writeParms'][$value]).vartrue($attributes['writeParms']['__options']['post']);
break;
case 'tags':
case 'text':
if(vartrue($parms['truncate']))
@@ -2773,6 +2775,10 @@ class e_form
unset($parms['maxlength']);
$ret = vartrue($parms['pre']).$this->text($key, $value, $maxlength, $parms).vartrue($parms['post']); // vartrue($parms['__options']) is limited. See 'required'=>true
break;
case 'tags':
$ret = vartrue($parms['pre']).$this->tags($key, $value, $maxlength, $parms).vartrue($parms['post']); // vartrue($parms['__options']) is limited. See 'required'=>true
break;
case 'textarea':
$text = "";