1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00
kanboard_ynh/sources/app/Template/subtask/edit.php

33 lines
1.3 KiB
PHP
Raw Normal View History

2014-07-20 12:26:15 +02:00
<div class="page-header">
<h2><?= t('Edit a sub-task') ?></h2>
</div>
2015-01-16 14:23:05 +01:00
<form method="post" action="<?= $this->u('subtask', 'update', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'subtask_id' => $subtask['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('id', $values) ?>
<?= $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') ?>
<?= $this->formText('title', $values, $errors, array('required autofocus')) ?><br/>
2014-07-20 12:26:15 +02:00
2015-01-16 14:23:05 +01:00
<?= $this->formLabel(t('Status'), 'status') ?>
<?= $this->formSelect('status', $status_list, $values, $errors) ?><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->formLabel(t('Time spent'), 'time_spent') ?>
<?= $this->formNumeric('time_spent', $values, $errors) ?> <?= t('hours') ?><br/>
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>