Ajoute un sélecteur de tags existants dans la modale fiche idée

This commit is contained in:
Etienne Delvarre
2026-06-22 18:12:17 +02:00
parent 16f8bf578c
commit 04b436a9c7
3 changed files with 43 additions and 3 deletions
+4 -1
View File
@@ -256,7 +256,10 @@ window.dispatchEvent(new Event('tiptap-loaded'));
<div class="field">
<label>Tags</label>
<div class="tags-input-container" id="f-tags">
<input type="text" class="tags-input" id="f-tags-input" placeholder="Ajouter un tag..." onkeydown="if(event.key==='Enter'){event.preventDefault();addTag()}">
<input type="text" class="tags-input" id="f-tags-input" placeholder="Ajouter un tag..." onkeydown="if(event.key==='Enter'){event.preventDefault();addTag()}" oninput="updateTagSuggestions()" onfocus="updateTagSuggestions()">
<select class="tags-existing-select" id="f-tags-select" onchange="addExistingTag()">
<option value="">Tags existants...</option>
</select>
</div>
</div>
<div class="field-row">