mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 07:26:15 +08:00
Fix i18n
This commit is contained in:
parent
8ff4b540e2
commit
b9e81f208d
|
@ -27,6 +27,10 @@
|
|||
|
||||
.sci-input-container {
|
||||
margin-bottom: 24px;
|
||||
|
||||
.minimum-password-length {
|
||||
@include font-small;
|
||||
}
|
||||
}
|
||||
|
||||
.sign-up-button {
|
||||
|
@ -38,6 +42,10 @@
|
|||
|
||||
.linkedin-link {
|
||||
margin-right: 15px;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
.linkedin-signin-button {
|
||||
|
|
|
@ -43,6 +43,10 @@
|
|||
|
||||
.linkedin-link {
|
||||
margin-right: 15px;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
.linkedin-signin-button {
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module FormTagHelper
|
||||
def recaptcha_input_tag
|
||||
if Rails.configuration.x.enable_recaptcha
|
||||
res = "<div class='form-group sci-input-container"
|
||||
res << 'has-error' if flash[:recaptcha_error]
|
||||
res << "'>"
|
||||
res << label_tag(:recaptcha_label, 'Let us know you’re human. Enter the captcha below.')
|
||||
res << label_tag(:recaptcha_label, I18n.t('users.registrations.new.captcha_description'))
|
||||
res << recaptcha_tags
|
||||
if flash[:recaptcha_error]
|
||||
res << "<span class='help-block'>"
|
||||
|
|
|
@ -16,25 +16,25 @@
|
|||
<%= form_for(:user, as: resource_name, url: registration_path(resource_name), html: { id: "sign-up-form" } ) do |f| %>
|
||||
|
||||
<div class="form-group sci-input-container">
|
||||
<%= f.label :full_name %>
|
||||
<%= f.label :full_name, t('users.registrations.new.full_name_label') %>
|
||||
<%= f.text_field :full_name, autofocus: true, class: 'form-control sci-input-field' %>
|
||||
</div>
|
||||
|
||||
<div class="form-group sci-input-container">
|
||||
<%= f.label :email %>
|
||||
<%= f.label :email, t('users.registrations.new.email_label') %>
|
||||
<%= f.email_field :email, class: 'form-control sci-input-field' %>
|
||||
</div>
|
||||
|
||||
<div class="form-group sci-input-container">
|
||||
<%= f.label :password %>
|
||||
<%= f.label :password, t('users.registrations.new.password_label') %>
|
||||
<% if @minimum_password_length %>
|
||||
<em>(<%= @minimum_password_length %> characters minimum)</em>
|
||||
<em class="minimum-password-length"><%= t('users.registrations.new.minimum_password_length', password_length: @minimum_password_length) %></em>
|
||||
<% end %>
|
||||
<%= f.password_field :password, autocomplete: 'off', class: 'form-control sci-input-field' %>
|
||||
</div>
|
||||
|
||||
<div class="form-group sci-input-container" id="password_confirmation_form">
|
||||
<%= f.label :password_confirmation %>
|
||||
<%= f.label :password_confirmation, t('users.registrations.new.password_confirmation_label') %>
|
||||
<%= f.password_field :password_confirmation, autocomplete: 'off', class: 'form-control sci-input-field' %>
|
||||
</div>
|
||||
<% if Rails.configuration.x.new_team_on_signup %>
|
||||
|
|
|
@ -1542,7 +1542,9 @@ en:
|
|||
email_label: "E-mail"
|
||||
full_name_label: "Full name"
|
||||
password_label: "Password"
|
||||
minimum_password_length: "(%{password_length} characters minimum)"
|
||||
password_confirmation_label: "Password confirmation"
|
||||
captcha_description: "Let us know you’re human. Enter the captcha below."
|
||||
new_with_provider:
|
||||
head_title: "Complete the Sign up"
|
||||
statistics:
|
||||
|
|
Loading…
Reference in a new issue