2024-02-02 09:05:04 -06:00
|
|
|
<%
|
2024-04-09 16:08:58 +04:00
|
|
|
header_title t(".title")
|
2024-02-02 09:05:04 -06:00
|
|
|
%>
|
2024-09-13 17:24:19 -04:00
|
|
|
|
|
|
|
<% if self_hosted_first_login? %>
|
|
|
|
<div class="fixed inset-0 w-full h-fit bg-gray-25 p-5 border-b border-alpha-black-200 flex flex-col gap-3 items-center text-center mb-12">
|
|
|
|
<h2 class="font-bold text-xl"><%= t(".welcome_title") %></h2>
|
|
|
|
<p class="text-gray-500 text-sm"><%= t(".welcome_body") %></p>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2024-07-16 14:08:24 -04:00
|
|
|
<%= styled_form_with model: @user, url: registration_path, class: "space-y-4" do |form| %>
|
2024-04-09 16:08:58 +04:00
|
|
|
<%= form.email_field :email, autofocus: false, autocomplete: "email", required: "required", placeholder: "you@example.com", label: true %>
|
|
|
|
<%= form.password_field :password, autocomplete: "new-password", required: "required", label: true %>
|
|
|
|
<%= form.password_field :password_confirmation, autocomplete: "new-password", required: "required", label: true %>
|
2024-04-13 09:28:45 -04:00
|
|
|
<% if invite_code_required? %>
|
2024-10-09 13:17:58 -05:00
|
|
|
<%= form.text_field :invite_code, required: "required", label: true, value: params[:invite] %>
|
2024-02-02 17:49:28 -06:00
|
|
|
<% end %>
|
2024-02-09 15:29:31 +00:00
|
|
|
<%= form.submit %>
|
2024-02-02 09:05:04 -06:00
|
|
|
<% end %>
|