rest interface: table format
[unfold.git] / rest / templates / table-resources.html
1 <thead>
2 <tr>
3         <th>
4                 Resource
5         </th>
6         <th>
7                 Location
8         </th>
9         <th>
10                 
11         </th>
12 </tr>
13 </thead>
14 <tbody>
15 {% for d in data %}
16 <tr>
17         <td>
18                 <div class="line1">{{ d.hostname|default:"" }} <span class="detail">{{ d.type|default:"" }}</span></div>
19                 <div class="line2">{{ d.hrn|default:"" }}</div>
20         </td>
21         <td>
22                 <div class="line1">{{ d.country|default:"" }}</div>
23                 <div class="hrn">{{ d.location|default:"" }}</div>
24         </td>
25         <td>
26                 <div class="hostname">{{ d.boot_state }}</div>
27                 <div class="hrn">{{ d.network_hrn }}</div>
28         </td>
29         
30 </tr>
31 {% endfor %}
32 </tbody>
33 <!-- 
34 "component_name",
35  "tags", 
36  "component_id", 
37  "interfaces", 
38  "component_manager_id",
39   "longitude", "country",
40    "exclusive", "hrn", "hardware_types",
41     "slice", "network_hrn",
42      "hostname", "urn", "x", "y", "z", 
43      "initscripts", "location", "latitude", "boot_state", "type" -->