Нема описа

index.html 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {% extends 'base.html' %}
  2. {% block title %}Report Dashboard{% endblock %}
  3. {% block content %}
  4. <div class="container mx-auto px-4 py-8">
  5. <h1 class="text-3xl font-bold text-center mb-4">Welcome to the Report Dashboard</h1>
  6. <p class="text-center text-gray-600">Below is the list of reports currently available:</p>
  7. <form class="max-w-sm mx-auto">
  8. <label for="countries" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Select an option</label>
  9. <select id="countries" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500">
  10. <option selected>Choose a country</option>
  11. <option value="US">United States</option>
  12. <option value="CA">Canada</option>
  13. <option value="FR">France</option>
  14. <option value="DE">Germany</option>
  15. </select>
  16. </form>
  17. <!-- Reports List -->
  18. <div class="mt-6">
  19. {% if reports %}
  20. <ul class="bg-white rounded shadow p-4">
  21. {% for report in reports %}
  22. <li class="border-b last:border-none py-2">
  23. <strong>{{ report.name }}</strong>
  24. <span class="text-sm text-gray-500">- Created on {{ report.date_created }}</span>
  25. </li>
  26. {% endfor %}
  27. </ul>
  28. {% else %}
  29. <p class="text-gray-500 text-center">No reports available at the moment. Please check back later.</p>
  30. {% endif %}
  31. </div>
  32. </div>
  33. {% endblock %}