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

<main class="wrapper">
<div class="row collapse">
  <div class="row collapse">
    <div class="columns large-8 large-centered text-center page-title">
      <h1><%= t(".sign_up") %></h1>
      <p>
        <%= t(".subtitle") %>
      </p>
      <p>
        <%= t(".already_have_an_account?") %>
        <%= link_to t(".sign_in"), new_user_session_path %>
      </p>
    </div>
  </div>

  <div class="row">
    <div class="columns large-6 medium-10 medium-centered">
      <div class="card">
        <div class="card__content">
          <%= decidim_form_for(@form, as: resource_name, url: registration_path(resource_name), html: { class: "register-form new_user" }) do |f| %>
            <%= invisible_captcha %>

            <fieldset class="text-center">
              <legend class="text-center heading5"><%= t(".sign_up_as.legend") %></legend>
              <%= f.collection_radio_buttons :sign_up_as, [["user", t(".sign_up_as.user")], ["user_group", t(".sign_up_as.user_group") ]], :first, :last %>
            </fieldset>

            <div class="user-person">
              <div class="field">
                <%= f.text_field :name, help_text: t(".username_help") %>
              </div>
            </div>

            <div class="user-person">
              <div class="field">
                <%= f.text_field :nickname, help_text: t(".nickname_help", organization: current_organization.name) %>
              </div>
            </div>

            <div class="field">
              <%= f.email_field :email %>
            </div>

            <div class="field">
              <%= f.password_field :password, autocomplete: "off" %>
            </div>

            <div class="field">
              <%= f.password_field :password_confirmation %>
            </div>

            <div class="user-group-fields">
              <div class="field">
                <%= f.text_field :user_group_name %>
              </div>

              <div class="field">
                <%= f.text_field :user_group_document_number %>
              </div>

              <div class="field">
                <%= f.text_field :user_group_phone %>
              </div>
            </div>

            <p class="lopd-text">
              <%= strip_tags(translated_attribute(terms_and_conditions_page.content)) %>
            </p>

            <fieldset>
              <div class="field">
                <%= f.check_box :newsletter, label: t(".newsletter") %>
              </div>

              <div class="field">
                <%= f.check_box :tos_agreement, label: t(".tos_agreement", link: link_to(t(".terms"), page_path("terms-and-conditions"))) %>
              </div>
            </fieldset>

            <div class="actions">
              <%= f.submit t("devise.registrations.new.sign_up"), class: "button expanded" %>
            </div>
          <% end %>
          <%= render "decidim/devise/shared/links" %>
        </div>
      </div>
    </div>
  </div>
  <%= render "decidim/devise/shared/omniauth_buttons" %>
</div>
</main><commit_msg>Revert "Override views to comply with GDPR"<commit_after><main class="wrapper">
  <div class="row collapse">
    <div class="row collapse">
      <div class="columns large-8 large-centered text-center page-title">
        <h1><%= t(".sign_up") %></h1>
        <p>
          <%= t(".subtitle") %>
        </p>
        <p>
          <%= t(".already_have_an_account?") %>
          <%= link_to t(".sign_in"), new_user_session_path %>
        </p>
      </div>
    </div>

    <div class="row">
      <div class="columns large-6 medium-10 medium-centered">
        <div class="card">
          <div class="card__content">
            <%= form_for(@form, as: resource_name, url: registration_path(resource_name), html: { class: "register-form new_user" }) do |f| %>
              <%= f.hidden_field :sign_up_as, value: "user" %>

              <div class="user-person">
                <div class="field">
                  <%= f.text_field :name, help_text: t(".username_help") %>
                </div>
              </div>

              <div class="user-person">
                <div class="field">
                  <%= f.text_field :nickname, help_text: t(".nickname_help") %>
                </div>
              </div>

              <div class="field">
                <%= f.email_field :email %>
              </div>

              <div class="field">
                <%= f.password_field :password, autocomplete: "off" %>
              </div>

              <div class="field">
                <%= f.password_field :password_confirmation %>
              </div>

              <p class="lopd-text">
                <%= strip_tags translated_attribute(terms_and_conditions_page.content) %>
              </p>

              <fieldset>
                <div class="field">
                  <%= f.check_box :newsletter, label: t(".newsletter"), checked: true %>
                </div>

                <div class="field">
                  <%= f.check_box :tos_agreement, label: t(".tos_agreement", link: link_to(t(".terms"), page_path("terms-and-conditions"))) %>
                </div>
              </fieldset>

              <div class="actions">
                <%= f.submit t("devise.registrations.new.sign_up"), class: "button expanded" %>
              </div>
            <% end %>
            <%= render "decidim/devise/shared/links" %>
          </div>
        </div>
      </div>
    </div>
    <%= render "decidim/devise/shared/omniauth_buttons" %>
  </div>
</main>

{'fraction_non_alphanumeric': 0.1703080229226361, 'fraction_numerical': 0.002328080229226361, 'mean_word_length': 1.6980676328502415, 'pattern_counts': {'":': 0, '<': 149, '<?xml version=': 0, '>': 149, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5390122', 'n_tokens_mistral': 1801, 'n_tokens_neox': 1646, 'n_words': 309}