-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #193 from Coders-HQ/email_templates
Email templates + Assessment tab
- Loading branch information
Showing
13 changed files
with
153 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{% extends "base_without_dashboard.html" %} | ||
{% load i18n static %} | ||
|
||
{% block title %}{% block head_title %}{% endblock head_title %}{% endblock title %} | ||
|
||
{% block content %} | ||
<div class="min-h-full flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8"> | ||
<div class="max-w-md w-full space-y-8"> | ||
<div> | ||
<img class="mx-auto h-12 w-auto" src="{% static 'images/logo/CHQ-Invert.png' %}" alt="Workflow"> | ||
<h2 class="mt-6 text-center text-3xl font-extrabold text-gray-900"> | ||
{% block large_text %} | ||
{% endblock large_text %} | ||
</h2> | ||
</div> | ||
|
||
{% block inner %}{% endblock %} | ||
|
||
</div> | ||
</div> | ||
|
||
|
||
|
||
|
||
{% 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,7 @@ | ||
{% load i18n %}{% autoescape off %}{% blocktrans with site_name=current_site.name %}Hello from {{ site_name }}!{% endblocktrans %} | ||
|
||
{% block content %}{% endblock %} | ||
|
||
{% blocktrans with site_name=current_site.name site_domain=current_site.domain %}Thank you for using {{ site_name }}! | ||
{{ site_domain }}{% endblocktrans %} | ||
{% endautoescape %} |
39 changes: 39 additions & 0 deletions
39
codershq/templates/account/email/email_confirmation_message.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{% extends "account/_email.html" %} | ||
{% load i18n %} | ||
{% load account %} | ||
|
||
{% block inner %} | ||
{% user_display user as user_display %}{% blocktrans with site_name=current_site.name site_domain=current_site.domain %} | ||
<div class="flex items-center justify-center min-h-screen p-5 bg-blue-100 min-w-screen"> | ||
<div class="max-w-xl p-8 text-center text-gray-800 bg-white shadow-xl lg:max-w-3xl rounded-3xl lg:p-12"> | ||
<!-- <h3 class="text-2xl">Welcome to {{ site_domain }} {{ site_name }}!</h3> --> | ||
<h3 class="text-2xl">Welcome to CodersHQ 👋</h3> | ||
<div class="flex justify-center"> | ||
<svg xmlns="http://www.w3.org/2000/svg" class="w-24 h-24 text-green-400" fill="none" | ||
viewBox="0 0 24 24" stroke="currentColor"> | ||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1" | ||
d="M3 19v-8.93a2 2 0 01.89-1.664l7-4.666a2 2 0 012.22 0l7 4.666A2 2 0 0121 10.07V19M3 19a2 2 0 002 2h14a2 2 0 002-2M3 19l6.75-4.5M21 19l-6.75-4.5M3 10l6.75 4.5M21 10l-6.75 4.5m0 0l-1.14.76a2 2 0 01-2.22 0l-1.14-.76" /> | ||
</svg> | ||
</div> | ||
|
||
<p>{{ user_display }}, We're happy you're here. Let's get your email address verified:</p> | ||
<div class="mt-4"> | ||
|
||
<a href="{{ activate_url }}" | ||
class="inline-flex items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-500 hover:bg-blue-400 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500"> | ||
Click to Verify Email | ||
</a> | ||
|
||
|
||
<p class="mt-4 text-sm">If you’re having trouble clicking the "Verify Email Address" button, copy and paste the URL below into your web browser: | ||
<a href="#" class="text-blue-600 underline">{{ activate_url }}</a> | ||
</p> | ||
<p class="mt-4 text-sm"> | ||
If you have not used this email to signup to codershq.ae, please ignore this email. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblocktrans %} | ||
{%endblock%} | ||
|
8 changes: 0 additions & 8 deletions
8
codershq/templates/account/email/email_confirmation_message.txt
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
codershq/templates/account/email/email_confirmation_signup_message.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{% include "account/email/email_confirmation_message.html" %} |
1 change: 1 addition & 0 deletions
1
codershq/templates/account/email/email_confirmation_signup_subject.txt
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 @@ | ||
{% include "account/email/email_confirmation_subject.txt" %} |
9 changes: 9 additions & 0 deletions
9
codershq/templates/account/email/password_reset_key_message.txt
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,9 @@ | ||
{% extends "account/email/base_message.txt" %} | ||
{% load i18n %} | ||
|
||
{% block content %}{% autoescape off %}{% blocktrans %}You're receiving this e-mail because you or someone else has requested a password for your user account. | ||
It can be safely ignored if you did not request a password reset. Click the link below to reset your password.{% endblocktrans %} | ||
|
||
{{ password_reset_url }}{% if username %} | ||
|
||
{% blocktrans %}In case you forgot, your username is {{ username }}.{% endblocktrans %}{% endif %}{% endautoescape %}{% endblock %} |
4 changes: 4 additions & 0 deletions
4
codershq/templates/account/email/password_reset_key_subject.txt
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,4 @@ | ||
{% load i18n %} | ||
{% autoescape off %} | ||
{% blocktrans %}Password Reset E-mail{% endblocktrans %} | ||
{% endautoescape %} |
12 changes: 12 additions & 0 deletions
12
codershq/templates/account/email/unknown_account_message.txt
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,12 @@ | ||
{% extends "account/email/base_message.txt" %} | ||
{% load i18n %} | ||
|
||
{% block content %}{% autoescape off %}{% blocktrans %}You are receiving this e-mail because you or someone else has requested a | ||
password for your user account. However, we do not have any record of a user | ||
with email {{ email }} in our database. | ||
|
||
This mail can be safely ignored if you did not request a password reset. | ||
|
||
If it was you, you can sign up for an account using the link below.{% endblocktrans %} | ||
|
||
{{ signup_url }}{% endautoescape %}{% 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,4 @@ | ||
{% load i18n %} | ||
{% autoescape off %} | ||
{% blocktrans %}Password Reset E-mail{% endblocktrans %} | ||
{% endautoescape %} |
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,23 @@ | ||
{% extends "base.html" %} | ||
{% load static compress%} | ||
|
||
|
||
{% block navigation %} | ||
<!-- {% include "pages/nav_dark.html" %} --> | ||
{% endblock navigation %} | ||
|
||
{% block content %} | ||
|
||
|
||
|
||
<div class="card text-center" > | ||
|
||
<div class="card-body"> | ||
<br> | ||
<h1 class="card-title">Coming Soon</h1> | ||
<br> | ||
<p class="card-text">Stay tuned!</p> | ||
</div> | ||
|
||
</div> | ||
{% endblock content %} |
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