diff --git a/app/views/sudo_mode/_new_modal.html.erb b/app/views/sudo_mode/_new_modal.html.erb index bc780be56..8c86436cf 100644 --- a/app/views/sudo_mode/_new_modal.html.erb +++ b/app/views/sudo_mode/_new_modal.html.erb @@ -1,4 +1,5 @@

<%= l(:label_password_required) %>

+

<%= t 'sudo_mode_new_info_html' %>

<%= form_tag({}, remote: true) do %> <%= hidden_field_tag '_method', request.request_method %> @@ -8,6 +9,7 @@

<%= password_field_tag :sudo_password, nil, size: 25 %> +
<%= link_to l(:label_password_lost), lost_password_path, :class => "lost_password" if Setting.lost_password? %>

diff --git a/app/views/sudo_mode/new.html.erb b/app/views/sudo_mode/new.html.erb index 323a4556c..6532dc4a9 100644 --- a/app/views/sudo_mode/new.html.erb +++ b/app/views/sudo_mode/new.html.erb @@ -1,4 +1,5 @@

<%= l :label_password_required %>

+

<%= t 'sudo_mode_new_info_html' %>

<%= form_tag({}, method: :post, class: 'tabular', id: 'sudo-form') do %> <%= hidden_field_tag '_method', request.request_method %> @@ -8,6 +9,7 @@

<%= password_field_tag :sudo_password, nil, size: 25 %> +
<%= link_to l(:label_password_lost), lost_password_path, :class => "lost_password" if Setting.lost_password? %>

<%= submit_tag l(:button_submit) %> diff --git a/config/locales/de.yml b/config/locales/de.yml index 181374ab8..72a510629 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -1321,3 +1321,4 @@ de: field_passwd_changed_on: Password last changed label_import_users: Import users label_days_to_html: "%{days} days up to %{date}" + sudo_mode_new_info_html: Warum das ganze? Zu Ihrem Schutz bitten wir Sie Ihr Kennwort zu bestätigen, bevor Sie sicherheitsrelevante Einstellungen ändern. diff --git a/config/locales/en.yml b/config/locales/en.yml index c3f4925cd..49f6c3bc2 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1297,3 +1297,4 @@ en: text_project_is_public_anonymous: Public projects and their contents are openly available on the network. label_import_time_entries: Import time entries label_import_users: Import users + sudo_mode_new_info_html: What's happening? You need to reconfirm your password before taking any administrative actions, this ensures your account stays protected.