summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2018-09-15 22:15:39 -0400
committerMalf Furious <m@lfurio.us>2018-09-15 22:15:39 -0400
commit4aa41406ca20733dd0741f6caa54e300c759acc8 (patch)
treea22178bf8c05887764a372b04f1b21f78473070f
parent4c841f42df89d876058c2a785167247ca8748e77 (diff)
downloadscrott-4aa41406ca20733dd0741f6caa54e300c759acc8.tar.gz
scrott-4aa41406ca20733dd0741f6caa54e300c759acc8.zip
Add file formctrl
This ctrl is not POSTed as part of the input[] array, but as a standalone name.
-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 } ?>