summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-09-04 20:24:16 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-09-04 20:24:16 -0400
commit4b8e02f4b69ccb4fd3146983bc7570f6ae13bca0 (patch)
tree31714caad52fad1c3198e5640bf08537fa99fd3a
parent0e9ce0122646a74de3288fec457f6e148b5f31f8 (diff)
Add a textarea input to the normal template form stuff.
-rw-r--r--src/views/Template.class.php6
-rw-r--r--style.css5
2 files changed, 10 insertions, 1 deletions
diff --git a/src/views/Template.class.php b/src/views/Template.class.php
index 62b8ba6..187e65b 100644
--- a/src/views/Template.class.php
+++ b/src/views/Template.class.php
@@ -226,6 +226,12 @@ class Template {
$tag = ($lock?"readonly='readonly' ":'');
return "<input type='$type' name='$id' id='$id' value=\"$value\" $tag/>";
}
+ public function inputTextArea($id, $label, $hint='', $default='', $lock=FALSE) {
+ $value = htmlentities($default);
+ $tag = ($lock?"readonly='readonly' ":'');
+ return $this->input($id, $label, $hint,
+ "<textarea name='$id' id='$id' $tag>$value</textarea>");
+ }
public function inputText($id, $label, $hint='', $default='', $lock=FALSE) {
return $this->input($id, $label, $hint,
diff --git a/style.css b/style.css
index 2c687fc..ed48f4e 100644
--- a/style.css
+++ b/style.css
@@ -25,7 +25,8 @@ body {
div.main form fieldset li label {
width: 25%;
float: left; }
- div.main form fieldset li input {
+ div.main form fieldset li input,
+ div.main form fieldset li textarea {
width: 30%;
float: left; }
div.main form fieldset li p.form_data {
@@ -49,4 +50,6 @@ table input {
}
.error {
font-weight: bold;
+ color: red; }
+.http404 {
color: red; } \ No newline at end of file