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/create.php

28 lines
1.2 KiB
PHP
Raw Normal View History

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>