report.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {% include "ui/modal/header.html" title="New report" %}
  2. {% assign reports = "Simple:Provide only basic data needed for the report,Advanced:Insert charts and additional advanced analyses to be inserted in the report" | split: "," %}
  3. <div class="modal-body">
  4. <div class="mb-3">
  5. <label class="form-label">Name</label>
  6. <input type="text" class="form-control" name="example-text-input" placeholder="Your report name">
  7. </div>
  8. <label class="form-label">Report type</label>
  9. <div class="form-selectgroup-boxes row mb-3">
  10. {% for report in reports %}
  11. {% assign r = report | split: ':' %}
  12. <div class="col-lg-6">
  13. <label class="form-selectgroup-item">
  14. <input type="radio" name="report-type" value="1" class="form-selectgroup-input"{% if forloop.index == 1 %} checked{% endif %}>
  15. <span class="form-selectgroup-label d-flex align-items-center p-3">
  16. <span class="me-3">
  17. <span class="form-selectgroup-check"></span>
  18. </span>
  19. <span class="form-selectgroup-label-content">
  20. <span class="form-selectgroup-title strong mb-1">{{ r[0] }}</span>
  21. <span class="d-block text-secondary">{{ r[1] }}</span>
  22. </span>
  23. </span>
  24. </label>
  25. </div>
  26. {% endfor %}
  27. </div>
  28. <div class="row">
  29. <div class="col-lg-8">
  30. <div class="mb-3">
  31. <label class="form-label">Report url</label>
  32. {% include "ui/form/input-group.html" prepend="https=//tabler.io/reports/" flat=true input-class="ps-0" value="report-01" %}
  33. </div>
  34. </div>
  35. <div class="col-lg-4">
  36. <div class="mb-3">
  37. <label class="form-label">Visibility</label>
  38. {% assign options = "Private,Public,Hidden" | split: "," %}
  39. <select class="form-select">
  40. {% for option in options %}
  41. <option value="{{ forloop.index }}"{% if forloop.index == 1 %} selected{% endif %}>{{ option }}</option>
  42. {% endfor %}
  43. </select>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. <div class="modal-body">
  49. <div class="row">
  50. <div class="col-lg-6">
  51. <div class="mb-3">
  52. <label class="form-label">Client name</label>
  53. <input type="text" class="form-control">
  54. </div>
  55. </div>
  56. <div class="col-lg-6">
  57. <div class="mb-3">
  58. <label class="form-label">Reporting period</label>
  59. <input type="date" class="form-control">
  60. </div>
  61. </div>
  62. <div class="col-lg-12">
  63. <div>
  64. <label class="form-label">Additional information</label>
  65. <textarea class="form-control" rows="3"></textarea>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. <div class="modal-footer">
  71. {% include "ui/button.html" text="Cancel" color="link link-secondary" dismiss=true %}
  72. {% include "ui/button.html" text="Create new report" icon="plus" color="primary" dismiss=true class="ms-auto" %}
  73. </div>