account_modified.html 165 lignes · 5954 octets
<!DOCTYPE html>
<html lang="{{ locale }}">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% if locale == "fr" %}Compte modifié{% else %}Account Modified{% endif %}</title>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f4f4f4;
        }
        .email-container {
            background-color: #ffffff;
            border-radius: 8px;
            padding: 30px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .header {
            text-align: center;
            margin-bottom: 30px;
        }
        .logo {
            font-size: 24px;
            font-weight: bold;
            color: #2563eb;
            margin-bottom: 10px;
        }
        h1 {
            color: #1f2937;
            font-size: 24px;
            margin-bottom: 20px;
        }
        .content {
            margin-bottom: 30px;
        }
        .changes-list {
            margin: 20px 0;
            padding: 15px;
            background-color: #f3f4f6;
            border-radius: 6px;
        }
        .change-item {
            margin: 10px 0;
            padding: 10px;
            background-color: #ffffff;
            border-left: 3px solid #3b82f6;
            border-radius: 4px;
        }
        .change-label {
            font-weight: 600;
            color: #1f2937;
        }
        .change-value {
            color: #6b7280;
            margin-top: 5px;
        }
        .info-box {
            margin-top: 20px;
            padding: 15px;
            background-color: #fee2e2;
            border-left: 4px solid #ef4444;
            border-radius: 4px;
            font-size: 14px;
        }
        .footer {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #e5e7eb;
            font-size: 14px;
            color: #6b7280;
            text-align: center;
        }
    </style>
</head>
<body>
    <div class="email-container">
        <div class="header">
            <div class="logo">{{ app_name }}</div>
        </div>

        <h1>
            {% if locale == "fr" %}
                Compte modifié
            {% else %}
                Account Modified
            {% endif %}
        </h1>

        <div class="content">
            {% if locale == "fr" %}
                <p>Bonjour {{ username }},</p>
                <p>Nous vous informons que les informations de votre compte <strong>{{ app_name }}</strong> ont été modifiées.</p>
                <p><strong>Date et heure de modification :</strong> {{ modified_at }}</p>
            {% else %}
                <p>Hello {{ username }},</p>
                <p>We are informing you that your <strong>{{ app_name }}</strong> account information has been modified.</p>
                <p><strong>Date and time of modification:</strong> {{ modified_at }}</p>
            {% endif %}
        </div>

        {% if !changes.is_empty() %}
        <div class="changes-list">
            {% if locale == "fr" %}
                <p style="font-weight: 600; margin-bottom: 15px;">Modifications effectuées :</p>
            {% else %}
                <p style="font-weight: 600; margin-bottom: 15px;">Changes made:</p>
            {% endif %}
            {% for change in changes %}
            <div class="change-item">
                <div class="change-label">{{ change.field }}</div>
                {% if let Some(old_val) = change.old_value %}
                <div class="change-value">
                    {% if locale == "fr" %}
                        Ancien : {{ old_val }} → Nouveau : {{ change.new_value }}
                    {% else %}
                        Old: {{ old_val }} → New: {{ change.new_value }}
                    {% endif %}
                </div>
                {% else %}
                <div class="change-value">{{ change.new_value }}</div>
                {% endif %}
            </div>
            {% endfor %}
        </div>
        {% endif %}

        <div class="info-box">
            {% if locale == "fr" %}
                <p><strong>⚠️ Sécurité :</strong></p>
                <ul style="margin: 10px 0; padding-left: 20px;">
                    <li>Si vous n'avez pas effectué ces modifications, contactez immédiatement le support technique</li>
                    <li>Vérifiez que vous pouvez toujours accéder à votre compte</li>
                    <li>Si votre email a été modifié, vérifiez que vous recevez bien les emails à la nouvelle adresse</li>
                </ul>
            {% else %}
                <p><strong>⚠️ Security:</strong></p>
                <ul style="margin: 10px 0; padding-left: 20px;">
                    <li>If you did not make these changes, contact technical support immediately</li>
                    <li>Verify that you can still access your account</li>
                    <li>If your email was changed, verify that you receive emails at the new address</li>
                </ul>
            {% endif %}
        </div>

        <div class="footer">
            {% if locale == "fr" %}
                <p>Cet email a été envoyé automatiquement pour votre sécurité.</p>
                <p>Si vous avez des questions, contactez le support technique.</p>
            {% else %}
                <p>This email was sent automatically for your security.</p>
                <p>If you have any questions, please contact technical support.</p>
            {% endif %}
            <p style="margin-top: 10px; font-size: 12px; color: #9ca3af;">
                © {{ current_year }} {{ app_name }}. Tous droits réservés.
            </p>
        </div>
    </div>
</body>
</html>