Jeremy Kerr | 9b0e0ba | 2015-09-14 21:49:21 +0800 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <link href="res/style.css" rel="stylesheet" type="text/css" /> |
| 5 | <link href="res/jstree.style.css" rel="stylesheet" type="text/css" /> |
| 6 | <script type="text/javascript" src="res/jquery.min.js"></script> |
| 7 | <script type="text/javascript" src="res/jstree.min.js"></script> |
| 8 | <script type="text/javascript" src="res/jsrender.min.js"></script> |
| 9 | <script type="text/javascript" src="res/dbus.js"></script> |
| 10 | </head> |
| 11 | <body> |
| 12 | |
| 13 | <div> |
| 14 | Bus: <select id="bus"></select> |
| 15 | </div> |
| 16 | |
| 17 | <div id="container"></div> |
| 18 | |
| 19 | <script id="method-call-ui-template" type="text/x-jsrender"> |
| 20 | <div id="method-call-ui"> |
| 21 | <form method="POST" action="{{:method.uri}}"> |
| 22 | <input type="hidden" name="argN" value="{{:method.nargs}}"/> |
| 23 | <pre>{{:method.uri}}</pre> |
| 24 | <table> |
| 25 | {{for in_args}} |
| 26 | <tr> |
| 27 | <th>{{:type}}</th> |
| 28 | <td><input name="arg{{:idx}}"/></td> |
| 29 | </tr> |
| 30 | {{/for}} |
| 31 | <tr> |
| 32 | <th/> |
| 33 | <td><input type="submit" value="run"></td> |
| 34 | </table> |
| 35 | </form> |
| 36 | <pre id="method-call-ui-result"></pre> |
| 37 | </div> |
| 38 | </script> |
| 39 | </body> |
| 40 | </html> |