app/views/devise/registrations/new.html.erb
<%= content_for :title, t('.title', title: current_extranet.present? ? current_extranet.to_s_in(current_language) : 'Osuny') %>
<h1 class="h4 mb-4"><%= t(".sign_up") %></h1>
<%= simple_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
<%= f.error_notification %>
<div class="row">
<div class="col-lg-6">
<%= f.input :email,
required: true,
input_html: { autocomplete: "email" } %>
<%= f.input :first_name,
required: true,
autofocus: true,
input_html: { autocomplete: "first_name" } %>
<%= f.input :last_name,
required: true,
input_html: { autocomplete: "last_name" } %>
<%= f.association :language,
required: true,
collection: Language.available_for_interface,
label_method: lambda { |l| t("languages.#{l.iso_code.to_s}") },
include_blank: :translate %>
</div>
<div class="col-lg-6">
<%= f.input :password,
as: :password_with_hints,
required: true,
allow_password_uncloaking: true,
validators: {
length: Devise.password_length.first,
uppercase_char: true,
lowercase_char: true,
numeric_char: true,
special_char: Rails.application.config.allowed_special_chars
},
input_html: { autocomplete: "new-password" } %>
<%= f.input :password_confirmation,
as: :password_with_sync,
required: true,
allow_password_uncloaking: true,
compare_with_field: :password,
input_html: { autocomplete: "new-password" } %>
<%= f.input :mobile_phone %>
<%= f.input :picture,
as: :single_deletable_file,
input_html: { accept: default_images_formats_accepted },
preview: 200,
resize: 1 %>
</div>
</div>
<%= f.button :submit, t(".sign_up"), class: 'btn btn-primary' %>
<% end %>