rest interface: table format
[myslice.git] / rest / templates / table-default.html
1 {% load rest_filters %}
2 <thead>
3 <tr>
4         {% for p in properties %}
5         <th>
6                 {{ p }}
7         </th>
8         {% endfor %}
9 </tr>
10 </thead>
11 <tbody>
12 {% for d in data %}
13 <tr>
14         {% for p in properties %}
15         <td>
16                 <div class="line1">{{ d|key:p }}</div>
17         </td>
18         {% endfor %}
19 </tr>
20 {% endfor %}
21 </tbody>
22 <!-- 
23 "component_name",
24  "tags", 
25  "component_id", 
26  "interfaces", 
27  "component_manager_id",
28   "longitude", "country",
29    "exclusive", "hrn", "hardware_types",
30     "slice", "network_hrn",
31      "hostname", "urn", "x", "y", "z", 
32      "initscripts", "location", "latitude", "boot_state", "type" -->