libertarian-party/partynest

View on GitHub
app/views/users/registrations/new.html.erb

Summary

Maintainability
Test Coverage
<div class="container">
  <h1><%= translate '.sign_up' %></h1>

  <%= simple_form_for resource, as: resource_name, url: registration_path(resource_name) do |f| %>
    <%= f.error_notification %>

    <%= f.input :email,
                required: true,
                autofocus: true ,
                input_html: { autocomplete: 'email' }%>
    <%= f.input :password,
                required: true,
                hint: (translate('devise.shared.minimum_password_length', count: @minimum_password_length) if @minimum_password_length),
                input_html: { autocomplete: 'new-password' } %>
    <%= f.input :password_confirmation,
                required: true,
                input_html: { autocomplete: 'new-password' } %>

    <div class="mb-3">
      <%= recaptcha_tags %>
    </div>

    <%= f.button :submit, translate('.sign_up') %>
  <% end %>

  <%= render 'users/shared/links' %>
</div>