From 0905290f9b6b27a8b49c3e44244f5953aea3475f Mon Sep 17 00:00:00 2001 From: root Date: Sat, 25 Jul 2026 09:45:27 +0000 Subject: [PATCH] refactor: merge Upload CV into Candidates page with toggle button --- static/app.js | 7 ++++++- static/index.html | 31 +++++++++++++++---------------- 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/static/app.js b/static/app.js index f400431..6a4ed6f 100644 --- a/static/app.js +++ b/static/app.js @@ -177,8 +177,13 @@ async function deleteCandidate(id) { } // ============================================================ -// UPLOAD +// UPLOAD (inline on Candidates page) // ============================================================ +function showUploadZone() { + const area = document.getElementById('candidate-upload-area'); + area.style.display = area.style.display === 'none' ? 'block' : 'none'; +} + const uploadZone = document.getElementById('upload-zone'); uploadZone?.addEventListener('dragover', e => { e.preventDefault(); uploadZone.classList.add('dragover'); }); uploadZone?.addEventListener('dragleave', () => uploadZone.classList.remove('dragover')); diff --git a/static/index.html b/static/index.html index a4300b2..104a031 100644 --- a/static/index.html +++ b/static/index.html @@ -18,7 +18,6 @@