From 569c99a73302271b80cd7c8a25356ea285606563 Mon Sep 17 00:00:00 2001 From: Michael Lüpkes Date: Tue, 13 Jan 2015 14:09:02 +0100 Subject: set maxlength for name input fields in templates --- app/Template/category/edit.php | 2 +- app/Template/category/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Template/category') 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 @@ formHidden('project_id', $values) ?> formLabel(t('Category Name'), 'name') ?> - formText('name', $values, $errors, array('autofocus required')) ?> + formText('name', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?>
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 @@ formHidden('project_id', $values) ?> formLabel(t('Category Name'), 'name') ?> - formText('name', $values, $errors, array('autofocus required')) ?> + formText('name', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?>
-- cgit v1.2.3