{% extends "base.html" %} {% block title %}Resource Pool{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

Ressourcen Pool

Verwalten Sie Domains, IPs und Telefonnummern

{% for type, data in stats.items() %}
{% if type == 'domain' %} 🌐 {% elif type == 'ipv4' %} 🖥️ {% else %} 📱 {% endif %}
{{ type|upper }}
{{ data.available }}
von {{ data.total }} verfügbar
{{ data.available_percent }}%
{% if data.allocated > 0 %}{{ data.allocated }}{% endif %}
{% if data.quarantined > 0 %}{{ data.quarantined }}{% endif %}
{% if data.available_percent < 20 %} ⚠️ Niedriger Bestand {% elif data.available_percent < 50 %} ⚡ Bestand prüfen {% else %} ✅ Gut gefüllt {% endif %}
{% endfor %}
📋 Ressourcen-Liste
{{ total }} Einträge
{% if resources %}
{% for resource in resources %} {% endfor %}
ID {% if sort_by == 'id' %} {% else %} {% endif %} Typ {% if sort_by == 'type' %} {% else %} {% endif %} Ressource {% if sort_by == 'resource' %} {% else %} {% endif %} Status {% if sort_by == 'status' %} {% else %} {% endif %} Zugewiesen an {% if sort_by == 'assigned' %} {% else %} {% endif %} Letzte Änderung {% if sort_by == 'changed' %} {% else %} {% endif %} Aktionen
#{{ resource.id }}
{% if resource.resource_type == 'domain' %} 🌐 {% elif resource.resource_type == 'ipv4' %} 🖥️ {% else %} 📱 {% endif %}
{{ resource.resource_value }}
{% if resource.status == 'available' %} ✅ Verfügbar {% elif resource.status == 'allocated' %} 🔗 Zugeteilt {% else %} ⚠️ Quarantäne {% if resource.status_changed_by %}
{{ resource.status_changed_by }}
{% endif %} {% endif %}
{% if resource.customer_name %} {% else %} - {% endif %} {% if resource.status_changed_at %}
{{ resource.status_changed_at.strftime('%d.%m.%Y') }}
{{ resource.status_changed_at.strftime('%H:%M Uhr') }}
{% else %} - {% endif %}
{% if resource.status == 'quarantine' %}
{% endif %}
{% else %}

Keine Ressourcen gefunden

Ändern Sie Ihre Filterkriterien oder fügen Sie neue Ressourcen hinzu.

{% endif %}
{% if total_pages > 1 %} {% endif %} {% if recent_activities %}
⏰ Kürzliche Aktivitäten
{% for activity in recent_activities %}
{% if activity[0] == 'created' %} {% elif activity[0] == 'allocated' %} 🔗 {% elif activity[0] == 'deallocated' %} 🔓 {% elif activity[0] == 'quarantined' %} ⚠️ {% else %} ℹ️ {% endif %}
{{ activity[4] }} ({{ activity[3] }}) - {{ activity[0] }} {% if activity[1] %} von {{ activity[1] }} {% endif %}
{{ activity[2].strftime('%d.%m.%Y %H:%M') if activity[2] else '' }}
{% endfor %}
{% endif %}
{% endblock %}