-
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.
- Loading branch information
Showing
6 changed files
with
193 additions
and
191 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
<h1>Page not found</h1> | ||
<h2>Sorry, this page could not be found.</h2> | ||
<h1>Page not found</h1> | ||
<h2>Sorry, this page could not be found.</h2> | ||
{% 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
<h1>Internal server error</h1> | ||
<h2>Sorry, there seems to be an error. Please try again soon.</h2> | ||
<h1>Internal server error</h1> | ||
<h2>Sorry, there seems to be an error. Please try again soon.</h2> | ||
{% 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
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,95 +1,94 @@ | ||
{% load i18n %} | ||
|
||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html> | ||
<head> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html lang="ru"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | ||
<title>{{ email.subject }}</title> | ||
<style type="text/css"> | ||
.email { | ||
width: 100%; | ||
padding: 10px 0; | ||
margin: 0; | ||
font-family: Arial, Tahoma, Verdana, sans-serif; | ||
font-size: 18px; | ||
background: #EEE; | ||
} | ||
.email { | ||
width: 100%; | ||
padding: 10px 0; | ||
margin: 0; | ||
font-family: Arial, Tahoma, Verdana, sans-serif; | ||
font-size: 18px; | ||
background: #EEE; | ||
} | ||
|
||
.container { | ||
width: 90%; | ||
max-width: 600px; | ||
margin: 0 auto; | ||
padding: 15px 0; | ||
} | ||
.container { | ||
width: 90%; | ||
max-width: 600px; | ||
margin: 0 auto; | ||
padding: 15px 0; | ||
} | ||
|
||
h1 { | ||
margin: 0; | ||
padding: 30px; | ||
font-size: 24px; | ||
font-weight: normal; | ||
color: #FFF; | ||
background: #ff6f61; | ||
border-top-left-radius: 3px; | ||
border-top-right-radius: 3px; | ||
} | ||
h1 { | ||
margin: 0; | ||
padding: 30px; | ||
font-size: 24px; | ||
font-weight: normal; | ||
color: #FFF; | ||
background: #ff6f61; | ||
border-top-left-radius: 3px; | ||
border-top-right-radius: 3px; | ||
} | ||
|
||
.body { | ||
padding: 20px 0 10px 0; | ||
background: #FFF; | ||
border-bottom-left-radius: 3px; | ||
border-bottom-right-radius: 3px; | ||
} | ||
.body { | ||
padding: 20px 0 10px 0; | ||
background: #FFF; | ||
border-bottom-left-radius: 3px; | ||
border-bottom-right-radius: 3px; | ||
} | ||
|
||
.image { | ||
width: 90%; | ||
margin: 0 30px 10px 30px; | ||
padding-bottom: 20px; | ||
text-align: center; | ||
border-bottom: 1px solid #EEE; | ||
} | ||
.image { | ||
width: 90%; | ||
margin: 0 30px 10px 30px; | ||
padding-bottom: 20px; | ||
text-align: center; | ||
border-bottom: 1px solid #EEE; | ||
} | ||
|
||
.row { | ||
padding: 10px 30px; | ||
} | ||
.row { | ||
padding: 10px 30px; | ||
} | ||
|
||
.footer { | ||
margin: 10px 30px 0 30px; | ||
padding: 15px 0 10px; | ||
color: #999; | ||
text-align: center; | ||
font-size: 12px; | ||
border-top: 1px solid #EEE; | ||
} | ||
.footer { | ||
margin: 10px 30px 0 30px; | ||
padding: 15px 0 10px; | ||
color: #999; | ||
text-align: center; | ||
font-size: 12px; | ||
border-top: 1px solid #EEE; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
</head> | ||
<body> | ||
<div class="email"> | ||
<div class="container"> | ||
<h1>{{ email.subject }} </h1> | ||
<div class="body"> | ||
<div class="image"> | ||
<img src="cid:logo" alt="logo"/> | ||
</div> | ||
<div class="row"> | ||
<strong>{% trans 'From' %}</strong>: | ||
{% if email.name %} | ||
{{ email.name }}, {{ email.contact }} | ||
{% else %} | ||
{{ email.contact }} | ||
{% endif %} | ||
</div> | ||
<div class="row"> | ||
<strong>{% trans 'Message' %}</strong>: | ||
</div> | ||
<div class="row"> | ||
{{ email.message|safe }} | ||
</div> | ||
<div class="footer"> | ||
{% trans 'Created' %}: {{ email.created }} | ||
</div> | ||
</div> | ||
<div class="container"> | ||
<h1>{{ email.subject }} </h1> | ||
<div class="body"> | ||
<div class="image"> | ||
<img src="cid:logo" alt="logo"/> | ||
</div> | ||
<div class="row"> | ||
<strong>{% trans 'From' %}</strong>: | ||
{% if email.name %} | ||
{{ email.name }}, {{ email.contact }} | ||
{% else %} | ||
{{ email.contact }} | ||
{% endif %} | ||
</div> | ||
<div class="row"> | ||
<strong>{% trans 'Message' %}</strong>: | ||
</div> | ||
<div class="row"> | ||
{{ email.message|safe }} | ||
</div> | ||
<div class="footer"> | ||
{% trans 'Created' %}: {{ email.created }} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
{% load static i18n %} | ||
|
||
<table class="document {{ classes|join:' ' }}"> | ||
{% for item in items %} | ||
{% for item in items %} | ||
{% if forloop.counter == 1 %} | ||
<tr> | ||
{% for row in item.data %} | ||
<th>{{ row }}</th> | ||
{% endfor %} | ||
{% if item.days %} | ||
<th class="days">{% trans 'Days' %}</th> | ||
{% endif %} | ||
</tr> | ||
<tr> | ||
{% for row in item.data %} | ||
<th>{{ row }}</th> | ||
{% endfor %} | ||
{% if item.days %} | ||
<th class="days">{% trans 'Days' %}</th> | ||
{% endif %} | ||
</tr> | ||
{% else %} | ||
<tr> | ||
{% for row in item.data %} | ||
<td>{{ row }}</td> | ||
<tr> | ||
{% for row in item.data %} | ||
<td>{{ row }}</td> | ||
{% endfor %} | ||
{% if item.days %} | ||
<td class="days"> | ||
{% for key, value in item.days.items %} | ||
<span class="day {% if value %}active{% endif %}"> | ||
<label>{% trans key %}</label> | ||
</span> | ||
{% endfor %} | ||
{% if item.days %} | ||
<td class="days"> | ||
{% for key, value in item.days.items %} | ||
<span class="day {% if value %}active{% endif %}"> | ||
<label>{% trans key %}</label> | ||
</span> | ||
{% endfor %} | ||
</td> | ||
{% endif %} | ||
</tr> | ||
</td> | ||
{% endif %} | ||
</tr> | ||
{% endif %} | ||
{% endfor %} | ||
</table> | ||
{% endfor %} | ||
</table> |
Oops, something went wrong.