summaryrefslogtreecommitdiff
path: root/app/Template/project
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/project')
-rw-r--r--app/Template/project/edit.php2
-rw-r--r--app/Template/project/new.php2
2 files changed, 2 insertions, 2 deletions
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"/>