2014-07-20 12:26:15 +02:00
|
|
|
<div class="page-header">
|
|
|
|
<h2><?= t('Add a sub-task') ?></h2>
|
|
|
|
</div>
|
|
|
|
|
2015-01-16 14:23:05 +01:00
|
|
|
<form method="post" action="<?= $this->u('subtask', 'save', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>" autocomplete="off">
|
2014-07-20 12:26:15 +02:00
|
|
|
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->formCsrf() ?>
|
2014-07-20 12:26:15 +02:00
|
|
|
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->formHidden('task_id', $values) ?>
|
2014-07-20 12:26:15 +02:00
|
|
|
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->formLabel(t('Title'), 'title') ?>
|
2015-04-21 17:56:16 +02:00
|
|
|
<?= $this->formText('title', $values, $errors, array('required', 'autofocus', 'maxlength="255"')) ?><br/>
|
2014-07-20 12:26:15 +02:00
|
|
|
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->formLabel(t('Assignee'), 'user_id') ?>
|
|
|
|
<?= $this->formSelect('user_id', $users_list, $values, $errors) ?><br/>
|
2014-07-20 12:26:15 +02:00
|
|
|
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->formLabel(t('Original estimate'), 'time_estimated') ?>
|
|
|
|
<?= $this->formNumeric('time_estimated', $values, $errors) ?> <?= t('hours') ?><br/>
|
2014-07-20 12:26:15 +02:00
|
|
|
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->formCheckbox('another_subtask', t('Create another sub-task'), 1, isset($values['another_subtask']) && $values['another_subtask'] == 1) ?>
|
2014-07-20 12:26:15 +02:00
|
|
|
|
|
|
|
<div class="form-actions">
|
|
|
|
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
|
|
|
|
<?= t('or') ?>
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->a(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
2014-07-20 12:26:15 +02:00
|
|
|
</div>
|
|
|
|
</form>
|