Skip to content

Commit

Permalink
fix: Use directly <a> and style it as button instead of using button
Browse files Browse the repository at this point in the history
Since few email servers (like outlook) strips out link in the button making them unclickable.

(cherry picked from commit a29b92f)
  • Loading branch information
surajshetty3416 authored and mergify[bot] committed May 23, 2022
1 parent ba76b64 commit 0ab9fc0
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions erpnext/templates/emails/request_for_quotation.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
<h4>{{_("Request for Quotation")}}</h4>
<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 button")}}:</p>
<p>
<button style="border: 1px solid #15c; padding: 6px; border-radius: 5px; background-color: white;">
<a href="{{ rfq_link }}" style="color: #15c; text-decoration:none;" target="_blank">Submit your Quotation</a>
</button>
</p><br>

<p>{{_("Regards")}},<br>
{{ user_fullname }}</p><br>

<br>
<a
href="{{ rfq_link }}"
class="btn btn-default btn-sm"
target="_blank">
{{ _("Submit your Quotation") }}
</a>
<br>
<br>
{% if update_password_link %}

<br>
<p>{{_("Please click on the following button to set your new password")}}:</p>
<a
href="{{ update_password_link }}"
class="btn btn-default btn-xs"
target="_blank">
{{_("Set Password") }}
</a>
<br>
<br>
{% endif %}
<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; text-decoration:none;" target="_blank">{{_("Update Password") }}</a>
</button>
{{_("Regards")}},<br>
{{ user_fullname }}
</p>

{% endif %}

0 comments on commit 0ab9fc0

Please sign in to comment.