<% add_decidim_page_title(t(".sign_up")) %>

<%= t(".sign_up") %>

<%= t(".subtitle") %>

<%= t(".already_have_an_account?") %> <%= link_to t(".sign_in"), new_user_session_path %>

<%= decidim_form_for(@form, as: resource_name, url: registration_path(resource_name), html: { class: "register-form new_user" }) do |f| %> <%= invisible_captcha %>
<%= t(".sign_up_as.legend") %> <%= f.collection_radio_buttons :sign_up_as, [["user", t(".sign_up_as.user")], ["user_group", t(".sign_up_as.user_group") ]], :first, :last %>
<%= f.text_field :name, help_text: t(".username_help") %>
<%= f.email_field :email %>
<%= f.password_field :password, autocomplete: "off" %>
<%= f.password_field :password_confirmation %>
<%= f.text_field :user_group_name %>
<%= f.text_field :user_group_document_number %>
<%= f.text_field :user_group_phone %>

<%= strip_tags(translated_attribute(terms_and_conditions_page.content)) %>

<%= f.check_box :newsletter_notifications, label: t(".newsletter_notifications") %>
<%= f.check_box :tos_agreement, label: t(".tos_agreement", link: link_to(t(".terms"), page_path("terms-and-conditions"))) %>
<%= f.submit t("devise.registrations.new.sign_up"), class: "button expanded" %>
<% end %> <%= render "decidim/devise/shared/links" %>
<%= render "decidim/devise/shared/omniauth_buttons" %>