From 66abec23d9bbd3a904df8088ed00ccf7506788e1 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Mon, 1 Apr 2024 15:24:43 +1100 Subject: [PATCH] Add link to photo page from admin index --- acmsite/templates/admin/index.html | 3 +++ acmsite/templates/admin/officer_photo.html | 6 ------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/acmsite/templates/admin/index.html b/acmsite/templates/admin/index.html index 6665263..290ff60 100644 --- a/acmsite/templates/admin/index.html +++ b/acmsite/templates/admin/index.html @@ -4,4 +4,7 @@

Welcome to the Officer Dashboard!

Use the navbar up top to navigate to a user dashboard, event dashboard, and bulk mail tool (when/if it works...).

+ +

Update your Officer photo here {% endblock app_content %} diff --git a/acmsite/templates/admin/officer_photo.html b/acmsite/templates/admin/officer_photo.html index ea3cdf6..26cc425 100644 --- a/acmsite/templates/admin/officer_photo.html +++ b/acmsite/templates/admin/officer_photo.html @@ -25,8 +25,6 @@ - - Download @@ -40,7 +38,6 @@ img_h = document.querySelector('.img-h'), options = document.querySelector('.options'), save = document.querySelector('.save'), cropped = document.querySelector('.cropped'), -dwn = document.querySelector('.download'), upload = document.querySelector('#file-input'), cropper = ''; @@ -95,9 +92,6 @@ save.addEventListener('click', e => { window.location = `/admin/officer/${user_id}` } }); - dwn.classList.remove('hide'); - dwn.download = 'imagename.png'; - dwn.setAttribute('href', imgSrc); }); {% endblock %}