You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
2.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>New Ticket Update</title>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
margin: 0;
padding: 0;
background-color: #f9f9f9;
text-align: center;
}
.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h2 {
color: #20336b;
}
p {
color: #374a7a;
}
.btn {
display: inline-block;
padding: 10px 20px;
background-color: #20336b;
color: #ffffff;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s ease;
}
.btn:hover {
background-color: #374a7a;
}
</style>
</head>
<body>
<div class="container">
<h2>New Ticket Update for: {{update.ticket.title}}</h2>
<p>Hello {{user.first_name}},</p>
{% if update.added_by.id == user.id %}
<p>You added a new ticket update with the following details:</p>
{% else %}
<p>A new ticket update has been added by {{update.added_by.first_name}} {{update.added_by.last_name}} with the following details:</p>
{% endif %}
<p><strong>Ticket:</strong> {{ update.ticket.title }}</p>
<p><strong>Regarding:</strong>
{% if not update.ticket.project and not update.ticket.product %}
{{ update.ticket.regarding }}
{% elif update.ticket.product %}
{{ update.ticket.product }}
{% elif update.ticket.project %}
{{ update.ticket.project }}
{% endif %}</p>
<p><strong>Description:</strong> {{ update.description|safe }}</p>
<p><strong>Added By:</strong> {{update.added_by}} {{update.added_by}}</p>
<p><strong>Date:</strong> {{ update.date_added }}</p>
<p><a class="btn" href="https://osina.ositcom.com/tickets/{{update.ticket.ticket_number}}/">View Update</a></p>
<p>Regards,<br>The Ositcom Team</p>
</div>
</body>
</html>