delay_pools.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <div class="bg-white rounded-lg shadow-lg p-6">
  4. <h2 class="text-2xl font-bold text-gray-800 mb-6">Gestión de Delay Pools</h2>
  5. <div class="space-y-6">
  6. {% for pool in delay_pools %}
  7. <div class="border border-gray-200 rounded-lg p-6">
  8. <div class="flex justify-between items-start mb-4">
  9. <div>
  10. <h3 class="text-lg font-semibold text-gray-800">Pool {{ pool.id }}</h3>
  11. <p class="text-sm text-gray-600">Clase: {{ pool.class }}</p>
  12. </div>
  13. <div class="flex space-x-2">
  14. <button class="text-blue-600 hover:text-blue-900">
  15. <i class="fas fa-edit"></i>
  16. </button>
  17. <button class="text-red-600 hover:text-red-900">
  18. <i class="fas fa-trash"></i>
  19. </button>
  20. </div>
  21. </div>
  22. <div class="bg-gray-50 rounded-lg p-4 mb-4">
  23. <h4 class="font-medium text-gray-800 mb-2">Parámetros:</h4>
  24. <code class="text-sm text-gray-700">{{ pool.parameters }}</code>
  25. </div>
  26. <div>
  27. <h4 class="font-medium text-gray-800 mb-2">Reglas de Acceso:</h4>
  28. <div class="space-y-1">
  29. {% for rule in pool.access_rules %}
  30. <div class="text-sm text-gray-600 bg-gray-50 p-2 rounded">
  31. <code>{{ rule }}</code>
  32. </div>
  33. {% endfor %}
  34. </div>
  35. </div>
  36. </div>
  37. {% endfor %}
  38. </div>
  39. </div>
  40. {% endblock %}