summaryrefslogtreecommitdiffstats
path: root/app/view/formctrl.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/view/formctrl.php')
-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 7433bbb..e42b2ea 100644
--- a/app/view/formctrl.php
+++ b/app/view/formctrl.php
@@ -50,3 +50,11 @@ namespace formctrl;
</div>
<?php } ?>
+<?php function file(string $label, string $name) : void { ?>
+
+ <div class="form-group">
+ <label class="control-label"><?=$label?></label>
+ <input type="file" name="<?=$name?>" />
+ </div>
+
+<?php } ?>