affected.html.php 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <div class='tabs'>
  2. <ul class='nav nav-tabs'>
  3. <li class='active'><a data-toggle='tab' href='#affectedProjects'><?php echo $lang->demand->affectedProjects;?> <?php $count = count($story->executions); if($count > 0) echo "<span class='label label-danger label-badge label-circle'>" . $count . "</span>" ?></a></li>
  4. <li><a data-toggle='tab' href='#affectedStories'><?php echo $lang->demand->affectedStories;?> <?php $count = count($story->stories); if($count > 0) echo "<span class='label label-danger label-badge label-circle'>" . $count . "</span>" ?></a></li>
  5. <li><a data-toggle='tab' href='#affectedBugs'><?php echo $lang->demand->affectedBugs;?> <?php $count = count($story->bugs); if($count > 0) echo "<span class='label label-danger label-badge label-circle'>" . $count . "</span>" ?></a></li>
  6. <li><a data-toggle='tab' href='#affectedCases'><?php echo $lang->demand->affectedCases;?> <?php $count = count($story->cases); if($count > 0) echo "<span class='label label-danger label-badge label-circle'>" . $count . "</span>" ?></a></li>
  7. </ul>
  8. <div class='tab-content'>
  9. <div class='tab-pane active' id='affectedProjects'>
  10. <?php foreach($story->executions as $executionID => $execution):?>
  11. <h6><?php echo $execution->name ?> &nbsp;
  12. <?php if(!empty($story->teams[$executionID])):?>
  13. <small><i class='icon-group'></i> <?php foreach($story->teams[$executionID] as $member) echo zget($users, $member->account) . ' ';?></small>
  14. <?php endif;?>
  15. </h6>
  16. <table class='table'>
  17. <thead>
  18. <tr class='text-center'>
  19. <th class='c-id'><?php echo $lang->task->id;?></th>
  20. <th class='text-left'><?php echo $lang->task->name;?></th>
  21. <th class='c-user'><?php echo $lang->task->assignedTo;?></th>
  22. <th class='c-status'><?php echo $lang->task->status;?></th>
  23. <th class='c-consumed'><?php echo $lang->task->consumed;?></th>
  24. <th class='c-left'><?php echo $lang->task->left;?></th>
  25. </tr>
  26. </thead>
  27. <?php if(isset($story->tasks[$executionID])):?>
  28. <tbody class='<?php if(count($story->tasks[$executionID]) > $config->story->affectedFixedNum) echo "linkbox";?>'>
  29. <?php foreach($story->tasks[$executionID] as $task):?>
  30. <tr class='text-center'>
  31. <td><?php echo $task->id;?></td>
  32. <td class='text-left'><?php echo $task->name;?></td>
  33. <td><?php echo zget($users, $task->assignedTo);?></td>
  34. <td>
  35. <span class='status-task status-<?php echo $task->status?>'><?php echo $this->processStatus('task', $task);?></span>
  36. </td>
  37. <td><?php echo $task->consumed;?></td>
  38. <td><?php echo $task->left;?></td>
  39. </tr>
  40. <?php endforeach;?>
  41. </tbody>
  42. <?php endif;?>
  43. </table>
  44. <?php endforeach;?>
  45. </div>
  46. <div class='tab-pane' id='affectedStories'>
  47. <table class='table'>
  48. <thead>
  49. <tr class='text-center'>
  50. <th class='c-id'><?php echo $lang->story->id;?></th>
  51. <th class='text-left'><?php echo $lang->executionstory->common . $lang->nameAB;?></th>
  52. <th class='c-title'><?php echo $lang->product->name;?></th>
  53. <th class='c-status'><?php echo $lang->story->status;?></th>
  54. <th class='c-user'><?php echo $lang->story->openedBy;?></th>
  55. </tr>
  56. </thead>
  57. <tbody class= '<?php if(count($story->stories) > $config->story->affectedFixedNum) echo "linkbox";?>'>
  58. <?php foreach($story->stories as $storyItem):?>
  59. <tr class='text-center'>
  60. <td><?php echo $storyItem->id;?></td>
  61. <td class='text-left'><?php echo $storyItem->title;?></td>
  62. <td><?php echo $storyItem->productTitle;?></td>
  63. <td>
  64. <span class='status-bug status-<?php echo $storyItem->status?>'><?php echo $this->processStatus('story', $storyItem);?></span>
  65. </td>
  66. <td><?php echo zget($users, $storyItem->openedBy);?></td>
  67. </tr>
  68. <?php endforeach;?>
  69. </tbody>
  70. </table>
  71. </div>
  72. <div class='tab-pane' id='affectedBugs'>
  73. <table class='table'>
  74. <thead>
  75. <tr class='text-center'>
  76. <th class='c-id'><?php echo $lang->idAB;?></th>
  77. <th class='text-left'><?php echo $lang->bug->title;?></th>
  78. <th class='c-status'><?php echo $lang->statusAB;?></th>
  79. <th class='c-user'><?php echo $lang->bug->openedBy;?></th>
  80. <th class='c-user'><?php echo $lang->bug->resolvedBy;?></th>
  81. <th class='text-left'><?php echo $lang->bug->resolution;?></th>
  82. <th class='c-user'><?php echo $lang->bug->lastEditedBy;?></th>
  83. </tr>
  84. </thead>
  85. <tbody class= '<?php if(count($story->bugs) > $config->story->affectedFixedNum) echo "linkbox";?>'>
  86. <?php foreach($story->bugs as $bug):?>
  87. <tr class='text-center'>
  88. <td><?php echo $bug->id;?></td>
  89. <td class='text-left'><?php echo $bug->title;?></td>
  90. <td>
  91. <span class='status-bug status-<?php echo $bug->status?>'><?php echo $this->processStatus('bug', $bug);?></span>
  92. </td>
  93. <td><?php echo zget($users, $bug->openedBy);?></td>
  94. <td><?php echo zget($users, $bug->resolvedBy);?></td>
  95. <td class='text-left'><?php echo $lang->bug->resolutionList[$bug->resolution];?></td>
  96. <td><?php echo zget($users, $bug->lastEditedBy);?></td>
  97. </tr>
  98. <?php endforeach;?>
  99. </tbody>
  100. </table>
  101. </div>
  102. <div class='tab-pane' id='affectedCases'>
  103. <table class='table'>
  104. <thead>
  105. <tr class='text-center'>
  106. <th class='c-id'><?php echo $lang->idAB;?></th>
  107. <th class='text-left'><?php echo $lang->testcase->title;?></th>
  108. <th class='c-status'><?php echo $lang->statusAB;?></th>
  109. <th class='c-user'><?php echo $lang->testcase->openedBy;?></th>
  110. <th class='c-user'><?php echo $lang->testcase->lastEditedBy;?></th>
  111. </tr>
  112. </thead>
  113. <tbody class='<?php if(count($story->cases) > $config->story->affectedFixedNum) echo "linkbox";?>'>
  114. <?php foreach($story->cases as $case):?>
  115. <tr class='text-center'>
  116. <td><?php echo $case->id;?></td>
  117. <td class='text-left'><?php echo $case->title;?></td>
  118. <td>
  119. <span class='status-case status-<?php echo $case->status?>'><?php echo $this->processStatus('testcase', $case);?></span>
  120. </td>
  121. <td><?php echo zget($users, $case->openedBy);?></td>
  122. <td><?php echo zget($users, $case->lastEditedBy);?></td>
  123. </tr>
  124. <?php endforeach;?>
  125. </tbody>
  126. </table>
  127. </div>
  128. </div>
  129. </div>