54 lines
2.2 KiB
ERB
54 lines
2.2 KiB
ERB
<% content_for :title, t("auth.signup.meta_title") %>
|
|
<% content_for :meta_description, t("auth.signup.meta_description") %>
|
|
<% content_for :robots, "noindex, follow" %>
|
|
|
|
<section class="auth-page">
|
|
<h1><%= t("auth.signup.title") %></h1>
|
|
<p class="auth-lead"><%= t("auth.signup.lead") %></p>
|
|
<div class="card">
|
|
<%= form_with model: @user, url: public_signup_path do |f| %>
|
|
<%= f.label :name, t("auth.signup.name_label") %>
|
|
<%= f.text_field :name, required: true %>
|
|
<%= render "shared/input_toggle",
|
|
name: "user[email]",
|
|
id: "user_email",
|
|
label: t("auth.email"),
|
|
value: @user.email,
|
|
input_type: "email",
|
|
required: true,
|
|
autocomplete: "email" %>
|
|
<%= render "shared/input_toggle",
|
|
name: "user[password]",
|
|
id: "user_password",
|
|
label: t("auth.password"),
|
|
input_type: "text",
|
|
required: true,
|
|
minlength: 8,
|
|
autocomplete: "new-password" %>
|
|
<p class="muted" style="font-size:0.9rem;margin-top:-0.5rem"><%= t("password_policy.hint") %></p>
|
|
<%= render "shared/input_toggle",
|
|
name: "user[password_confirmation]",
|
|
id: "user_password_confirmation",
|
|
label: t("auth.password_confirmation"),
|
|
input_type: "text",
|
|
required: true,
|
|
autocomplete: "new-password" %>
|
|
<label class="legal-accept">
|
|
<%= check_box_tag :accept_terms, "1", false, required: true %>
|
|
<span class="legal-accept-text">
|
|
<%= raw t(
|
|
"auth.signup.legal_accept_html",
|
|
privacy_link: link_to(t("auth.signup.privacy_link"), public_privacy_path, target: "_blank", rel: "noopener"),
|
|
terms_link: link_to(t("auth.signup.terms_link"), public_termini_path, target: "_blank", rel: "noopener")
|
|
) %>
|
|
</span>
|
|
</label>
|
|
<p class="legal-accept-hint">
|
|
<%= t("auth.signup.legal_hint") %>
|
|
</p>
|
|
<%= f.submit t("auth.signup.submit"), class: "btn btn-primary" %>
|
|
<% end %>
|
|
<p class="auth-footer"><%= raw t("auth.signup.has_account_html", login_link: link_to(t("auth.signup.login_link"), public_login_path)) %></p>
|
|
</div>
|
|
</section>
|