forked from fixin.me/fixin.me
Fix translations and enable i18n testing
This commit is contained in:
@@ -13,9 +13,10 @@
|
||||
<div class="app-menu">
|
||||
<% if user_signed_in? %>
|
||||
<% if current_user_disguised? %>
|
||||
<%= image_button_to t(:revert), "incognito-off", revert_users_path %>
|
||||
<%= image_button_to t(".revert"), "incognito-off", revert_users_path %>
|
||||
<% else %>
|
||||
<%= image_button_to t(:sign_out), "logout", destroy_user_session_path, method: :delete %>
|
||||
<%= image_button_to t(".sign_out"), "logout", destroy_user_session_path,
|
||||
method: :delete %>
|
||||
<% end %>
|
||||
<%= image_link_to current_user.email, "account-wrench-outline",
|
||||
edit_user_registration_path, current: :hide %>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<%= tabular_form_for resource, url: user_password_path, html: { method: :put } do |f| %>
|
||||
<%= f.hidden_field :reset_password_token, label: false %>
|
||||
|
||||
<%= f.password_field :password, label: t('.new_password'),
|
||||
<%= f.password_field :password, label: t(".new_password"),
|
||||
required: true, size: 30, autofocus: true, autocomplete: "new-password",
|
||||
hint: ("(#{@minimum_password_length} characters minimum)" if @minimum_password_length) %>
|
||||
<%= f.password_field :password_confirmation, label: t('.password_confirmation'),
|
||||
<%= f.password_field :password_confirmation, label: t(".password_confirmation"),
|
||||
required: true, size: 30, autocomplete: "new-password" %>
|
||||
|
||||
<%= f.submit t('.update_password') %>
|
||||
<%= f.submit t(".update_password") %>
|
||||
<% end %>
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
<%= f.select :status, User.statuses, readonly: true %>
|
||||
|
||||
<%= f.password_field :password, size: 30, autocomplete: "off",
|
||||
hint: t('.blank_password_hint_html',
|
||||
subhint: t('.minimum_length_hint_html', count: @minimum_password_length)) %>
|
||||
hint: t(".blank_password_hint_html",
|
||||
subhint: t(".minimum_length_hint_html", count: @minimum_password_length)) %>
|
||||
<%= f.password_field :password_confirmation, size: 30, autocomplete: "off" %>
|
||||
|
||||
<%= f.submit t('.update') %>
|
||||
<%= f.submit t(".update") %>
|
||||
<% end %>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<%= f.password_field :password, required: true, size: 30, minlength: @minimum_password_length,
|
||||
autocomplete: "new-password",
|
||||
hint: ("(#{@minimum_password_length} characters minimum)" if @minimum_password_length) %>
|
||||
<%= f.password_field :password_confirmation, label: t('.password_confirmation'),
|
||||
<%= f.password_field :password_confirmation, label: t(".password_confirmation"),
|
||||
required: true, size: 30, autocomplete: "new-password" %>
|
||||
|
||||
<%= f.submit t(:register) %>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<%= f.password_field :password, required: true, size: 30, autocomplete: "current-password" %>
|
||||
|
||||
<% if devise_mapping.rememberable? %>
|
||||
<%= f.check_box :remember_me, label: t('.remember_me') %>
|
||||
<%= f.check_box :remember_me, label: t(".remember_me") %>
|
||||
<% end %>
|
||||
|
||||
<%= f.submit t(:sign_in) %>
|
||||
|
||||
Reference in New Issue
Block a user