Skip to content

Commit

Permalink
Fixed little js and debug
Browse files Browse the repository at this point in the history
  • Loading branch information
devvspaces committed Sep 11, 2024
1 parent 15e353b commit 6a195e1
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 23 deletions.
2 changes: 2 additions & 0 deletions src/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
46 changes: 41 additions & 5 deletions src/file.csv
Original file line number Diff line number Diff line change
@@ -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
8 changes: 0 additions & 8 deletions src/mailer/templates/mailer/email_templates/email.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,6 @@ <h1 id="logo"><img src="https://res.cloudinary.com/startup-grind/image/upload/c_

{% block contents %}
{% endblock contents %}

<div class="footer">

{% block footer %}

{% endblock footer %}

</div>

</div>

Expand Down
10 changes: 0 additions & 10 deletions src/mailer/templates/mailer/email_templates/template1.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,3 @@
{{ message|safe }}

{% endblock contents %}


{% block footer %}

<p>Best regards,</p>
<p>Ayanwola Ayomide</p>
<p>GDSC Lead</p>
<p>TechFest 24 Organizing Team</p>

{% endblock footer %}
1 change: 1 addition & 0 deletions src/mailer/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 6a195e1

Please sign in to comment.