rest interface: table format
[myslice.git] / rest / templates / table-resources.html
diff --git a/rest/templates/table-resources.html b/rest/templates/table-resources.html
new file mode 100644 (file)
index 0000000..525b55d
--- /dev/null
@@ -0,0 +1,43 @@
+<thead>
+<tr>
+       <th>
+               Resource
+       </th>
+       <th>
+               Location
+       </th>
+       <th>
+               
+       </th>
+</tr>
+</thead>
+<tbody>
+{% for d in data %}
+<tr>
+       <td>
+               <div class="line1">{{ d.hostname|default:"" }} <span class="detail">{{ d.type|default:"" }}</span></div>
+               <div class="line2">{{ d.hrn|default:"" }}</div>
+       </td>
+       <td>
+               <div class="line1">{{ d.country|default:"" }}</div>
+               <div class="hrn">{{ d.location|default:"" }}</div>
+       </td>
+       <td>
+               <div class="hostname">{{ d.boot_state }}</div>
+               <div class="hrn">{{ d.network_hrn }}</div>
+       </td>
+       
+</tr>
+{% endfor %}
+</tbody>
+<!-- 
+"component_name",
+ "tags", 
+ "component_id", 
+ "interfaces", 
+ "component_manager_id",
+  "longitude", "country",
+   "exclusive", "hrn", "hardware_types",
+    "slice", "network_hrn",
+     "hostname", "urn", "x", "y", "z", 
+     "initscripts", "location", "latitude", "boot_state", "type" -->
\ No newline at end of file