/usr/share/chef-server-webui/app/views/clients/_form.html.haml is in chef-server-webui 10.12.0+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | .content
.inner
- if form_for != "edit"
%div.group.form
%label.label Name
= text_field :id => "client_name", :name => "name", :class => "text_field", :value => params.has_key?(:name) ? h(params[:name]) : @client.name
%span.description The name of the Client
- if form_for == "edit"
%div.group.form
%label.label Private Key
= check_box :name => "regen_private_key", :label => "Regenerate Private Key (Existing one will no longer work!)", :value => "1"
%br/
%div.group.form
%label.label Admin
= check_box :id => "client_admin", :name => "admin", :value => "true", :label => "Whether or not the Client is an admin", :checked => @client.admin
= form(:action => form_url, :method => :post, :id => form_id, :class => 'form') do
%div.group
.actions-bar
.actions= submit submit_name, :id => submit_id, :class => 'button'
|