summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2018-10-22 22:51:12 -0400
committerMalf Furious <m@lfurio.us>2018-10-22 22:51:12 -0400
commit8bc6bb994607f919c08a8aa9181209260df23251 (patch)
treec0bdeaa49ab3033c1557b0627ce137232bb9e6d3
parentc595ebf46f9fc5ab2f0d192f4841e9ddea548933 (diff)
downloadscrott-8bc6bb994607f919c08a8aa9181209260df23251.tar.gz
scrott-8bc6bb994607f919c08a8aa9181209260df23251.zip
formctrl: Add textarea form control
Adds a parameterized text area to the collection of controls. Signed-off-by: Malf Furious <m@lfurio.us>
-rw-r--r--app/view/formctrl.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/view/formctrl.php b/app/view/formctrl.php
index 1ed1452..1a8348d 100644
--- a/app/view/formctrl.php
+++ b/app/view/formctrl.php
@@ -38,6 +38,14 @@ namespace formctrl;
</div>
<?php } ?>
+<?php function textarea(string $label, string $name, int $rows, string $value = "") : void { ?>
+
+ <div class="form-group">
+ <label class="control-label"><?=$label?></label>
+ <textarea name="input[<?=$name?>]" class="form-control" rows="<?=$rows?>"><?=$value?></textarea>
+ </div>
+
+<?php } ?>
<?php function password(string $label, string $name, bool $required = true) : void {?>
<div class="form-group">