diff options
Diffstat (limited to 'app/Template/category')
-rw-r--r-- | app/Template/category/edit.php | 2 | ||||
-rw-r--r-- | app/Template/category/index.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/Template/category/edit.php b/app/Template/category/edit.php index bec175d5..46d47782 100644 --- a/app/Template/category/edit.php +++ b/app/Template/category/edit.php @@ -10,7 +10,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"/> 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"/> |