mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-02 21:57:17 +00:00
Add LoginModal as controller + connect action to open login modal
(cherry picked from commit 92cd918e5a)
This commit is contained in:
committed by
Matt-Yorkley
parent
8a1fcf8a62
commit
46de90155b
@@ -1,12 +1,12 @@
|
||||
.content{ "darker-background" => true }
|
||||
.row.footer-pad
|
||||
.small-12.columns
|
||||
.small-12.columns{ "data-controller": "login-modal" }
|
||||
%strong
|
||||
= t '.require_customer_login'
|
||||
%p
|
||||
- if spree_current_user.nil?
|
||||
%p
|
||||
= t('.require_login_html', login: ('<a auth="login">' + t('.login') + '</a>').html_safe, signup: ('<a auth="signup">' + t('.signup') + '</a>').html_safe)
|
||||
= t('.require_login_html', login: ('<a auth="login" data-action="click->login-modal#call">' + t('.login') + '</a>').html_safe, signup: ('<a auth="signup" data-action="click->login-modal#call">' + t('.signup') + '</a>').html_safe)
|
||||
%p
|
||||
= t('.require_login_2_html', contact: link_to(t('.contact'), '#contact'), enterprise: current_distributor.name)
|
||||
- else
|
||||
|
||||
Reference in New Issue
Block a user