summaryrefslogtreecommitdiffstats
path: root/app/views/sudo_mode/new.html.erb
blob: dee97162f84cb1255945beec40878f7f74e2fe0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<h2><%= l :label_password_required %></h2>
<%= form_tag({}, class: 'tabular', id: 'sudo-form') do %>

  <%= hidden_field_tag '_method', request.request_method %>
  <%= hash_to_hidden_fields @sudo_form.original_fields %>

  <div class="box">
    <p>
      <label for="sudo_password"><%= l :field_password %><span class="required">*</span></label>
      <%= password_field_tag :sudo_password, nil, size: 25 %>
    </p>
  </div>
  <%= submit_tag l(:button_submit) %>
<% end %>
<%= javascript_tag "$('#sudo_password').focus();" %>