diff --git a/public/index.html b/public/index.html index 8f7de63..7f16429 100644 --- a/public/index.html +++ b/public/index.html @@ -817,6 +817,7 @@ window.dispatchEvent(new Event('tiptap-loaded')); @@ -1315,6 +1316,7 @@ function openNew() { document.querySelectorAll('#f-perso .ms-tag').forEach(t => t.classList.remove('selected')); document.getElementById('btn-delete').style.display = 'none'; document.getElementById('btn-history-frise').style.display = 'none'; + document.getElementById('btn-rediger').style.display = 'none'; document.getElementById('card-comments-section').style.display = 'none'; document.getElementById('card-comment-list').innerHTML = ''; document.getElementById('card-comment-input').value = ''; @@ -1343,6 +1345,7 @@ function openEdit(id) { document.getElementById('btn-delete').style.display = 'block'; document.getElementById('btn-history-frise').style.display = ''; + document.getElementById('btn-rediger').style.display = ''; // Comments const comments = parseComments(r.Commentaires); @@ -1401,6 +1404,14 @@ async function deleteCard() { await loadData(); } +function goToRedaction(id) { + const scene = records.find(r => r.Id === id); + if (!scene) return; + closeModal(); + switchView('redaction'); + setTimeout(() => openScene(scene), 300); +} + async function loadData() { const [recRes, colRes] = await Promise.all([ fetch('/api/records'),