Add data-action=tabs-and-panels

This commit is contained in:
Dusan Orlovic
2023-11-09 09:37:29 +01:00
parent 97985dbe8f
commit ba7ffc25fe

View File

@@ -8,6 +8,6 @@
%p
= t('.require_login_link_html', login: ('<a data-action="click->login-modal#call">' + t('.login') + '</a>').html_safe)
%p
= t('.require_login_2_html', contact: link_to(t('.contact'), '#contact'), enterprise: current_distributor.name)
= t('.require_login_2_html', contact: link_to(t('.contact'), '#contact_panel', data: { action: "tabs-and-panels#changeActivePanel tabs-and-panels#changeActiveTab", "tabs-and-panels-target": "tab" }, id: "contact"), enterprise: current_distributor.name)
- else
= t('.require_customer_html', contact: link_to(t('.contact'), '#contact'), enterprise: current_distributor.name)
= t('.require_customer_html', contact: link_to(t('.contact'), '#contact_panel', data: { action: "tabs-and-panels#changeActivePanel tabs-and-panels#changeActiveTab", "tabs-and-panels-target": "tab" }, id: "contact"), enterprise: current_distributor.name)