Fix assignations datalist restore + intervenant list filter
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
53c393b49b
commit
e0105e7e00
@ -57,8 +57,9 @@
|
||||
<select name="rule_type" class="text-xs py-1 px-2" id="rule-type" onchange="
|
||||
var v = document.getElementById('rule-value');
|
||||
var dl = document.getElementById('values-list');
|
||||
if (this.value === 'server') { v.removeAttribute('list'); v.placeholder = 'ex: vpdsiawsus1'; dl.innerHTML = ''; }
|
||||
else { v.setAttribute('list', 'values-list'); v.placeholder = 'Sélectionner...'; }
|
||||
var opts = document.getElementById('all-options').innerHTML;
|
||||
if (this.value === 'server') { v.removeAttribute('list'); v.placeholder = 'ex: vpdsiawsus1'; v.value = ''; }
|
||||
else { v.setAttribute('list', 'values-list'); v.placeholder = 'Sélectionner...'; v.value = ''; dl.innerHTML = opts; }
|
||||
">
|
||||
<option value="domain">Domaine</option>
|
||||
<option value="app_type">Application (spécifiques)</option>
|
||||
@ -75,6 +76,11 @@
|
||||
{% for z in zones %}<option value="{{ z.name }}">{{ z.name }}</option>{% endfor %}
|
||||
{% for a in app_types %}<option value="{{ a }}">{{ a }}</option>{% endfor %}
|
||||
</datalist>
|
||||
<template id="all-options">
|
||||
{% for d in domains %}<option value="{{ d.code }}">{{ d.name }}</option>{% endfor %}
|
||||
{% for z in zones %}<option value="{{ z.name }}">{{ z.name }}</option>{% endfor %}
|
||||
{% for a in app_types %}<option value="{{ a }}">{{ a }}</option>{% endfor %}
|
||||
</template>
|
||||
</div>
|
||||
<div>
|
||||
<label class="text-xs text-gray-500">Intervenant</label>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user