/usr/share/chef-server-webui/app/views/layout/_jsonedit.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 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | - throw_content :header_content do
= css_include_tag "jsonedit_main.css"
= js_include_tag "json.js"
= js_include_tag "yetii-min.js"
%script{:type=>"text/javascript", :src => "http://oss-chef-objects.s3.amazonaws.com/jsonedit_main.js"}
%script= "$(document).ready(function() { $$(\"jsonstr\").value = JSON.stringify(#{json}); if (BCJTEP.build()) { $$(\"results\").innerHTML = \" \"; $$(\"editortab\").className = \"show\"; $$(\"searchtab\").className = \"show\"; }});"
%div#jsoneditor
%div#treecontainer
%div#div1
%div#tabcontainer
%div#tab-container-1.tablayout
%ul#tab-container-1-nav.tablayout
%li#searchtab.noshow
%a{ :href => "#tab1"} search
%li#editortab.noshow
%a{ :href => "#tab2"} editor
%li#sourcetab
%a{ :href => "#tab3"} source
%div#tab1.tab
%table.icanhastable
%tr
%td
%span search :
%input#keyword{:type => "text"}
%input#search{:type => "button", :value => "Find"}
%tr
%td
%div#results
%div#tab2.tab
%table.icanhastable
%tr
%td
%div#add.button{:title => "Add a new attribute"}
%div#delete.button{:title => "Delete current attribute"}
%div#savedstatus{:style => "display:none;"}
%img{ :src=> "/images/jsonedit/saved.png"}
%span Saved!
%div#deletedstatus{:style => "display:none;"}
%img{ :src=> "/images/jsonedit/deleted.png"}
%span Deleted!
%td
type :
%select#jsontypes
%option Select Type
%tr
%td{:colspan => "2"}
%div#jsonnameinput
name :
%input#jsonname{:type => "text", :size=>"55", :class => ""}
%tr
%td{:colspan => "2"}
%textarea#jsonvalue{:wrap => "virtual", :cols => "55", :rows => "5", :class => ""}
%tr
%td{:colspan => "2"}
%div#jsonpath
%div#jsonmode
%tr
%td{:style => "text-align:left !important"}
%input#autodetect{:type => "checkbox", :checked=> "true"}
%label{:for => "autodetect"} Autodetect type of attribute?
%td
%input#savebutton{:type => "button", :value => "Save Attribute"}
%input#addbutton{:type => "button", :value => "Add Attribute"}
%div#tab3.tab
%div#tab-container-2.tablayout.nested
%ul#tab-container-2-nav.tablayout
%li
%a{ :href => "#tab3a" } json
%div#tab1a.tabn
%table.icanhastable
%tr
%td
%div#refresh.button{:title => "Reload JSON from Tree"}
%div#buildbutton.button{:title => "Load JSON from Source"}
%tr
%td
%textarea#jsonstr{:wrap => "virtual", :cols => "55", :rows => "10", :class => ""}
%div#console
%div#bar
%a#consolebar Error Console
%div#log
|