From 569c99a73302271b80cd7c8a25356ea285606563 Mon Sep 17 00:00:00 2001
From: Michael Lüpkes <michael@luepkes.net>
Date: Tue, 13 Jan 2015 14:09:02 +0100
Subject: set maxlength for name input fields in templates

---
 app/Template/board/edit.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'app/Template/board')

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"/>
-- 
cgit v1.2.3