You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.4 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <templates xml:space="preserve">
  3. <t t-name="GaliceaEnvironmentCheckupIcon">
  4. <li>
  5. <a href="#" t-att-title="result == 'success' ? 'No system setup issues' : 'Found '+count+' system setup issues'">
  6. <t t-if="result == 'success'">
  7. <i class="fa fa-check" style="opacity:0.5"></i>
  8. </t>
  9. <t t-if="result == 'warning'">
  10. <i class="fa fa-exclamation-triangle" style="color: orange"></i>
  11. </t>
  12. <t t-if="result == 'fail'">
  13. <i class="fa fa-exclamation-circle" style="color: red"></i>
  14. </t>
  15. <t t-if="result != 'success'">
  16. <span><t t-raw="count" /></span>
  17. </t>
  18. </a>
  19. </li>
  20. </t>
  21. <t t-name="GaliceaEnvironmentChecks">
  22. <div class="row">
  23. <t t-foreach="data" t-as="check">
  24. <div class="col-md-12">
  25. <div style="display: flex; background-color: white; padding: 10px; margin: 10px">
  26. <div style="flex-grow: 0; flex-shrink: 0; width:50px; margin-right: 20px">
  27. <t t-if="check.result == 'success'">
  28. <i class="fa fa-check fa-4x" style="color: green" aria-hidden="true"></i>
  29. </t>
  30. <t t-if="check.result == 'warning'">
  31. <i class="fa fa-exclamation-triangle fa-4x" style="color: orange" aria-hidden="true"></i>
  32. </t>
  33. <t t-if="check.result == 'fail'">
  34. <i class="fa fa-exclamation-circle fa-4x" style="color: red" aria-hidden="true"></i>
  35. </t>
  36. </div>
  37. <div style="flex-grow: 1; flex-shrink: 1">
  38. Module: <t t-esc="check.module" />
  39. <h4><t t-esc="check.message" /></h4>
  40. <div>
  41. <t t-raw="check.details" />
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </t>
  47. </div>
  48. </t>
  49. <t t-name="GaliceaEnvironmentCheckupDashboard">
  50. <div class="container">
  51. <div class="row">
  52. <div class="col-md-12">
  53. <h2>Environment check-up</h2>
  54. <t t-call="GaliceaEnvironmentChecks">
  55. <t t-set="data" t-value="data" />
  56. </t>
  57. </div>
  58. </div>
  59. </div>
  60. </t>
  61. <t t-name="GaliceaEnvironmentCheckupFormWidget">
  62. <h1>Module dependencies</h1>
  63. <t t-call="GaliceaEnvironmentChecks">
  64. <t t-set="data" t-value="data" />
  65. </t>
  66. </t>
  67. </templates>