From b6aa0e99aa51159353ef2dfe201a8d12b438768e Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 6 Sep 2011 23:47:39 -0400 Subject: Fix a few style issues (use .wide class for $t->inputTextArea(), css tweaks) --- src/views/Template.class.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/views/Template.class.php b/src/views/Template.class.php index ba51a2f..663ec05 100644 --- a/src/views/Template.class.php +++ b/src/views/Template.class.php @@ -212,8 +212,9 @@ class Template { echo $str; } - public function input($id, $label, $hint, $html) { - $str = $this->openTag('li'); + public function input($id, $label, $hint, $html, $tags=null) { + if ($tags===null) { $tags=array(); } + $str = $this->openTag('li', $tags); $str.= $this->tag('label', array('for'=>$id), $label); $str.= $this->text($html); if (strlen($hint)>0) { @@ -234,7 +235,8 @@ class Template { $value = htmlentities($default); $tag = ($lock?"readonly='readonly' ":''); return $this->input($id, $label, $hint, - ""); + "", + array('class'=>'wide')); } public function inputText($id, $label, $hint='', $default='', $lock=FALSE) { -- cgit v1.2.3-2-g168b