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/task/edit.php | 2 +- app/Template/task/new.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Template/task') diff --git a/app/Template/task/edit.php b/app/Template/task/edit.php index 51cb2884..0df1676b 100644 --- a/app/Template/task/edit.php +++ b/app/Template/task/edit.php @@ -9,7 +9,7 @@
formLabel(t('Title'), 'title') ?> - formText('title', $values, $errors, array('required')) ?>
+ formText('title', $values, $errors, array('required', 'maxlength="200"')) ?>
formLabel(t('Description'), 'description') ?> diff --git a/app/Template/task/new.php b/app/Template/task/new.php index 6294968a..5eef9923 100644 --- a/app/Template/task/new.php +++ b/app/Template/task/new.php @@ -17,7 +17,7 @@
formLabel(t('Title'), 'title') ?> - formText('title', $values, $errors, array('autofocus', 'required'), 'form-input-large') ?>
+ formText('title', $values, $errors, array('autofocus', 'required', 'maxlength="200"'), 'form-input-large') ?>
formLabel(t('Description'), 'description') ?> -- cgit v1.2.3