mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
* Bump ruby to 2.7.8 * Bump listen to 3.5.1 (remove dependency on ruby_dep) * Bump ruby to 3.0.6 * Fix I18n.translate arguments: from hash to keyword arguments
56 lines
1.6 KiB
Plaintext
56 lines
1.6 KiB
Plaintext
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
|
|
<h2><%= t('common.forms.auth.sign_up') %></h2>
|
|
|
|
<%= render "devise/shared/error_messages", resource: resource %>
|
|
|
|
<div class="form-group">
|
|
<%= f.label :full_name, class: "sr-only" %>
|
|
<%= f.text_field :full_name,
|
|
autofocus: true,
|
|
placeholder: t('common.forms.auth.full_name'),
|
|
required: true,
|
|
class: "form-control" %>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<%= f.label :email, class: "sr-only" %>
|
|
<%= f.email_field :email,
|
|
autocomplete: "email",
|
|
placeholder: t('common.forms.auth.email'),
|
|
required: true,
|
|
class: "form-control" %>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<%= f.label :password, class: "sr-only" %>
|
|
<%= f.password_field :password,
|
|
placeholder: t('common.forms.auth.password'),
|
|
required: true,
|
|
class: "form-control" %>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<%= f.label :password_confirmation, class: "sr-only" %>
|
|
<%= f.password_field :password_confirmation,
|
|
placeholder: t('common.forms.auth.password_confirmation'),
|
|
required: true,
|
|
class: "form-control" %>
|
|
</div>
|
|
|
|
<div class="actions">
|
|
<%= f.submit t('common.forms.auth.sign_up'), class: "btn btn-dark btn-block" %>
|
|
</div>
|
|
|
|
<% if not @o_auths.blank? %>
|
|
<hr />
|
|
<% @o_auths.each do |o_auth| %>
|
|
<p>
|
|
<%= link_to t('common.forms.auth.sign_up_with', o_auth: o_auth.name),
|
|
o_auth_start_path(o_auth, reason: 'user') %>
|
|
</p>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<%= render "devise/shared/links" %>
|