set maxlength for name input fields in templates

This commit is contained in:
Michael Lüpkes
2015-01-13 14:09:02 +01:00
parent 34bbdaeac8
commit 569c99a733
13 changed files with 15 additions and 15 deletions

View File

@@ -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"/>