Scott Baker | e41c908 | 2014-10-27 23:02:48 -0700 | [diff] [blame] | 1 | <script src="{{ STATIC_URL }}/js/vendor/underscore-min.js"></script> |
| 2 | <script src="{{ STATIC_URL }}/js/vendor/backbone.js"></script> |
| 3 | <script src="{{ STATIC_URL }}/js/vendor/backbone.syphon.js"></script> |
| 4 | <script src="{{ STATIC_URL }}/js/vendor/backbone.wreqr.js"></script> |
| 5 | <script src="{{ STATIC_URL }}/js/vendor/backbone.babysitter.js"></script> |
| 6 | <script src="{{ STATIC_URL }}/js/vendor/backbone.marionette.js"></script> |
| 7 | |
| 8 | <link rel="stylesheet" type="text/css" href="{% static 'css/test.css' %}" media="all" > |
| 9 | |
| 10 | <script src="{{ STATIC_URL }}/js/xoslib/xos-backbone.js"></script> |
| 11 | <script src="{{ STATIC_URL }}/js/test.js"></script> |
| 12 | |
| 13 | <p>This shows all of the things you can see using xosLib</p> |
| 14 | |
| 15 | <h3>Deployments</h3> |
| 16 | <div id="deploymentList"> |
| 17 | </div> |
| 18 | |
| 19 | <h3>Images</h3> |
| 20 | <div id="imageList"> |
| 21 | </div> |
| 22 | |
| 23 | <h3>Network Templates</h3> |
| 24 | <div id="networkTemplateList"> |
| 25 | </div> |
| 26 | |
| 27 | <h3>Networks</h3> |
| 28 | <div id="networkList"> |
| 29 | </div> |
| 30 | |
| 31 | <h3>Nodes</h3> |
| 32 | <div id="nodeList"> |
| 33 | </div> |
| 34 | |
| 35 | <h3>Services</h3> |
| 36 | <div id="serviceList"> |
| 37 | </div> |
| 38 | |
| 39 | <h3>Sites</h3> |
| 40 | <div id="siteList"> |
| 41 | </div> |
| 42 | |
| 43 | <h3>Slices</h3> |
| 44 | <div id="sliceList"> |
| 45 | </div> |
| 46 | |
| 47 | <h3>Slivers</h3> |
| 48 | <div id="sliverList"> |
| 49 | </div> |
| 50 | |
| 51 | <!-- Deployment --> |
| 52 | |
| 53 | <script type="text/template" id="test-deployment-list-template"> |
| 54 | <table class="test-table"> |
| 55 | <thead><tr> |
| 56 | <th>id</th> |
| 57 | <th>name</th> |
| 58 | <th>backend</th> |
| 59 | <th>admin_tenant</th> |
| 60 | <th># sites</th> |
| 61 | </tr></thead> |
| 62 | <tbody></tbody> |
| 63 | </table> |
| 64 | </script> |
| 65 | |
| 66 | |
| 67 | <script type="text/template" id="test-deployment-listitem-template"> |
| 68 | <td><%= id %></td> |
| 69 | <td><%= name %></td> |
| 70 | <td><%= backend_type %></td> |
| 71 | <td><%= admin_tenant %></td> |
| 72 | <td><%= sites.length %></td> |
| 73 | </script> |
| 74 | |
| 75 | <!-- Image --> |
| 76 | |
| 77 | <script type="text/template" id="test-image-list-template"> |
| 78 | <table class="test-table"> |
| 79 | <thead><tr> |
| 80 | <th>id</th> |
| 81 | <th>name</th> |
| 82 | <th>disk_format</th> |
| 83 | <th>container_format</th> |
| 84 | <th>path</th> |
| 85 | </tr></thead> |
| 86 | <tbody></tbody> |
| 87 | </table> |
| 88 | </script> |
| 89 | |
| 90 | |
| 91 | <script type="text/template" id="test-image-listitem-template"> |
| 92 | <td><%= id %></td> |
| 93 | <td><%= name %></td> |
| 94 | <td><%= disk_format %></td> |
| 95 | <td><%= container_format %></td> |
| 96 | <td><%= path %></td> |
| 97 | </script> |
| 98 | |
| 99 | <!-- NetworkTemplate --> |
| 100 | |
| 101 | <script type="text/template" id="test-networkTemplate-list-template"> |
| 102 | <table class="test-table"> |
| 103 | <thead><tr> |
| 104 | <th>id</th> |
| 105 | <th>name</th> |
| 106 | <th>description</th> |
| 107 | <th>visibility</th> |
| 108 | <th>translation</th> |
| 109 | <th>sharedNetworkName</th> |
| 110 | <th>sharedNetworkId</th> |
| 111 | </tr></thead> |
| 112 | <tbody></tbody> |
| 113 | </table> |
| 114 | </script> |
| 115 | |
| 116 | |
| 117 | <script type="text/template" id="test-networkTemplate-listitem-template"> |
| 118 | <td><%= id %></td> |
| 119 | <td><%= name %></td> |
| 120 | <td><%= description %></td> |
| 121 | <td><%= visibility %></td> |
| 122 | <td><%= translation %></td> |
| 123 | <td><%= sharedNetworkName %></td> |
| 124 | <td><%= sharedNetworkId %></td> |
| 125 | </script> |
| 126 | |
| 127 | <!-- Network --> |
| 128 | |
| 129 | <script type="text/template" id="test-network-list-template"> |
| 130 | <table class="test-table"> |
| 131 | <thead><tr> |
| 132 | <th>id</th> |
| 133 | <th>name</th> |
| 134 | <th>template</th> |
| 135 | <th>ports</th> |
| 136 | <th>labels</th> |
| 137 | <th>owner</th> |
| 138 | </tr></thead> |
| 139 | <tbody></tbody> |
| 140 | </table> |
| 141 | </script> |
| 142 | |
| 143 | |
| 144 | <script type="text/template" id="test-network-listitem-template"> |
| 145 | <td><%= id %></td> |
| 146 | <td><%= name %></td> |
| 147 | <td><%= template %></td> |
| 148 | <td><%= ports %></td> |
| 149 | <td><%= labels %></td> |
| 150 | <td><%= owner %></td> |
| 151 | </script> |
| 152 | |
| 153 | <!-- Node --> |
| 154 | |
| 155 | <script type="text/template" id="test-node-list-template"> |
| 156 | <table class="test-table"> |
| 157 | <thead><tr> |
| 158 | <th>id</th> |
| 159 | <th>name</th> |
| 160 | <th>site</th> |
| 161 | <th>deployment</th> |
| 162 | </tr></thead> |
| 163 | <tbody></tbody> |
| 164 | </table> |
| 165 | </script> |
| 166 | |
| 167 | |
| 168 | <script type="text/template" id="test-node-listitem-template"> |
| 169 | <td><%= id %></td> |
| 170 | <td><%= name %></td> |
| 171 | <td><%= site %></td> |
| 172 | <td><%= deployment %></td> |
| 173 | </script> |
| 174 | |
| 175 | <!-- Service --> |
| 176 | |
| 177 | <script type="text/template" id="test-service-list-template"> |
| 178 | <table class="test-table"> |
| 179 | <thead><tr> |
| 180 | <th>id</th> |
| 181 | <th>name</th> |
| 182 | <th>description</th> |
| 183 | <th>enabled</th> |
| 184 | <th>versionNumber</th> |
| 185 | <th>published</th> |
| 186 | </tr></thead> |
| 187 | <tbody></tbody> |
| 188 | </table> |
| 189 | </script> |
| 190 | |
| 191 | |
| 192 | <script type="text/template" id="test-service-listitem-template"> |
| 193 | <td><%= id %></td> |
| 194 | <td><%= name %></td> |
| 195 | <td><%= description %></td> |
| 196 | <td><%= enabled %></td> |
| 197 | <td><%= versionNumber %></td> |
| 198 | <td><%= published %></td> |
| 199 | </script> |
| 200 | |
| 201 | <!-- Site --> |
| 202 | |
| 203 | <script type="text/template" id="test-site-list-template"> |
| 204 | <table class="test-table"> |
| 205 | <thead><tr> |
| 206 | <th>id</th> |
| 207 | <th>name</th> |
| 208 | <th>url</th> |
| 209 | <th>enabled</th> |
| 210 | <th>login_base</th> |
| 211 | <th>is_public</th> |
| 212 | <th>abbreviated_name</th> |
| 213 | </tr></thead> |
| 214 | <tbody></tbody> |
| 215 | </table> |
| 216 | </script> |
| 217 | |
| 218 | |
| 219 | <script type="text/template" id="test-site-listitem-template"> |
| 220 | <td><%= id %></td> |
| 221 | <td><%= name %></td> |
| 222 | <td><%= site_url %></td> |
| 223 | <td><%= enabled %></td> |
| 224 | <td><%= login_base %></td> |
| 225 | <td><%= is_public %></td> |
| 226 | <td><%= abbreviated_name %></td> |
| 227 | </script> |
| 228 | |
| 229 | <!-- Slice --> |
| 230 | |
| 231 | <script type="text/template" id="test-slice-list-template"> |
| 232 | <table class="test-table"> |
| 233 | <thead><tr> |
| 234 | <th>id</th> |
| 235 | <th>name</th> |
| 236 | <th>enabled</th> |
| 237 | <th>omf_friendly</th> |
| 238 | <th>description</th> |
| 239 | <th>slice_url</th> |
| 240 | <th>site</th> |
| 241 | <th>max_slivers</th> |
| 242 | <th>service</th> |
| 243 | </tr></thead> |
| 244 | <tbody></tbody> |
| 245 | </table> |
| 246 | </script> |
| 247 | |
| 248 | |
| 249 | <script type="text/template" id="test-slice-listitem-template"> |
| 250 | <td><%= id %></td> |
| 251 | <td><%= name %></td> |
| 252 | <td><%= enabled %></td> |
| 253 | <td><%= omf_friendly %></td> |
| 254 | <td><%= description %></td> |
| 255 | <td><%= slice_url %></td> |
| 256 | <td><%= site %></td> |
| 257 | <td><%= max_slivers %></td> |
| 258 | <td><%= service %></td> |
| 259 | </script> |
| 260 | |
| 261 | <!-- Sliver --> |
| 262 | |
| 263 | <script type="text/template" id="test-sliver-list-template"> |
| 264 | <table class="test-table"> |
| 265 | <thead><tr> |
| 266 | <th>id</th> |
| 267 | <th>name</th> |
| 268 | <th>instance_id</th> |
| 269 | <th>instance_name</th> |
| 270 | <th>image</th> |
| 271 | <th>creator</th> |
| 272 | <th>slice</th> |
| 273 | <th>node</th> |
| 274 | <th>deploymentNetwork</th> |
| 275 | <th>flavor</th> |
| 276 | <th>userData</th> |
| 277 | </tr></thead> |
| 278 | <tbody></tbody> |
| 279 | </table> |
| 280 | </script> |
| 281 | |
| 282 | |
| 283 | <script type="text/template" id="test-sliver-listitem-template"> |
| 284 | <td><%= id %></td> |
| 285 | <td><%= name %></td> |
| 286 | <td><%= instance_id %></td> |
| 287 | <td><%= instance_name %></td> |
| 288 | <td><%= image %></td> |
| 289 | <td><%= creator %></td> |
| 290 | <td><%= slice %></td> |
| 291 | <td><%= node %></td> |
| 292 | <td><%= deploymentNetwork %></td> |
| 293 | <td><%= flavor %></td> |
| 294 | <td><%= userData %></td> |
| 295 | </script> |
| 296 | |
| 297 | </script> |
| 298 | |