summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMax Kamashev <kamashev@gollard.ru>2015-10-20 10:31:03 +0300
committerMax Kamashev <kamashev@gollard.ru>2015-10-20 10:31:03 +0300
commit1739c4a679829732e91896d49d97665b7ddc77a6 (patch)
tree0980df322172cc60e68a210bd0b08d7adff7e382 /app
parent5d1507522366e51be79813fd5a0c80e96001a964 (diff)
Form add subtasks in each task
Diffstat (limited to 'app')
-rw-r--r--app/Template/subtask/show.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/Template/subtask/show.php b/app/Template/subtask/show.php
index 1f0f9bba..aa2a7256 100644
--- a/app/Template/subtask/show.php
+++ b/app/Template/subtask/show.php
@@ -1,5 +1,3 @@
-<?php if (! empty($subtasks)): ?>
-
<?php $first_position = $subtasks[0]['position']; ?>
<?php $last_position = $subtasks[count($subtasks) - 1]['position']; ?>
@@ -9,6 +7,7 @@
<h2><?= t('Sub-Tasks') ?></h2>
</div>
+ <?php if (! empty($subtasks)): ?>
<table class="subtasks-table">
<tr>
<th class="column-40"><?= t('Title') ?></th>
@@ -86,6 +85,7 @@
</tr>
<?php endforeach ?>
</table>
+ <?php endif ?>
<?php if (! isset($not_editable)): ?>
<form method="post" action="<?= $this->url->href('subtask', 'save', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>" autocomplete="off">
@@ -99,4 +99,3 @@
<?php endif ?>
</div>
-<?php endif ?>