summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-09-06 23:47:39 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-09-06 23:47:39 -0400
commitb6aa0e99aa51159353ef2dfe201a8d12b438768e (patch)
tree02e4efdb04a2771a61d2dab3ba45c6e2c0f395f1
parent91c1ef1762b91fe59f8ce51cc1dde63855264f5d (diff)
Fix a few style issues (use .wide class for $t->inputTextArea(), css tweaks)
-rw-r--r--src/views/Template.class.php8
-rw-r--r--style.css14
2 files changed, 17 insertions, 5 deletions
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,
- "<textarea name='$id' id='$id' $tag>$value</textarea>");
+ "<textarea name='$id' id='$id' $tag>$value</textarea>",
+ array('class'=>'wide'));
}
public function inputText($id, $label, $hint='', $default='', $lock=FALSE) {
diff --git a/style.css b/style.css
index 5e960b3..4d56665 100644
--- a/style.css
+++ b/style.css
@@ -16,11 +16,11 @@ body {
font-size: 1em;
padding: 0; }
div.infobar a {
- color: #000000;
- }
+ color: #000000; }
div.main {
}
div.main form fieldset li {
+ clear: both;
padding: .5em 0; }
div.main form fieldset li label {
width: 25%;
@@ -31,6 +31,16 @@ body {
float: left; }
div.main form fieldset li p.form_data {
margin-left: 25%; }
+ div.main form fieldset li.wide {
+ clear: both;
+ padding: .5em 0; }
+ div.main form fieldset li.wide label {
+ width: 100%;
+ float: none; }
+ div.main form fieldset li.wide input,
+ div.main form fieldset li.wide textarea {
+ width: 100%;
+ float: none; }
h1 {
text-align: center; }