summaryrefslogtreecommitdiff
path: root/app/Template/category/index.php
diff options
context:
space:
mode:
authorMichael Lüpkes <michael@luepkes.net>2015-01-13 14:09:02 +0100
committerMichael Lüpkes <michael@luepkes.net>2015-01-13 14:09:02 +0100
commit569c99a73302271b80cd7c8a25356ea285606563 (patch)
treee37bd3d783a1b24a58fdfbc26278c97aa5c66a60 /app/Template/category/index.php
parent34bbdaeac8c407a97a611cb858617eff3483dbb3 (diff)
set maxlength for name input fields in templates
Diffstat (limited to 'app/Template/category/index.php')
-rw-r--r--app/Template/category/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Template/category/index.php b/app/Template/category/index.php
index f876275f..d5b50af4 100644
--- a/app/Template/category/index.php
+++ b/app/Template/category/index.php
@@ -34,7 +34,7 @@
<?= $this->formHidden('project_id', $values) ?>
<?= $this->formLabel(t('Category Name'), 'name') ?>
- <?= $this->formText('name', $values, $errors, array('autofocus required')) ?>
+ <?= $this->formText('name', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?>
<div class="form-actions">
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>