diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-02-04 16:03:29 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-02-04 16:03:29 -0500 |
commit | d5c4c18ea0bd6c0d1a9d0104c1c17748a35f85a7 (patch) | |
tree | 313e42064e41c0b4da565d98992f5aa2933dd8ed /app/Template/project_edit/show.php | |
parent | 8eac12188865f380439a40549e6e6ed58c3f405c (diff) |
Add email address field for projects
Diffstat (limited to 'app/Template/project_edit/show.php')
-rw-r--r-- | app/Template/project_edit/show.php | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/app/Template/project_edit/show.php b/app/Template/project_edit/show.php index 46cdb8fa..074f1d37 100644 --- a/app/Template/project_edit/show.php +++ b/app/Template/project_edit/show.php @@ -1,6 +1,12 @@ -<div class="page-header"> - <h2><?= $this->text->e($project['name']) ?> > <?= t('Edit project') ?></h2> -</div> +<?php if ($this->app->isAjax()): ?> + <div class="page-header"> + <h2><?= $this->text->e($project['name']) ?> > <?= t('Edit project') ?></h2> + </div> +<?php else: ?> + <div class="page-header"> + <h2><?= t('Edit project') ?></h2> + </div> +<?php endif ?> <form method="post" action="<?= $this->url->href('ProjectEditController', 'update', array('project_id' => $project['id'], 'redirect' => 'edit')) ?>" autocomplete="off"> <?= $this->form->csrf() ?> <?= $this->form->hidden('id', $values) ?> @@ -11,12 +17,16 @@ <?= $this->form->label(t('Name'), 'name') ?> <?= $this->form->text('name', $values, $errors, array('required', 'maxlength="50"', 'autofocus', 'tabindex="1"')) ?> + <?= $this->form->label(t('Email'), 'email') ?> + <?= $this->form->email('email', $values, $errors, array('maxlength="255"', 'tabindex="2"')) ?> + <p class="form-help"><?= t('The project email is optional and could be used by several plugins.') ?></p> + <?= $this->form->label(t('Identifier'), 'identifier') ?> - <?= $this->form->text('identifier', $values, $errors, array('maxlength="50"', 'tabindex="2"')) ?> + <?= $this->form->text('identifier', $values, $errors, array('maxlength="50"', 'tabindex="3"')) ?> <p class="form-help"><?= t('The project identifier is optional and must be alphanumeric, example: MYPROJECT.') ?></p> <?= $this->form->label(t('Description'), 'description') ?> - <?= $this->form->textEditor('description', $values, $errors, array('tabindex' => 3)) ?> + <?= $this->form->textEditor('description', $values, $errors, array('tabindex' => 4)) ?> </fieldset> <fieldset> |