summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-07-10 06:57:16 +0000
committerGo MAEDA <maeda@farend.jp>2022-07-10 06:57:16 +0000
commit15e444ae38a05541542104da07c5a0ed370688fa (patch)
treeea29dc061cc22a1d36c3d070addccefa3307b49d /app/views
parent675adf74bd65563faa6ab8d5a7bea207a9f8c24b (diff)
downloadredmine-15e444ae38a05541542104da07c5a0ed370688fa.tar.gz
redmine-15e444ae38a05541542104da07c5a0ed370688fa.zip
Information text on sudo password entry (#33660).
Patch by Felix Schäfer. git-svn-id: https://svn.redmine.org/redmine/trunk@21699 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/sudo_mode/_new_modal.html.erb2
-rw-r--r--app/views/sudo_mode/new.html.erb2
2 files changed, 4 insertions, 0 deletions
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 @@
<h3 class="title"><%= l(:label_password_required) %></h3>
+<p class="nodata" style="font-size: 1em;"><%= t 'sudo_mode_new_info_html' %></p>
<%= form_tag({}, remote: true) do %>
<%= hidden_field_tag '_method', request.request_method %>
@@ -8,6 +9,7 @@
<p>
<label for="sudo_password"><%= l :field_password %><span class="required">*</span></label>
<%= password_field_tag :sudo_password, nil, size: 25 %>
+ <br/><%= link_to l(:label_password_lost), lost_password_path, :class => "lost_password" if Setting.lost_password? %>
</p>
</div>
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 @@
<h2><%= l :label_password_required %></h2>
+<p class="nodata" style="font-size: 1em;"><%= t 'sudo_mode_new_info_html' %></p>
<%= form_tag({}, method: :post, class: 'tabular', id: 'sudo-form') do %>
<%= hidden_field_tag '_method', request.request_method %>
@@ -8,6 +9,7 @@
<p>
<label for="sudo_password"><%= l :field_password %><span class="required">*</span></label>
<%= password_field_tag :sudo_password, nil, size: 25 %>
+ </br><%= link_to l(:label_password_lost), lost_password_path, :class => "lost_password" if Setting.lost_password? %>
</p>
</div>
<%= submit_tag l(:button_submit) %>