tasks.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <div class="card">
  2. <div class="card-header">
  3. <h3 class="card-title">Tasks</h3>
  4. </div>
  5. <div class="table-responsive">
  6. <table class="table card-table table-vcenter">
  7. {% for task in site.data.tasks-list %}
  8. <tr>
  9. <td class="w-1 pe-0">
  10. <input type="checkbox" class="form-check-input m-0 align-middle" aria-label="Select task"{% if task.checked %} checked{% endif %} >
  11. </td>
  12. <td class="w-100">
  13. <a href="#" class="text-reset">{{ task.name }}</a>
  14. </td>
  15. <td class="text-nowrap text-secondary">
  16. {% include ui/icon.html icon="calendar" %}
  17. {{ forloop.index | random_date: site.random-date-from, site.random-date-to | date: '%B %d, %Y' }}
  18. </td>
  19. <td class="text-nowrap">
  20. <a href="#" class="text-secondary">
  21. {% include ui/icon.html icon="check" %}
  22. {{ forloop.index | random_number: 0, 6 }}/{{ forloop.index | random_number: 5, 10 }}
  23. </a>
  24. </td>
  25. <td class="text-nowrap">
  26. <a href="#" class="text-secondary">
  27. {% include ui/icon.html icon="message" %} {{ forloop.index | random_number: 0, 12 }}</a>
  28. </td>
  29. <td>
  30. {% include ui/avatar.html size="sm" person-id=forloop.index %}
  31. </td>
  32. </tr>
  33. {% endfor %}
  34. </table>
  35. </div>
  36. </div>