8e13ce5b78
I had reintroduced this indacb53b8after David removed it in6bbf68a4, but now I agree we don't need it. Also, fix a CORS error when trying to redirect a user to an untenanted path after login (see https://fizzy.37signals.com/5986089/collections/2/cards/1032).
42 lines
1.8 KiB
Plaintext
42 lines
1.8 KiB
Plaintext
<% @page_title = "Create your account" %>
|
|
|
|
<% content_for :header do %>
|
|
<nav class="header">
|
|
<div class="header__actions header__actions--start"></div>
|
|
<div class="header__actions header__actions--end">
|
|
<%= link_to Launchpad.login_url(account: Account.sole), class: "btn", data: { controller: "hotkey", action: "keydown.esc@document->hotkey#click" } do %>
|
|
<span class="for-screen-reader">Sign in instead</span>
|
|
<% end %>
|
|
</div>
|
|
</nav>
|
|
<% end %>
|
|
|
|
<div class="panel shadow center">
|
|
<h1 class="margin-none-block-start margin-block-end-double">Fizzy</h1>
|
|
|
|
<%= form_with model: @user, url: join_path(params[:join_code]), class: "flex flex-column gap" do |form| %>
|
|
<div class="flex align-center gap">
|
|
<label class="flex align-center gap input input--actor">
|
|
<%= form.text_field :name, class: "input full-width", autocomplete: "name", placeholder: "Name", autofocus: true, required: true, data: { "1p-ignore": true } %>
|
|
<%= icon_tag "person", class: "txt-large" %>
|
|
</label>
|
|
</div>
|
|
<div class="flex align-center gap">
|
|
<label class="flex align-center gap input input--actor">
|
|
<%= form.email_field :email_address, class: "input full-width", autocomplete: "username", placeholder: "Email address", required: true %>
|
|
<%= icon_tag "email", class: "txt-large" %>
|
|
</label>
|
|
</div>
|
|
<div class="flex align-center gap">
|
|
<label class="flex align-center gap input input--actor">
|
|
<%= form.password_field :password, class: "input full-width", autocomplete: "new-password", placeholder: "Password", required: true, maxlength: 72 %>
|
|
<%= icon_tag "password", class: "txt-large" %>
|
|
</label>
|
|
</div>
|
|
<button type="submit" id="log_in" class="btn btn--reversed center">
|
|
<%= icon_tag "arrow-right" %>
|
|
<span>Create account</span>
|
|
</button>
|
|
<% end %>
|
|
</div>
|