Qualys deploy: simplifie UI = ActivationId Linux uniquement (Windows hidden, persiste backend)

This commit is contained in:
Pierre & Lumière 2026-04-15 13:14:23 +02:00
parent 55d08921f9
commit 206cc813f6

View File

@ -22,7 +22,7 @@
<h3 class="text-sm font-bold text-cyber-accent mb-3">Configuration de l'agent</h3>
<div class="grid grid-cols-1 md:grid-cols-3 gap-3">
<div>
<label class="text-xs text-gray-500 block mb-1">ActivationId Linux <span class="text-cyber-green">({{ keys_linux|length }})</span></label>
<label class="text-xs text-gray-500 block mb-1">ActivationId Linux {% if keys_linux %}<span class="text-cyber-green">({{ keys_linux|length }} keys via API)</span>{% endif %}</label>
{% if keys_linux %}
<select id="activation_id_linux" class="w-full text-xs" style="font-family:monospace">
{% for k in keys_linux %}<option value="{{ k.key }}" {% if k.key == activation_id_linux %}selected{% endif %}>{{ k.key }} — {{ k.title or '' }} ({{ k.used }} uses)</option>{% endfor %}
@ -30,15 +30,8 @@
{% else %}
<input type="text" id="activation_id_linux" value="{{ activation_id_linux }}" class="w-full text-xs" style="font-family:monospace">
{% endif %}
<label class="text-xs text-gray-500 block mb-1 mt-2">ActivationId Windows <span class="text-cyber-green">({{ keys_windows|length }})</span></label>
{% if keys_windows %}
<select id="activation_id_windows" class="w-full text-xs" style="font-family:monospace">
{% for k in keys_windows %}<option value="{{ k.key }}" {% if k.key == activation_id_windows %}selected{% endif %}>{{ k.key }} — {{ k.title or '' }} ({{ k.used }} uses)</option>{% endfor %}
</select>
{% else %}
<input type="text" id="activation_id_windows" value="{{ activation_id_windows }}" class="w-full text-xs" style="font-family:monospace">
{% endif %}
<input type="hidden" id="activation_id" value="{{ activation_id_linux }}">
<input type="hidden" id="activation_id_windows" value="{{ activation_id_windows }}">
</div>
<div>
<label class="text-xs text-gray-500 block mb-1">CustomerId</label>