Files
sure/app/views/invitations/accept_choice.html.erb
Juan José Mata 705b5a8b26 First cut of a simplified "intro" UI layout (#265)
* First cut of a simplified "intro" UI layout

* Linter

* Add guest role and intro-only access

* Fix guest role UI defaults (#940)

Use enum predicate to avoid missing role helper.

* Remove legacy user role mapping (#941)

Drop the unused user role references in role normalization
and SSO role mapping forms to avoid implying a role that
never existed.

Refs: #0

* Remove role normalization (#942)

Remove role normalization

Roles are now stored directly without legacy mappings.

* Revert role mapping logic

* Remove `normalize_role_settings`

* Remove unnecessary migration

* Make `member` the default

* Broken `.erb`

---------

Signed-off-by: Juan José Mata <juanjo.mata@gmail.com>
2026-02-09 11:09:25 +01:00

24 lines
921 B
Plaintext

<%
header_title t(".title", family: @invitation.family.name)
%>
<div class="space-y-1 mb-6 text-center">
<p class="text-secondary">
<%= t(".message",
inviter: @invitation.inviter.display_name,
role: t("invitations.new.role_#{@invitation.role}", default: @invitation.role.to_s.humanize)) %>
</p>
</div>
<div class="space-y-4">
<%= link_to new_registration_path(invitation: @invitation.token),
class: "block w-full rounded-md border border-secondary bg-container px-4 py-3 text-center text-sm font-medium text-primary hover:bg-secondary transition" do %>
<%= t(".create_account") %>
<% end %>
<%= link_to new_session_path(invitation: @invitation.token),
class: "block w-full rounded-md border border-secondary bg-container px-4 py-3 text-center text-sm font-medium text-primary hover:bg-secondary transition" do %>
<%= t(".sign_in_existing") %>
<% end %>
</div>