Part of MKWS-322. Change all references from mkws-widget-termlists.js to mkws-widget...
[mkws-moved-to-github.git] / examples / htdocs / templates.html
1 <html>
2   <head>
3     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4     <title>MKWS demo client</title>
5     <link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws.css" />
6     <script type="text/javascript" src="//mkws.indexdata.com/mkws-complete.js"></script>
7     <script class="mkws-template-summary" type="text/x-handlebars-template">
8       <a href="#" id="{{_id}}" onclick="{{_onclick}}">
9         <b>{{md-title}}</b>
10       </a>
11       {{#if md-title-remainder}}
12         <span>{{md-title-remainder}}</span>
13       {{/if}}
14       {{#if md-title-responsibility}}
15         <span><i>{{md-title-responsibility}}</i></span>
16       {{/if}}
17     </script>
18     <script class="mkws-template-record" type="text/x-handlebars-template">
19       <table>
20         <tr>
21           <th>Title</th>
22           <td>
23             {{md-title}}
24             {{#if md-title-remainder}}
25               ({{md-title-remainder}})
26             {{/if}}
27             {{#if md-title-responsibility}}
28               <i>{{md-title-responsibility}}</i>
29             {{/if}}
30           </td>
31         </tr>
32         {{#if md-date}}
33         <tr>
34           <th>Date</th>
35           <td>{{md-date}}</td>
36         </tr>
37         {{/if}}
38         {{#if md-author}}
39         <tr>
40           <th>Author</th>
41           <td>{{md-author}}</td>
42         </tr>
43         {{/if}}
44         {{#if md-electronic-url}}
45         <tr>
46           <th>URL</th>
47           <td>
48             {{#each md-electronic-url}}
49               <a href="{{this}}">{{this}}</a><br/>
50             {{/each}}
51           </td>
52         </tr>
53         {{/if}}
54         {{#mkws-if-any location having="md-subject"}}
55         <tr>
56           <th>Subject</th>
57           <td>
58             {{#mkws-first location having="md-subject"}}
59               {{#if md-subject}}
60                 {{md-subject}}
61               {{/if}}
62             {{/mkws-first}}
63           </td>
64         </tr>
65         {{/mkws-if-any}}
66         <tr>
67           <th>Locations</th>
68           <td>
69             {{#mkws-commaList location}}
70               {{mkws-attr "@name"}}{{/mkws-commaList}}
71           </td>
72         </tr>
73       </table>
74     </script>
75   </head>
76   <body>
77     <div class="mkws-switch"></div>
78     <div class="mkws-lang"></div>
79     <div class="mkws-search"></div>
80     <div class="mkws-results"></div>
81     <div class="mkws-targets"></div>
82     <div class="mkws-stat"></div>
83   </body>
84 </html>