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/swimlane/edit.php | 2 +- app/Template/swimlane/index.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'app/Template/swimlane') diff --git a/app/Template/swimlane/edit.php b/app/Template/swimlane/edit.php index ea842f31..f39b6fde 100644 --- a/app/Template/swimlane/edit.php +++ b/app/Template/swimlane/edit.php @@ -10,7 +10,7 @@ formHidden('project_id', $values) ?> formLabel(t('Name'), 'name') ?> - formText('name', $values, $errors, array('autofocus required')) ?> + formText('name', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?>
diff --git a/app/Template/swimlane/index.php b/app/Template/swimlane/index.php index 2bcddf75..3482a56c 100644 --- a/app/Template/swimlane/index.php +++ b/app/Template/swimlane/index.php @@ -14,7 +14,7 @@ formHidden('project_id', $values) ?> formLabel(t('Name'), 'name') ?> - formText('name', $values, $errors, array('autofocus required')) ?> + formText('name', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?>
@@ -30,7 +30,7 @@ formHidden('id', $default_swimlane) ?> formLabel(t('Rename'), 'default_swimlane') ?> - formText('default_swimlane', $default_swimlane, array(), array('autofocus required')) ?>
+ formText('default_swimlane', $default_swimlane, array(), array('autofocus', 'required', 'maxlength="50"')) ?>
formCheckbox('show_default_swimlane', t('Show default swimlane'), 1, isset($default_swimlane['show_default_swimlane']) && $default_swimlane['show_default_swimlane'] == 1) ?> -- cgit v1.2.3