blockstories.html.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php $sysURL = $this->session->notHead ? common::getSysURL() : '';?>
  2. <table class='table main-table' id='stories'>
  3. <thead>
  4. <tr>
  5. <th class='c-id'> <?php echo $lang->idAB;?></th>
  6. <th class='c-status'> <?php echo $lang->priAB;?></th>
  7. <th class='text-left'><?php echo $lang->testreport->storyTitle;?></th>
  8. <th class='c-user'> <?php echo $lang->openedByAB;?></th>
  9. <th class='c-user'> <?php echo $lang->assignedToAB;?></th>
  10. <th class='c-id'> <?php echo $lang->story->estimateAB;?></th>
  11. <th class='c-status'> <?php echo $lang->statusAB;?></th>
  12. <th class='c-status'> <?php echo $lang->story->stageAB;?></th>
  13. </tr>
  14. </thead>
  15. <?php if($stories):?>
  16. <tbody>
  17. <?php foreach($stories as $story):?>
  18. <tr>
  19. <td><?php echo sprintf('%03d', $story->id) . html::hidden('stories[]', $story->id)?></td>
  20. <td><span class='label-pri label-pri-<?php echo $story->pri?>' title='<?php echo zget($lang->story->priList, $story->pri);?>'><?php echo zget($lang->story->priList, $story->pri);?></span></td>
  21. <td class='text-left c-name' title='<?php echo $story->title?>'><?php echo html::a($sysURL . $this->createLink('story', 'view', "storyID=$story->id", '', true), $story->title, '', "data-toggle='modal' data-type='iframe' data-width='90%'");?></td>
  22. <td><?php echo zget($users, $story->openedBy);?></td>
  23. <td><?php echo zget($users, $story->assignedTo);?></td>
  24. <td><?php echo $story->estimate?></td>
  25. <?php $status = $this->processStatus('story', $story);?>
  26. <td title='<?php echo $status;?>'>
  27. <span class="status-story status-<?php echo $story->status?>"><?php echo $status;?></span>
  28. </td>
  29. <td><?php echo zget($lang->story->stageList, $story->stage);?></td>
  30. </tr>
  31. <?php endforeach;?>
  32. </tbody>
  33. <?php else:?>
  34. <tr><td class='none-data' colspan='8'><?php echo $lang->testreport->none;?></td></tr>
  35. <?php endif?>
  36. </table>