index.phtml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <div id="history_template" class="ui-widget ui-widget-content block-shadow alpha-block padded-strong">
  2. <div>
  3. <div><h4><?php echo _("Log Sheet Templates") ?></h4></div>
  4. <ul id="template_list">
  5. <?php if (count($this->template_list) == 0): ?>
  6. <li><?php echo _("No Log Sheet Templates") ?></li>
  7. <?php endif; ?>
  8. <?php foreach ($this->template_list as $id=>$name): ?>
  9. <?php if (in_array($id, $this->configured)): ?>
  10. <li data-template="<?php echo $id; ?>" data-name="<?php echo $name; ?>" class="template_configured">
  11. <a class="template_name" href="<?php echo $this->baseUrl("Playouthistorytemplate/configure-template/id/{$id}"); ?>">
  12. <?php echo $name; ?>
  13. </a>
  14. <i class="icon icon-ok"></i>
  15. <?php else: ?>
  16. <li data-template="<?php echo $id; ?>" data-name="<?php echo $name; ?>">
  17. <a class="template_name" href="<?php echo $this->baseUrl("Playouthistorytemplate/configure-template/id/{$id}"); ?>">
  18. <?php echo $name; ?>
  19. </a>
  20. <a class="template_remove" href="<?php echo $this->baseUrl("Playouthistorytemplate/delete-template/id/{$id}"); ?>">
  21. <i class="icon icon-trash"></i>
  22. </a>
  23. <a class="template_default" href="<?php echo $this->baseUrl("Playouthistorytemplate/set-template-default/format/json/id/{$id}"); ?>">
  24. <?php echo _("Set Default") ?>
  25. </a>
  26. <?php endif; ?>
  27. </li>
  28. <?php endforeach; ?>
  29. </ul>
  30. <button id="new_item_template" class="btn"><?php echo _("New Log Sheet Template") ?></button>
  31. </div>
  32. <br><br>
  33. <div>
  34. <div><h4><?php echo _("File Summary Templates") ?></h4></div>
  35. <ul id="template_file">
  36. <?php if (count($this->template_file) == 0): ?>
  37. <li><?php echo _("No File Summary Templates") ?></li>
  38. <?php endif; ?>
  39. <?php foreach ($this->template_file as $id=>$name): ?>
  40. <?php if (in_array($id, $this->configured)): ?>
  41. <li data-template="<?php echo $id; ?>" data-name="<?php echo $name; ?>" class="template_configured">
  42. <a class="template_name" href="<?php echo $this->baseUrl("Playouthistorytemplate/configure-template/id/{$id}"); ?>">
  43. <?php echo $name; ?>
  44. </a>
  45. <i class="icon icon-ok"></i>
  46. <?php else: ?>
  47. <li data-template="<?php echo $id; ?>" data-name="<?php echo $name; ?>">
  48. <a class="template_name" href="<?php echo $this->baseUrl("Playouthistorytemplate/configure-template/id/{$id}"); ?>">
  49. <?php echo $name; ?>
  50. </a>
  51. <a class="template_remove" href="<?php echo $this->baseUrl("Playouthistorytemplate/delete-template/id/{$id}"); ?>">
  52. <i class="icon icon-trash"></i>
  53. </a>
  54. <a class="template_default" href="<?php echo $this->baseUrl("Playouthistorytemplate/set-template-default/format/json/id/{$id}"); ?>">
  55. <?php echo _("Set Default") ?>
  56. </a>
  57. <?php endif; ?>
  58. </li>
  59. <?php endforeach; ?>
  60. </ul>
  61. <button id="new_file_template" class="btn"><?php echo _("New File Summary Template") ?></button>
  62. </div>
  63. </div>