form->csrf() ?> form->hidden('id', $values) ?>
form->label(t('Name'), 'name') ?> form->text('name', $values, $errors, array('required', 'maxlength="50"', 'autofocus', 'tabindex="1"')) ?> form->label(t('Identifier'), 'identifier') ?> form->text('identifier', $values, $errors, array('maxlength="50"', 'tabindex="2"')) ?>

form->label(t('Description'), 'description') ?> form->textEditor('description', $values, $errors, array('tabindex' => 3)) ?>
user->hasProjectAccess('ProjectCreationController', 'create', $project['id'])): ?> form->checkbox('is_private', t('Private project'), 1, $project['is_private'] == 1) ?>

form->label(t('Project owner'), 'owner_id') ?> form->select('owner_id', $owners, $values, $errors, array('tabindex="5"')) ?>
form->date(t('Start date'), 'start_date', $values, $errors, array('tabindex="6"')) ?> form->date(t('End date'), 'end_date', $values, $errors, array('tabindex="7"')) ?>
form->label(t('Default priority'), 'priority_default') ?> form->number('priority_default', $values, $errors, array('tabindex="8"')) ?> form->label(t('Lowest priority'), 'priority_start') ?> form->number('priority_start', $values, $errors, array('tabindex="9"')) ?> form->label(t('Highest priority'), 'priority_end') ?> form->number('priority_end', $values, $errors, array('tabindex="10"')) ?>

modal->submitButtons(array('tabindex' => 11)) ?>