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