fix: Reuse function to render email preview

- Reused `supplier_rfq_mail` to render preview
- Print hid Salutation and Subject
- Completely dynamic greeting
This commit is contained in:
marination
2020-09-28 17:42:22 +05:30
parent bd36f2b94d
commit 056c86033d
4 changed files with 29 additions and 37 deletions

View File

@@ -1,11 +1,11 @@
<h4>{{_("Request for Quotation")}}</h4>
<p>{{_("Dear")}} {{ salutation if salutation else ''}} {{ supplier }},</p>
<p>{{ supplier_salutation if supplier_salutation else ''}} {{ supplier_name }},</p>
<p>{{ message }}</p>
<p>{{_("The request for quotation can be accessed by clicking on the following link")}}:</p>
<p>{{_("The Request for Quotation can be accessed by clicking on the following button")}}:</p>
<p>
<button style="border: 1px solid #15c; padding: 6px; border-radius: 5px; background-color: white;">
<a href="{{ rfq_link }}" style="color: #15c" target="_blank">Submit your Quotation</a>
<a href="{{ rfq_link }}" style="color: #15c; text-decoration:none;" target="_blank">Submit your Quotation</a>
</button>
</p><br>
@@ -14,10 +14,10 @@
{% if update_password_link %}
<div>
<p>{{_("Please click on the following link to set your new password")}}:</p>
<p>{{_("Please click on the following button to set your new password")}}:</p>
<p>
<button style="border: 1px solid #15c; padding: 4px; border-radius: 5px; background-color: white;">
<a href="{{ update_password_link }}" style="color: #15c; font-size: 12px;" target="_blank">{{_("Update Password") }}</a>
<a href="{{ update_password_link }}" style="color: #15c; font-size: 12px; text-decoration:none;" target="_blank">{{_("Update Password") }}</a>
</button>
</p>
</div>