summaryrefslogtreecommitdiffstats
path: root/app/view
diff options
context:
space:
mode:
Diffstat (limited to 'app/view')
-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">