Files
fizzy/app/views/sessions/menus/show.html.erb
T
Jorge Manrubia 4e09352c09 Bring simple signup flow from the fizzy-saas gem
We skip the QB code and we fill external account ids automatically on creation with a sequence

See:
https://github.com/basecamp/fizzy-saas/pull/7
2025-11-28 15:53:58 +01:00

38 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<% @page_title = "Choose an account" %>
<% cache [ Current.identity, @accounts ] do %>
<div
class="panel panel--centered flex flex-column gap-half"
style="--popup-icon-size: 24px; --popup-item-padding-inline: 0.5rem;"
>
<% if @accounts.any? %>
<h1 class="txt-x-large font-weight-black margin-none">
Your Fizzy accounts
</h1>
<menu class="popup__list pad border-radius border">
<% @accounts.each do |account| %>
<li class="popup__item txt-medium">
<%= icon_tag "marker", class: "popup__icon" %>
<%= link_to landing_url(script_name: account.slug), class: "btn overflow-ellipsis fill-transparent popup__btn" do %>
<strong><%= account.name %></strong>
<% end %>
</li>
<% end %>
</menu>
<% else %>
<h1 class="txt-x-large font-weight-black margin-none">Hmm...</h1>
<p class="margin-none-block-start">You dont have any Fizzy accounts.</p>
<% end %>
<div class="margin-block-start">
<%= link_to new_signup_completion_path, class: "btn btn--plain txt-link center txt-small", data: { turbo_prefetch: false } do %>
<span>Sign up for a new Fizzy account</span>
<% end %>
</div>
</div>
<% end %>
<% content_for :footer do %>
<%= render "sessions/footer" %>
<% end %>