diff options
Diffstat (limited to 'app/views/sudo_mode/_new_modal.html.erb')
-rw-r--r-- | app/views/sudo_mode/_new_modal.html.erb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/views/sudo_mode/_new_modal.html.erb b/app/views/sudo_mode/_new_modal.html.erb new file mode 100644 index 000000000..f63c1a427 --- /dev/null +++ b/app/views/sudo_mode/_new_modal.html.erb @@ -0,0 +1,19 @@ +<h3 class="title"><%= l(:label_password_required) %></h3> +<%= form_tag({}, remote: true) do %> + + <%= hidden_field_tag '_method', request.request_method %> + <%= hash_to_hidden_fields @sudo_form.original_fields %> + <%= render_flash_messages %> + <div class="box tabular"> + <p> + <label for="sudo_password"><%= l :field_password %><span class="required">*</span></label> + <%= password_field_tag :sudo_password, nil, size: 25 %> + </p> + </div> + + <p class="buttons"> + <%= submit_tag l(:button_confirm_password), onclick: "hideModal(this);" %> + <%= submit_tag l(:button_cancel), name: nil, onclick: "hideModal(this);", type: 'button' %> + </p> +<% end %> + |