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('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"/>

View File

@@ -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) ?>