|
|
@@ -355,6 +355,7 @@ class Form {
|
|
|
$value = $options->value ?? http::value($options->name);
|
|
|
$required = ($options->required ?? false) ? "required" : "";
|
|
|
$help_text = $options->helpText ?? false;
|
|
|
+ $min_length = ($options->minLength ?? false) ? "minlength=\"$options->minLength\"" : "";
|
|
|
$max_length = ($options->maxLength ?? false) ? "maxlength=\"$options->maxLength\"" : "";
|
|
|
$requirements = $options->requirements ?? [];
|
|
|
$required_if_valid = !empty($options->requiredIfValid) ? "true" : "false";
|
|
|
@@ -366,7 +367,7 @@ class Form {
|
|
|
self::renderRequiredBadge($required);
|
|
|
?>
|
|
|
</label>
|
|
|
- <textarea class="form-control" name="<?=$options->name?>" id="<?=$id?>" placeholder="Enter text" rows="4" <?=$required?> <?=$max_length?>><?=htmlspecialchars($value)?></textarea>
|
|
|
+ <textarea class="form-control" name="<?=$options->name?>" id="<?=$id?>" placeholder="Enter text" rows="4" <?=$required?> <?=$min_length?> <?=$max_length?>><?=htmlspecialchars($value)?></textarea>
|
|
|
<?php
|
|
|
if($help_text) {
|
|
|
?>
|