set maxlength for name input fields in templates
This commit is contained in:
parent
34bbdaeac8
commit
569c99a733
|
|
@ -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"/>
|
||||
|
|
|
|||
|
|
@ -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"/>
|
||||
|
|
|
|||
|
|
@ -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"/>
|
||||
|
|
|
|||
|
|
@ -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"/>
|
||||
|
|
|
|||
|
|
@ -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"/>
|
||||
|
|
|
|||
|
|
@ -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/>
|
||||
|
|
|
|||
|
|
@ -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/>
|
||||
|
|
|
|||
|
|
@ -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"/>
|
||||
|
|
|
|||
|
|
@ -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) ?>
|
||||
|
||||
|
|
|
|||
|
|
@ -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') ?>
|
||||
|
||||
|
|
|
|||
|
|
@ -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') ?>
|
||||
|
||||
|
|
|
|||
|
|
@ -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/>
|
||||
|
|
|
|||
|
|
@ -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/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue