Skip to content

Commit 40400f7

Browse files
authored
Merge pull request #193 from Coders-HQ/email_templates
Email templates + Assessment tab
2 parents 9bc6327 + 0d502da commit 40400f7

13 files changed

+153
-8
lines changed

codershq/templates/_dashboard.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@ <h3 class="text-xl font-semibold text-gray-900 lg:text-2xl dark:text-white">
2929
<li class="my-px">
3030
<span class="flex font-medium text-sm text-gray-400 px-4 my-4 uppercase">Project</span>
3131
</li>
32+
<li class="my-px">
33+
<a href="/comingSoon2/" class="flex flex-row items-center h-12 px-4 rounded-lg text-gray-600 hover:bg-gray-100">
34+
<span class="flex items-center justify-center text-lg text-gray-400">
35+
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
36+
<path d="M15.502 1.94a.5.5 0 0 1 0 .706L14.459 3.69l-2-2L13.502.646a.5.5 0 0 1 .707 0l1.293 1.293zm-1.75 2.456-2-2L4.939 9.21a.5.5 0 0 0-.121.196l-.805 2.414a.25.25 0 0 0 .316.316l2.414-.805a.5.5 0 0 0 .196-.12l6.813-6.814z"/>
37+
<path fill-rule="evenodd" d="M1 13.5A1.5 1.5 0 0 0 2.5 15h11a1.5 1.5 0 0 0 1.5-1.5v-6a.5.5 0 0 0-1 0v6a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .5-.5H9a.5.5 0 0 0 0-1H2.5A1.5 1.5 0 0 0 1 2.5v11z"/>
38+
</svg>
39+
</span>
40+
<span class="ml-3">Assessment</span>
41+
</a>
42+
</li>
3243
<li class="my-px">
3344
<a href="/events/" class="flex flex-row items-center h-12 px-4 rounded-lg text-gray-600 hover:bg-gray-100">
3445
<span class="flex items-center justify-center text-lg text-gray-400">
@@ -229,6 +240,17 @@ <h3 class="text-xl font-semibold text-gray-900 lg:text-2xl dark:text-white">
229240
<li class="my-px">
230241
<span class="flex font-medium text-sm text-gray-400 px-4 my-4 uppercase">Project</span>
231242
</li>
243+
<li class="my-px">
244+
<a href="/comingSoon2/" class="flex flex-row items-center h-12 px-4 rounded-lg text-gray-600 hover:bg-gray-100">
245+
<span class="flex items-center justify-center text-lg text-gray-400">
246+
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
247+
<path d="M15.502 1.94a.5.5 0 0 1 0 .706L14.459 3.69l-2-2L13.502.646a.5.5 0 0 1 .707 0l1.293 1.293zm-1.75 2.456-2-2L4.939 9.21a.5.5 0 0 0-.121.196l-.805 2.414a.25.25 0 0 0 .316.316l2.414-.805a.5.5 0 0 0 .196-.12l6.813-6.814z"/>
248+
<path fill-rule="evenodd" d="M1 13.5A1.5 1.5 0 0 0 2.5 15h11a1.5 1.5 0 0 0 1.5-1.5v-6a.5.5 0 0 0-1 0v6a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .5-.5H9a.5.5 0 0 0 0-1H2.5A1.5 1.5 0 0 0 1 2.5v11z"/>
249+
</svg>
250+
</span>
251+
<span class="ml-3">Assessment</span>
252+
</a>
253+
</li>
232254
<li class="my-px">
233255
<a href="/events/" class="flex flex-row items-center h-12 px-4 rounded-lg text-gray-600 hover:bg-gray-100">
234256
<span class="flex items-center justify-center text-lg text-gray-400">
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{% extends "base_without_dashboard.html" %}
2+
{% load i18n static %}
3+
4+
{% block title %}{% block head_title %}{% endblock head_title %}{% endblock title %}
5+
6+
{% block content %}
7+
<div class="min-h-full flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8">
8+
<div class="max-w-md w-full space-y-8">
9+
<div>
10+
<img class="mx-auto h-12 w-auto" src="{% static 'images/logo/CHQ-Invert.png' %}" alt="Workflow">
11+
<h2 class="mt-6 text-center text-3xl font-extrabold text-gray-900">
12+
{% block large_text %}
13+
{% endblock large_text %}
14+
</h2>
15+
</div>
16+
17+
{% block inner %}{% endblock %}
18+
19+
</div>
20+
</div>
21+
22+
23+
24+
25+
{% endblock %}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{% load i18n %}{% autoescape off %}{% blocktrans with site_name=current_site.name %}Hello from {{ site_name }}!{% endblocktrans %}
2+
3+
{% block content %}{% endblock %}
4+
5+
{% blocktrans with site_name=current_site.name site_domain=current_site.domain %}Thank you for using {{ site_name }}!
6+
{{ site_domain }}{% endblocktrans %}
7+
{% endautoescape %}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{% extends "account/_email.html" %}
2+
{% load i18n %}
3+
{% load account %}
4+
5+
{% block inner %}
6+
{% user_display user as user_display %}{% blocktrans with site_name=current_site.name site_domain=current_site.domain %}
7+
<div class="flex items-center justify-center min-h-screen p-5 bg-blue-100 min-w-screen">
8+
<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">
9+
<!-- <h3 class="text-2xl">Welcome to {{ site_domain }} {{ site_name }}!</h3> -->
10+
<h3 class="text-2xl">Welcome to CodersHQ 👋</h3>
11+
<div class="flex justify-center">
12+
<svg xmlns="http://www.w3.org/2000/svg" class="w-24 h-24 text-green-400" fill="none"
13+
viewBox="0 0 24 24" stroke="currentColor">
14+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1"
15+
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" />
16+
</svg>
17+
</div>
18+
19+
<p>{{ user_display }}, We're happy you're here. Let's get your email address verified:</p>
20+
<div class="mt-4">
21+
22+
<a href="{{ activate_url }}"
23+
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">
24+
Click to Verify Email
25+
</a>
26+
27+
28+
<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:
29+
<a href="#" class="text-blue-600 underline">{{ activate_url }}</a>
30+
</p>
31+
<p class="mt-4 text-sm">
32+
If you have not used this email to signup to codershq.ae, please ignore this email.
33+
</p>
34+
</div>
35+
</div>
36+
</div>
37+
{% endblocktrans %}
38+
{%endblock%}
39+

codershq/templates/account/email/email_confirmation_message.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{% include "account/email/email_confirmation_message.html" %}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{% include "account/email/email_confirmation_subject.txt" %}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{% extends "account/email/base_message.txt" %}
2+
{% load i18n %}
3+
4+
{% block content %}{% autoescape off %}{% blocktrans %}You're receiving this e-mail because you or someone else has requested a password for your user account.
5+
It can be safely ignored if you did not request a password reset. Click the link below to reset your password.{% endblocktrans %}
6+
7+
{{ password_reset_url }}{% if username %}
8+
9+
{% blocktrans %}In case you forgot, your username is {{ username }}.{% endblocktrans %}{% endif %}{% endautoescape %}{% endblock %}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{% load i18n %}
2+
{% autoescape off %}
3+
{% blocktrans %}Password Reset E-mail{% endblocktrans %}
4+
{% endautoescape %}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{% extends "account/email/base_message.txt" %}
2+
{% load i18n %}
3+
4+
{% block content %}{% autoescape off %}{% blocktrans %}You are receiving this e-mail because you or someone else has requested a
5+
password for your user account. However, we do not have any record of a user
6+
with email {{ email }} in our database.
7+
8+
This mail can be safely ignored if you did not request a password reset.
9+
10+
If it was you, you can sign up for an account using the link below.{% endblocktrans %}
11+
12+
{{ signup_url }}{% endautoescape %}{% endblock %}

0 commit comments

Comments
 (0)