summaryrefslogtreecommitdiff
path: root/views/admin
diff options
context:
space:
mode:
Diffstat (limited to 'views/admin')
-rw-r--r--views/admin/form/input.phtml3
1 files changed, 3 insertions, 0 deletions
diff --git a/views/admin/form/input.phtml b/views/admin/form/input.phtml
index d06949c..08278d2 100644
--- a/views/admin/form/input.phtml
+++ b/views/admin/form/input.phtml
@@ -33,6 +33,9 @@
<?php if (wpsg_isTrue($this->view['field_config']['readonly'])) { ?>
readonly="readonly"
<?php } ?>
+ <?php if (wpsg_isSizedInt($this->view['field_config']['maxlength'])) { ?>
+ maxlength="<?php echo $this->view['field_config']['maxlength']; ?>"
+ <?php } ?>
/>
<?php if (wpsg_isSizedString($this->view['field_config']['help'])) { ?>
<?php if (wpsg_isTrue($this->view['field_config']['rAlign'])) { ?>