Skip to content

Commit

Permalink
fix(RFQ): make "update password" and "submit quotation" buttons the s…
Browse files Browse the repository at this point in the history
…ame size (#36667)

fix(RFQ): button styling

(cherry picked from commit 552bbb1)

# Conflicts:
#	erpnext/buying/doctype/request_for_quotation/request_for_quotation.py
  • Loading branch information
barredterra authored and mergify[bot] committed Aug 17, 2023
1 parent 67c8350 commit 06e93ce
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def supplier_rfq_mail(self, data, update_password_link, rfq_link, preview=False)
)
supplier_name = (" ").join(x for x in contact_name if x) # remove any blank values

<<<<<<< HEAD
args = {
"update_password_link": update_password_link,
"message": frappe.render_template(self.message_for_supplier, doc_args),
Expand All @@ -206,6 +207,20 @@ def supplier_rfq_mail(self, data, update_password_link, rfq_link, preview=False)

subject = self.subject or _("Request for Quotation")
template = "templates/emails/request_for_quotation.html"
=======
doc_args.update(
{
"supplier": data.get("supplier"),
"supplier_name": data.get("supplier_name"),
"update_password_link": f'<a href="{update_password_link}" class="btn btn-default btn-xs" target="_blank">{_("Set Password")}</a>',
"portal_link": f'<a href="{rfq_link}" class="btn btn-default btn-xs" target="_blank"> {_("Submit your Quotation")} </a>',
"user_fullname": full_name,
}
)
email_template = frappe.get_doc("Email Template", self.email_template)
message = frappe.render_template(email_template.response_, doc_args)
subject = frappe.render_template(email_template.subject, doc_args)
>>>>>>> 552bbb1d46 (fix(RFQ): make "update password" and "submit quotation" buttons the same size (#36667))
sender = frappe.session.user not in STANDARD_USERS and frappe.session.user or None
message = frappe.get_template(template).render(args)

Expand Down

0 comments on commit 06e93ce

Please sign in to comment.