Advertisement
Guest User

Untitled

a guest
May 21st, 2019
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.88 KB | None | 0 0
  1. {% extends "emails/base.html" %}
  2. {% load staticfiles %}
  3. {% load i18n %}
  4. {% load l10n %}
  5. {% load humanize %}
  6. {% load mathfilters %}
  7. {% block email_greeting %}
  8. <tr>
  9.     <td align="center" class="mobile" style="font-family: 'Lato', sans-serif; font-size:17px; line-height:21px; color:#ffffff;font-weight: bold;letter-spacing: normal; margin-bottom: 26px;">
  10.         Psngr
  11.     </td>
  12. </tr>
  13. <tr>
  14.     <td height="26px" style="line-height:26px; font-size:26px;">&nbsp;</td>
  15. </tr>
  16. {% endblock %}
  17.  
  18.  
  19. {% block email_body %}
  20. <!-- Start Wrapper -->
  21. <table style="max-width:640px; width: 100%;" cellpadding="0" cellspacing="0" border="0" class="wrapper">
  22.     <tr>
  23.       <td>
  24.           {% trans "Here's your code!" as titleOTP %}
  25.           {% include 'emails/_parts/mail_title_container.html' with title=titleOTP %}
  26.       </td>
  27.     </tr>
  28.     <tr>
  29.         <td align="center" bgcolor="#ffffff">
  30.             <table width="100%" cellpadding="0" cellspacing="0" border="0" class="container" bgcolor="#ffffff" align="center">
  31.                 {% trans 'You are receiving this email because there has been a sign-in attempt to your Psngr account and you have enabled 2-factor authentication. ' as subtitleStr %}
  32.                 {% trans 'If you are attempting to sign-in, please use the following code to confirm your identity: ' as subtitleStr2 %}
  33.                 {% with titleStr="Hi "|add:first_name %}
  34.                     {% include 'emails/_parts/welcome_container.html' with title=titleStr subtitle=subtitleStr subtitle2=subtitleStr2%}
  35.                 {% endwith %}
  36.             </table>
  37.             <table width="100%" cellpadding="0" cellspacing="0" border="0" class="container" bgcolor="#ffffff" align="center">
  38.               <tr>
  39.                 <td align="center">
  40.                   <div width="70%" bgcolor="#ffffff" style="margin-top: 30px; margin-bottom: 20px; align-content: center">
  41.                         <span align="center" valign="middle" style="font-family: 'Lato', sans-serif; font-size: 22px; border-radius: 6px; color: #24b646; border: 1px solid #24b646;line-height:24px;background-color: #ffffff;width: 180px;padding: 9px; margin-right: 20px;height: 100px;border-style: dashed;font-weight: bold;">
  42.                             {{otp}}
  43.                         </span>
  44.                   </div>
  45.                 </td>
  46.               </tr>
  47.           </table>
  48.           <div  align="center" style="font-family: 'Lato', sans-serif; font-size: 16px; font-weight: 500; padding-bottom: 15px; padding-top: 20px;height: 400px;">
  49.             <div align="left" style="font-family: 'Lato', sans-serif; font-size: 16px; font-weight: 500;color: #333333; margin-top: 10px;">
  50.                 <span style="margin-bottom: 10px !important;">{% trans 'Here are the details of the sign-in attempt:' %}</span><br><br>
  51.                 <span style="margin-bottom: 10px !important;">{% trans 'Date & time:' %} <strong>{{ login_details.date }} </strong></span><br>
  52.                <span style="margin-bottom: 10px !important;">{% trans 'Account:' %} <strong>{{email}}</strong></span><br>
  53.                 <span style="margin-bottom: 10px !important;">{% trans 'Location:' %} <strong>{{login_details.country_details.country_code}}</strong></span><br>
  54.                 <span style="margin-bottom: 10px !important;">{% trans 'IP address:' %} <strong>{{login_details.ip_address}}</strong></span><br>
  55.                 <span style="margin-bottom: 10px !important;">{% trans 'Browser:'%} <strong>{{login_details.browser}}</strong></span><br>
  56.             </div>
  57.             <div align="left" style="font-family: 'Lato', sans-serif; font-size: 16px; font-weight: 500;color: #333333; margin-top: 30px;">
  58.               {% trans "If this wasn't you, please reset your password. Like always, if you have any questions please respond to this email to open a support ticket." %}
  59.             </div>
  60.           </div>
  61.         </td>
  62.     </tr>
  63. </table>
  64. {% endblock %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement