diff options
author | Malf Furious <m@lfurio.us> | 2018-09-15 22:15:39 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2018-09-15 22:15:39 -0400 |
commit | 4aa41406ca20733dd0741f6caa54e300c759acc8 (patch) | |
tree | a22178bf8c05887764a372b04f1b21f78473070f /app/view/formctrl.php | |
parent | 4c841f42df89d876058c2a785167247ca8748e77 (diff) | |
download | scrott-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.
Diffstat (limited to 'app/view/formctrl.php')
-rw-r--r-- | app/view/formctrl.php | 8 |
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 } ?> |