logsView.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {% extends 'layouts/base.html' %}
  2. {% block styles %}<link rel="stylesheet" href="{{ url_for('static', filename='logs.css') }}"/>{% endblock %}
  3. {% block header_actions %}
  4. <form method="get" class="dashboard-header flex justify-between items-center mb-8 flex-wrap gap-4">
  5. <div class="filters-container flex gap-4 items-center w-full max-w-4xl mx-auto">
  6. <div class="date-filter w-full max-w-sm mx-auto rounded-[0.5rem] shadow-md overflow-hidden relative">
  7. <input
  8. type="date"
  9. name="date"
  10. id="date-filter"
  11. value="{{ selected_date }}"
  12. class="w-full px-4 py-3 border border-gray-300 rounded-lg bg-white shadow-sm text-sm text-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 h-12"
  13. />
  14. </div>
  15. <div class="search-container flex items-center bg-white rounded-[0.5rem] shadow-md overflow-hidden w-full max-w-xl relative">
  16. <input
  17. type="text"
  18. name="search"
  19. id="username-search"
  20. value="{{ search_query }}"
  21. placeholder="{{ _('Buscar por usuario...') }}"
  22. class="search-input w-full pl-4 pr-10 py-3 rounded-[0.5rem] border border-gray-300 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 text-gray-800 h-12"
  23. />
  24. <button
  25. type="submit"
  26. class="absolute right-3 h-full flex items-center justify-center text-gray-500 hover:text-gray-800"
  27. title="{{ _('Buscar') }}"
  28. >
  29. <i class="fas fa-magnifying-glass"></i>
  30. </button>
  31. </div>
  32. </div>
  33. </form>
  34. {% endblock header_actions %}
  35. {% block content %}
  36. {% include 'partials/logs.html' %}
  37. {% endblock %}
  38. {% block scripts %}
  39. <script type="module" src="static/js/dashboard.js"></script>
  40. {% endblock scripts %}