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