From 09c968b2a2d7ae0e1ea2864e593b397030240559 Mon Sep 17 00:00:00 2001 From: Etienne Delvarre Date: Wed, 3 Jun 2026 14:51:16 +0200 Subject: [PATCH] =?UTF-8?q?Bouton=20R=C3=A9diger=20dans=20la=20fiche=20fri?= =?UTF-8?q?se=20=E2=80=94=20lien=20direct=20vers=20l'=C3=A9diteur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- public/index.html | 11 +++++++++++ 1 file changed, 11 insertions(+) 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'),