create.ipd.html.hook.php 1.3 KB

1234567891011121314151617181920212223242526272829
  1. <?php $this->app->loadLang('demand');?>
  2. <?php
  3. $html = "<tr class='ipdBox'>";
  4. $html .= "<th>{$lang->story->duration}</th>";
  5. $html .= "<td colspan='2'>" . html::select('duration', $this->lang->demand->durationList, '', "class='form-control chosen'") . "</td>";
  6. $html .= "<td colspan='2'>";
  7. $html .= "<div class='input-group'>";
  8. $html .= "<span class='input-group-addon'>{$lang->story->BSA} ";
  9. $html .= "<icon class='icon icon-help' data-toggle='popover' data-trigger='focus hover' data-placement='right' data-tip-class='text-muted popover-sm' data-content='{$lang->demand->bsaTip}'></icon>";
  10. $html .= "</span>";
  11. $html .= html::select('BSA', $lang->demand->bsaList, '', "class='form-control picker-select'");
  12. $html .= "</div>";
  13. $html .= "</td>";
  14. $html .= "</tr>";
  15. $this->session->set('storyList', $this->createLink('product', 'browse', "productID=$product->id&branch=$branch&browseType=allstory"), 'product');
  16. $keywords = isset($feedback) ? $feedback->keywords : '';
  17. js::set('keywords', $keywords);
  18. ?>
  19. <style>
  20. #dataform .icon-help {position: relative; top: -1px;}
  21. </style>
  22. <script>
  23. if(keywords) $('#keywords').val(keywords);
  24. $('#reviewerBox').parent('tr').after(<?php echo json_encode($html);?>);
  25. $('.table .form-actions').append('<input type="hidden" name="vision" value="or">');
  26. $('[data-toggle="popover"]').popover();
  27. </script>