summaryrefslogtreecommitdiffstats
path: root/app/view/formctrl.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app/view/formctrl.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/view/formctrl.php b/app/view/formctrl.php
index deac491..ee0243f 100644
--- a/app/view/formctrl.php
+++ b/app/view/formctrl.php
@@ -18,15 +18,18 @@ namespace formctrl;
<?php function text(string $label, string $name, string $value = "", string $placeholder = "",
bool $required = true, bool $disabled = false) : void { ?>
+
<div class="form-group">
<label><?=$label?></label>
<input type="text" name="input[<?=$name?>]" value="<?=$value?>" placeholder="<?=$placeholder?>" class="form-control" <?=($required ? "required" : "")?> <?=($disabled ? "disabled" : "")?> />
</div>
-<?php } ?>
+<?php } ?>
<?php function password(string $label, string $name, bool $required = true) : void {?>
+
<div class="form-group">
<label><?=$label?></label>
<input type="password" name="input[<?=$name?>]" class="form-control" <?=($required ? "required" : "")?> />
</div>
+
<?php } ?>