* Hooked "Enable" button to hidden checkbox * Hooked "Close" button to close email settings and show "Enable/Edit" button * Additional hookups * Start building generalized Modal blocks * Everything hooked up except styling and a few Qs * last of the hookups; ensure logic flow * clean up * specs to cover email auth refactor * Fix bug surfaced by Vaidehi * Incorporate PR feedback * prevent email auth disable if invite-only-mode * adjust emailAuthModal body text * Sundry improvements * Last-mile tweaks * Trying to get 3rd party auth deselect to work * delete unnecssary function * remove superfluous comment * Move inline styling into CSS file * Incorporate PR feedback * Incorporate more PR feedback * Make Confirm btn intent clearer * Add TODO comment
17 lines
1.1 KiB
Text
17 lines
1.1 KiB
Text
<div class="registration__actions-providers">
|
|
<% authentication_enabled_providers.each do |provider| %>
|
|
<a
|
|
href="<%= provider.sign_in_path(state: "navbar_basic") %>"
|
|
class="crayons-btn crayons-btn--l crayons-btn--brand-<%= provider.provider_name %> crayons-btn--icon-left whitespace-nowrap"
|
|
data-no-instant>
|
|
<%= inline_svg_tag("#{provider.provider_name}.svg", aria: true, class: "crayons-icon", title: provider.provider_name) %>
|
|
<%= params[:state] == "new-user" ? "Sign up" : "Continue" %> with <%= provider.official_name %>
|
|
</a>
|
|
<% end %>
|
|
<% if params[:state] == "new-user" && SiteConfig.allow_email_password_registration && !SiteConfig.invite_only_mode %>
|
|
<%= link_to "#{inline_svg_tag('email.svg', aria: true, class: 'crayons-icon', title: 'email')}Sign up with Email".html_safe,
|
|
request.params.merge(state: "email_signup").except("i"),
|
|
class: "crayons-btn crayons-btn--l crayons-btn--brand-email crayons-btn--icon-left whitespace-nowrap",
|
|
data: { no_instant: "" } %>
|
|
<% end %>
|
|
</div>
|