From 6a195e19c748e8ec3351d9804f1990bec1a3b723 Mon Sep 17 00:00:00 2001 From: Ayanwola Ayomide <77179231+devvspaces@users.noreply.github.com> Date: Wed, 11 Sep 2024 14:16:31 +0100 Subject: [PATCH] Fixed little js and debug --- src/assets/js/main.js | 2 + src/file.csv | 46 +++++++++++++++++-- .../mailer/email_templates/email.html | 8 ---- .../mailer/email_templates/template1.html | 10 ---- src/mailer/views.py | 1 + 5 files changed, 44 insertions(+), 23 deletions(-) diff --git a/src/assets/js/main.js b/src/assets/js/main.js index bff8a97..0dd2997 100644 --- a/src/assets/js/main.js +++ b/src/assets/js/main.js @@ -8,6 +8,8 @@ const previewCSVData = async (dataurl) => { console.log(d.columns); const email_key = document.getElementById("email_key"); + // TODO: delete previous options + d.columns.map((col) => { email_key.options[email_key.options.length] = new Option(col, col); }); diff --git a/src/file.csv b/src/file.csv index b114d91..a5fd630 100644 --- a/src/file.csv +++ b/src/file.csv @@ -1,5 +1,41 @@ -first_name,last_name,email -ayo,israel,sketcherslodge@gmail.com -jacob,john,bossdollyp@gmail.com -rita,junior,netrobepy@gmail.com -damian,boy,netrobepy1@gmail.com +email,name +fechnologies@gmail.com,ADENIYI DANIEL +hammedlawal09@gmail.com,Lawal Abdulroqeeb Gbolahan +akinwumiaminatomolola@gmail.com,Aminah Omolola Akinwumi +anoroemmanuel16@gmail.com,Emmanuel Anoro +ejalonibuoluwaseyi@gmail.com,Ejalonibu Samuel Oluwaseyi +ibrahimabdulquadri446@gmail.com,Ibrahim Abdulquadri Abiodun +snwankwo218@gmail.com,Samuel Nwankwo +hesedanu@gmail.com,Afolami Anuoluwapo +dstriker86@gmail.com,Adedeji Ifeoluwa David +davidsonoye@gmail.com,Iseoluwa Oyesanmi +akinluaolorunfunminiyi@gmail.com,Olorunfunminiyi Akinlua +davidakindolani0@gmail.com,Akindolani David oluwasegun +rabiu2993@gmail.com,Rabiu Ahmad Omotoyosi +akinleyeatanda6@gmail.com,AKINLEYE LEKAN DANIEL +alfredfaith35@gmail.com,Alfred Faith +johnsonolaiyanu@gmail.com,Olaleye Iyanu Johnson +adejuwonevidence181@gmail.com,Evidence Adejuwon +osenibunmi2023@gmail.com,Oseni Oluwabunmi +akanbiazeez117@gmail.com,Akanbi Abdulazeez Kolawole +joshuaomisanya41@gmail.com,Joshua omisanya Ayomiposi +dominioniseoluwa74@gmail.com,Oluwanimotele Dominion +lolooyin@gmail.com,Apata Oyinlade +jesukoladeisaac@gmail.com,JESUKOLADE ISAAC OLUWASEGUNFUNMI +estheroyewusi436@gmail.com,Oyewusi Esther Adedoyin +shaymah2002@gmail.com,Adeyemi shaymah oyindamola +snwankwo218@gmail.com,Samuel Nwankwo +sololadavid4@gmail.com,Solola Oluwanifemi David +nunsiomi@gmail.com,Oladepo Oluwaferanmi and Shiaki Nunsi +dan40ricky@gmail.com,James Ayomide +thejamesnick@gmail.com,Nicholas James +nunsiomi@gmail.com,Nunsi +chukwuajahsabastinedev@gmail.com,CHUKWU AJAH SABASTINE +jimijay.oj@gmail.com,Murphy Blackman +yekinirasheed2002@gmail.com,Rasheed Yekini +oluwatomisinrapheal12@gmail.com,Rapheal oluwatomisin A +akeebrasheedat2018@gmail.com,Akeeb Rasheedat Anike +osasodiasea1@gmail.com,Odiase osarumwense +ogunodemarvellous39@gmail.com,Ogunode marvellous +durallite@gmail.com,Aduragbemi ademola +oluwadamilola013@gmail.com,Osunsanwo Damilola \ No newline at end of file diff --git a/src/mailer/templates/mailer/email_templates/email.html b/src/mailer/templates/mailer/email_templates/email.html index 231df7d..1ca74d3 100644 --- a/src/mailer/templates/mailer/email_templates/email.html +++ b/src/mailer/templates/mailer/email_templates/email.html @@ -85,14 +85,6 @@
Best regards,
-Ayanwola Ayomide
-GDSC Lead
-TechFest 24 Organizing Team
- -{% endblock footer %} \ No newline at end of file diff --git a/src/mailer/views.py b/src/mailer/views.py index b866a4e..e00aca8 100644 --- a/src/mailer/views.py +++ b/src/mailer/views.py @@ -152,6 +152,7 @@ def post(self, request, **kwargs): if completed: return redirect(self.request.get_full_path()) + print(form.errors) context = self.get_context_data(form=form) return self.render_to_response(context)