update
This commit is contained in:
437
backEnd/contact/templates/contact/contact_submission_email.html
Normal file
437
backEnd/contact/templates/contact/contact_submission_email.html
Normal file
@@ -0,0 +1,437 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>New Contact Form Submission - GNX</title>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #2c3e50;
|
||||
background-color: #f8f9fa;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.email-container {
|
||||
max-width: 700px;
|
||||
margin: 0 auto;
|
||||
background-color: #ffffff;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.header {
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
color: white;
|
||||
padding: 40px 30px;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.header::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
|
||||
radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
.header-content {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
font-size: 28px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 8px;
|
||||
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.header p {
|
||||
font-size: 16px;
|
||||
opacity: 0.9;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.priority-badge {
|
||||
display: inline-block;
|
||||
padding: 8px 16px;
|
||||
border-radius: 20px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.priority-urgent {
|
||||
background-color: #ff4757;
|
||||
color: white;
|
||||
box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
|
||||
}
|
||||
|
||||
.priority-high {
|
||||
background-color: #ff6b35;
|
||||
color: white;
|
||||
box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
|
||||
}
|
||||
|
||||
.priority-medium {
|
||||
background-color: #ffa726;
|
||||
color: white;
|
||||
box-shadow: 0 4px 15px rgba(255, 167, 38, 0.3);
|
||||
}
|
||||
|
||||
.priority-low {
|
||||
background-color: #66bb6a;
|
||||
color: white;
|
||||
box-shadow: 0 4px 15px rgba(102, 187, 106, 0.3);
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 40px 30px;
|
||||
}
|
||||
|
||||
.section {
|
||||
margin-bottom: 30px;
|
||||
background-color: #ffffff;
|
||||
border-radius: 12px;
|
||||
border: 1px solid #e9ecef;
|
||||
overflow: hidden;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.section:hover {
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.section-header {
|
||||
background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
|
||||
padding: 20px 25px;
|
||||
border-bottom: 1px solid #dee2e6;
|
||||
}
|
||||
|
||||
.section h3 {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #2c3e50;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.section-icon {
|
||||
font-size: 20px;
|
||||
margin-right: 12px;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.section-body {
|
||||
padding: 25px;
|
||||
}
|
||||
|
||||
.field {
|
||||
margin-bottom: 18px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.field:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.field-label {
|
||||
font-weight: 600;
|
||||
color: #495057;
|
||||
min-width: 140px;
|
||||
margin-bottom: 5px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.field-value {
|
||||
flex: 1;
|
||||
color: #2c3e50;
|
||||
font-size: 15px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.message-content {
|
||||
background-color: #f8f9fa;
|
||||
border: 1px solid #e9ecef;
|
||||
border-radius: 8px;
|
||||
padding: 20px;
|
||||
margin-top: 10px;
|
||||
font-style: italic;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.footer {
|
||||
background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
|
||||
color: white;
|
||||
padding: 30px;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.footer::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 1px;
|
||||
background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
|
||||
}
|
||||
|
||||
.footer p {
|
||||
margin-bottom: 10px;
|
||||
font-size: 14px;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.footer p:last-child {
|
||||
margin-bottom: 0;
|
||||
font-size: 12px;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.company-info {
|
||||
margin-top: 20px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.company-info strong {
|
||||
color: #ecf0f1;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
body {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.email-container {
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.header {
|
||||
padding: 30px 20px;
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 30px 20px;
|
||||
}
|
||||
|
||||
.section-body {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.field {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.field-label {
|
||||
min-width: auto;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="email-container">
|
||||
<div class="header">
|
||||
<div class="header-content">
|
||||
<h1>📧 New Contact Form Submission</h1>
|
||||
<p>GNX Software Solutions</p>
|
||||
<div class="priority-badge priority-{{ submission.priority }}">
|
||||
{{ submission.get_priority_display }} Priority
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<div class="section">
|
||||
<div class="section-header">
|
||||
<h3>
|
||||
<span class="section-icon">📋</span>
|
||||
Submission Details
|
||||
</h3>
|
||||
</div>
|
||||
<div class="section-body">
|
||||
<div class="field">
|
||||
<span class="field-label">Submission ID:</span>
|
||||
<span class="field-value"><strong>#{{ submission.id }}</strong></span>
|
||||
</div>
|
||||
<div class="field">
|
||||
<span class="field-label">Priority:</span>
|
||||
<span class="field-value">
|
||||
<span class="priority-badge priority-{{ submission.priority }}" style="font-size: 11px; padding: 4px 8px;">
|
||||
{{ submission.get_priority_display }}
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<div class="field">
|
||||
<span class="field-label">Status:</span>
|
||||
<span class="field-value">{{ submission.get_status_display }}</span>
|
||||
</div>
|
||||
<div class="field">
|
||||
<span class="field-label">Submitted:</span>
|
||||
<span class="field-value">{{ submission.created_at|date:"F d, Y \a\t g:i A" }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<div class="section-header">
|
||||
<h3>
|
||||
<span class="section-icon">👤</span>
|
||||
Contact Information
|
||||
</h3>
|
||||
</div>
|
||||
<div class="section-body">
|
||||
<div class="field">
|
||||
<span class="field-label">Name:</span>
|
||||
<span class="field-value"><strong>{{ submission.full_name }}</strong></span>
|
||||
</div>
|
||||
<div class="field">
|
||||
<span class="field-label">Email:</span>
|
||||
<span class="field-value">
|
||||
<a href="mailto:{{ submission.email }}" style="color: #667eea; text-decoration: none;">{{ submission.email }}</a>
|
||||
</span>
|
||||
</div>
|
||||
{% if submission.phone %}
|
||||
<div class="field">
|
||||
<span class="field-label">Phone:</span>
|
||||
<span class="field-value">
|
||||
<a href="tel:{{ submission.phone }}" style="color: #667eea; text-decoration: none;">{{ submission.phone }}</a>
|
||||
</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<div class="section-header">
|
||||
<h3>
|
||||
<span class="section-icon">🏢</span>
|
||||
Company Information
|
||||
</h3>
|
||||
</div>
|
||||
<div class="section-body">
|
||||
<div class="field">
|
||||
<span class="field-label">Company:</span>
|
||||
<span class="field-value"><strong>{{ submission.company }}</strong></span>
|
||||
</div>
|
||||
<div class="field">
|
||||
<span class="field-label">Job Title:</span>
|
||||
<span class="field-value">{{ submission.job_title }}</span>
|
||||
</div>
|
||||
{% if submission.industry %}
|
||||
<div class="field">
|
||||
<span class="field-label">Industry:</span>
|
||||
<span class="field-value">{{ submission.get_industry_display }}</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if submission.company_size %}
|
||||
<div class="field">
|
||||
<span class="field-label">Company Size:</span>
|
||||
<span class="field-value">{{ submission.get_company_size_display }}</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<div class="section-header">
|
||||
<h3>
|
||||
<span class="section-icon">🎯</span>
|
||||
Project Details
|
||||
</h3>
|
||||
</div>
|
||||
<div class="section-body">
|
||||
{% if submission.project_type %}
|
||||
<div class="field">
|
||||
<span class="field-label">Project Type:</span>
|
||||
<span class="field-value">{{ submission.get_project_type_display }}</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if submission.timeline %}
|
||||
<div class="field">
|
||||
<span class="field-label">Timeline:</span>
|
||||
<span class="field-value">{{ submission.get_timeline_display }}</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if submission.budget %}
|
||||
<div class="field">
|
||||
<span class="field-label">Budget:</span>
|
||||
<span class="field-value"><strong>{{ submission.get_budget_display }}</strong></span>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="field">
|
||||
<span class="field-label">Message:</span>
|
||||
<div class="message-content">
|
||||
{{ submission.message|linebreaks }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if submission.newsletter_subscription or submission.privacy_consent %}
|
||||
<div class="section">
|
||||
<div class="section-header">
|
||||
<h3>
|
||||
<span class="section-icon">✅</span>
|
||||
Preferences
|
||||
</h3>
|
||||
</div>
|
||||
<div class="section-body">
|
||||
{% if submission.newsletter_subscription %}
|
||||
<div class="field">
|
||||
<span class="field-label">Newsletter Subscription:</span>
|
||||
<span class="field-value">✅ Yes</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if submission.privacy_consent %}
|
||||
<div class="field">
|
||||
<span class="field-label">Privacy Policy Consent:</span>
|
||||
<span class="field-value">✅ Yes</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
<p>📧 This email was automatically generated from the GNX website contact form.</p>
|
||||
<p>⏰ Please respond to the customer within 24 hours as per our service commitment.</p>
|
||||
|
||||
<div class="company-info">
|
||||
<p><strong>GNX Software Solutions</strong></p>
|
||||
<p>Email: support@gnxsoft.com | Web: gnxsoft.com</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,42 @@
|
||||
NEW CONTACT FORM SUBMISSION - GNX SOFTWARE SOLUTIONS
|
||||
====================================================
|
||||
|
||||
Submission Details:
|
||||
------------------
|
||||
Submission ID: #{{ submission.id }}
|
||||
Priority: {{ submission.get_priority_display }}
|
||||
Status: {{ submission.get_status_display }}
|
||||
Submitted: {{ submission.created_at|date:"F d, Y \a\t g:i A" }}
|
||||
|
||||
Contact Information:
|
||||
-------------------
|
||||
Name: {{ submission.full_name }}
|
||||
Email: {{ submission.email }}
|
||||
{% if submission.phone %}Phone: {{ submission.phone }}{% endif %}
|
||||
|
||||
Company Information:
|
||||
-------------------
|
||||
Company: {{ submission.company }}
|
||||
Job Title: {{ submission.job_title }}
|
||||
{% if submission.industry %}Industry: {{ submission.get_industry_display }}{% endif %}
|
||||
{% if submission.company_size %}Company Size: {{ submission.get_company_size_display }}{% endif %}
|
||||
|
||||
Project Details:
|
||||
---------------
|
||||
{% if submission.project_type %}Project Type: {{ submission.get_project_type_display }}{% endif %}
|
||||
{% if submission.timeline %}Timeline: {{ submission.get_timeline_display }}{% endif %}
|
||||
{% if submission.budget %}Budget: {{ submission.get_budget_display }}{% endif %}
|
||||
|
||||
Message:
|
||||
{{ submission.message }}
|
||||
|
||||
{% if submission.newsletter_subscription or submission.privacy_consent %}
|
||||
Preferences:
|
||||
-----------
|
||||
{% if submission.newsletter_subscription %}Newsletter Subscription: Yes{% endif %}
|
||||
{% if submission.privacy_consent %}Privacy Policy Consent: Yes{% endif %}
|
||||
{% endif %}
|
||||
|
||||
---
|
||||
This email was automatically generated from the GNX website contact form.
|
||||
Please respond to the customer within 24 hours as per our service commitment.
|
||||
Reference in New Issue
Block a user