document.addEventListener('DOMContentLoaded',()=>{document.querySelectorAll('a[href*="/presences/feuille?id="]').forEach(a=>{const id=new URL(a.href,location.origin).searchParams.get('id');if(!id)return;[['Documents','/public/presences/emargements?id='],['Justificatifs','/public/presences/justificatifs?id=']].forEach(([label,url])=>{const b=document.createElement('a');b.className='attendance-documents-link';b.href=url+encodeURIComponent(id);b.textContent=label;a.insertAdjacentElement('afterend',b);});});});
