-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added email base class and updated account user form
- Loading branch information
1 parent
69b5fb3
commit f3151c2
Showing
4 changed files
with
79 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Activate Your Account</title> | ||
<style> | ||
body { | ||
font-family: Arial, sans-serif; | ||
background-color: #f4f4f4; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
.container { | ||
width: 100%; | ||
max-width: 600px; | ||
margin: 0 auto; | ||
background-color: #ffffff; | ||
padding: 20px; | ||
border: 1px solid #dddddd; | ||
} | ||
h1 { | ||
color: #333333; | ||
} | ||
p { | ||
color: #666666; | ||
} | ||
a { | ||
color: #1a73e8; | ||
text-decoration: none; | ||
} | ||
.button { | ||
display: inline-block; | ||
padding: 10px 20px; | ||
background-color: #1a73e8; | ||
color: #ffffff; | ||
text-align: center; | ||
border-radius: 5px; | ||
text-decoration: none; | ||
} | ||
.button:hover { | ||
background-color: #1558b0; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<h1>Activate Your Account</h1> | ||
<p>Hi {{ user.username }},</p> | ||
<p>Thank you for signing up for our service. Please click the link below to activate your account:</p> | ||
<p> | ||
<a href="http://{{ domain }}{% url 'accounts:activate' uidb64=uid token=token %}" class="button"> | ||
Activate your account | ||
</a> | ||
</p> | ||
<p>If you did not sign up for this account, please ignore this email.</p> | ||
<p>Thank you,</p> | ||
<p>The Team</p> | ||
</div> | ||
</body> | ||
</html> | ||
{% extends "email_base.html" %} | ||
|
||
{% block title %}Activate Your Account{% endblock %} | ||
|
||
{% block content %} | ||
<h1>Activate Your Account</h1> | ||
<p>Hi {{ user.username }},</p> | ||
<p>Thank you for signing up for our service. Please click the link below to activate your account:</p> | ||
<p> | ||
<a href="http://{{ domain }}{% url 'accounts:activate' uidb64=uid token=token %}" class="button"> | ||
Activate your account | ||
</a> | ||
</p> | ||
<p>If you did not sign up for this account, please ignore this email.</p> | ||
<p>Thank you,</p> | ||
<p>The Team</p> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>{% block title %}Email{% endblock %}</title> | ||
<style> | ||
body { | ||
font-family: Arial, sans-serif; | ||
background-color: #f4f4f4; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
.container { | ||
width: 100%; | ||
max-width: 600px; | ||
margin: 0 auto; | ||
background-color: #ffffff; | ||
padding: 20px; | ||
border: 1px solid #dddddd; | ||
} | ||
h1 { | ||
color: #333333; | ||
} | ||
p { | ||
color: #666666; | ||
} | ||
a { | ||
color: #1a73e8; | ||
text-decoration: none; | ||
} | ||
.button { | ||
display: inline-block; | ||
padding: 10px 20px; | ||
background-color: #1a73e8; | ||
color: #ffffff; | ||
text-align: center; | ||
border-radius: 5px; | ||
text-decoration: none; | ||
} | ||
.button:hover { | ||
background-color: #1558b0; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
{% block content %}{% endblock %} | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters