summaryrefslogtreecommitdiff
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
parent34bbdaeac8c407a97a611cb858617eff3483dbb3 (diff)
set maxlength for name input fields in templates
-rw-r--r--app/Template/board/edit.php4
-rw-r--r--app/Template/category/edit.php2
-rw-r--r--app/Template/category/index.php2
-rw-r--r--app/Template/project/edit.php2
-rw-r--r--app/Template/project/new.php2
-rw-r--r--app/Template/subtask/create.php2
-rw-r--r--app/Template/subtask/edit.php2
-rw-r--r--app/Template/swimlane/edit.php2
-rw-r--r--app/Template/swimlane/index.php4
-rw-r--r--app/Template/task/edit.php2
-rw-r--r--app/Template/task/new.php2
-rw-r--r--app/Template/user/edit.php2
-rw-r--r--app/Template/user/new.php2
13 files changed, 15 insertions, 15 deletions
diff --git a/app/Template/board/edit.php b/app/Template/board/edit.php
index 65a8fb26..f30a65c1 100644
--- a/app/Template/board/edit.php
+++ b/app/Template/board/edit.php
@@ -17,7 +17,7 @@
<?php foreach ($columns as $column): ?>
<tr>
<td><?= $this->formLabel('#'.++$i, 'title['.$column['id'].']', array('title="column_id='.$column['id'].'"')) ?></td>
- <td><?= $this->formText('title['.$column['id'].']', $values, $errors, array('required')) ?></td>
+ <td><?= $this->formText('title['.$column['id'].']', $values, $errors, array('required', 'maxlength="50"')) ?></td>
<td><?= $this->formNumber('task_limit['.$column['id'].']', $values, $errors, array('placeholder="'.t('limit').'"')) ?></td>
<td>
<ul>
@@ -53,7 +53,7 @@
<?= $this->formHidden('project_id', $values) ?>
<?= $this->formLabel(t('Title'), 'title') ?>
- <?= $this->formText('title', $values, $errors, array('required')) ?>
+ <?= $this->formText('title', $values, $errors, array('required', 'maxlength="50"')) ?>
<div class="form-actions">
<input type="submit" value="<?= t('Add this column') ?>" class="btn btn-blue"/>
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"/>
diff --git a/app/Template/project/edit.php b/app/Template/project/edit.php
index bb776a06..a1b945cd 100644
--- a/app/Template/project/edit.php
+++ b/app/Template/project/edit.php
@@ -7,7 +7,7 @@
<?= $this->formHidden('id', $values) ?>
<?= $this->formLabel(t('Name'), 'name') ?>
- <?= $this->formText('name', $values, $errors, array('required')) ?>
+ <?= $this->formText('name', $values, $errors, array('required', 'maxlength="50"')) ?>
<div class="form-actions">
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
diff --git a/app/Template/project/new.php b/app/Template/project/new.php
index 91db75e1..b68258b4 100644
--- a/app/Template/project/new.php
+++ b/app/Template/project/new.php
@@ -10,7 +10,7 @@
<?= $this->formCsrf() ?>
<?= $this->formHidden('is_private', $values) ?>
<?= $this->formLabel(t('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/subtask/create.php b/app/Template/subtask/create.php
index 73a08af1..be7fc311 100644
--- a/app/Template/subtask/create.php
+++ b/app/Template/subtask/create.php
@@ -9,7 +9,7 @@
<?= $this->formHidden('task_id', $values) ?>
<?= $this->formLabel(t('Title'), 'title') ?>
- <?= $this->formText('title', $values, $errors, array('required autofocus')) ?><br/>
+ <?= $this->formText('title', $values, $errors, array('required', 'autofocus', 'maxlength="50"')) ?><br/>
<?= $this->formLabel(t('Assignee'), 'user_id') ?>
<?= $this->formSelect('user_id', $users_list, $values, $errors) ?><br/>
diff --git a/app/Template/subtask/edit.php b/app/Template/subtask/edit.php
index 4920eb32..8350dc09 100644
--- a/app/Template/subtask/edit.php
+++ b/app/Template/subtask/edit.php
@@ -10,7 +10,7 @@
<?= $this->formHidden('task_id', $values) ?>
<?= $this->formLabel(t('Title'), 'title') ?>
- <?= $this->formText('title', $values, $errors, array('required autofocus')) ?><br/>
+ <?= $this->formText('title', $values, $errors, array('required', 'autofocus', 'maxlength="50"')) ?><br/>
<?= $this->formLabel(t('Status'), 'status') ?>
<?= $this->formSelect('status', $status_list, $values, $errors) ?><br/>
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 @@
<?= $this->formHidden('project_id', $values) ?>
<?= $this->formLabel(t('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/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 @@
<?= $this->formHidden('project_id', $values) ?>
<?= $this->formLabel(t('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"/>
@@ -30,7 +30,7 @@
<?= $this->formHidden('id', $default_swimlane) ?>
<?= $this->formLabel(t('Rename'), 'default_swimlane') ?>
- <?= $this->formText('default_swimlane', $default_swimlane, array(), array('autofocus required')) ?><br/>
+ <?= $this->formText('default_swimlane', $default_swimlane, array(), array('autofocus', 'required', 'maxlength="50"')) ?><br/>
<?= $this->formCheckbox('show_default_swimlane', t('Show default swimlane'), 1, isset($default_swimlane['show_default_swimlane']) && $default_swimlane['show_default_swimlane'] == 1) ?>
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 @@
<div class="form-column">
<?= $this->formLabel(t('Title'), 'title') ?>
- <?= $this->formText('title', $values, $errors, array('required')) ?><br/>
+ <?= $this->formText('title', $values, $errors, array('required', 'maxlength="200"')) ?><br/>
<?= $this->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 @@
<div class="form-column">
<?= $this->formLabel(t('Title'), 'title') ?>
- <?= $this->formText('title', $values, $errors, array('autofocus', 'required'), 'form-input-large') ?><br/>
+ <?= $this->formText('title', $values, $errors, array('autofocus', 'required', 'maxlength="200"'), 'form-input-large') ?><br/>
<?= $this->formLabel(t('Description'), 'description') ?>
diff --git a/app/Template/user/edit.php b/app/Template/user/edit.php
index 43171d29..310a1ed0 100644
--- a/app/Template/user/edit.php
+++ b/app/Template/user/edit.php
@@ -9,7 +9,7 @@
<?= $this->formHidden('is_ldap_user', $values) ?>
<?= $this->formLabel(t('Username'), 'username') ?>
- <?= $this->formText('username', $values, $errors, array('required', $values['is_ldap_user'] == 1 ? 'readonly' : '')) ?><br/>
+ <?= $this->formText('username', $values, $errors, array('required', $values['is_ldap_user'] == 1 ? 'readonly' : '', 'maxlength="50"')) ?><br/>
<?= $this->formLabel(t('Name'), 'name') ?>
<?= $this->formText('name', $values, $errors) ?><br/>
diff --git a/app/Template/user/new.php b/app/Template/user/new.php
index 1413bd3d..e56f38b1 100644
--- a/app/Template/user/new.php
+++ b/app/Template/user/new.php
@@ -10,7 +10,7 @@
<?= $this->formCsrf() ?>
<?= $this->formLabel(t('Username'), 'username') ?>
- <?= $this->formText('username', $values, $errors, array('autofocus', 'required')) ?><br/>
+ <?= $this->formText('username', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?><br/>
<?= $this->formLabel(t('Name'), 'name') ?>
<?= $this->formText('name', $values, $errors) ?><br/>