add user to test
diff --git a/planetstack/core/xoslib/dashboards/test.html b/planetstack/core/xoslib/dashboards/test.html
index 98cc0c1..6e9fb5d 100644
--- a/planetstack/core/xoslib/dashboards/test.html
+++ b/planetstack/core/xoslib/dashboards/test.html
@@ -48,6 +48,10 @@
<div id="sliverList">
</div>
+<h3>Users</h3>
+<div id="userList">
+</div>
+
<div id="rightSide">
<div id="errorBox">
</div>
@@ -431,5 +435,47 @@
</form>
</script>
+<!-- User -->
+
+<script type="text/template" id="test-user-list-template">
+ <table class="test-table">
+ <thead><tr>
+ <th>username</th>
+ <th>firstname</th>
+ <th>lastname</th>
+ <th>phone</th>
+ <th>user_url</th>
+ <th>site</th>
+ </tr></thead>
+ <tbody></tbody>
+ </table>
+</script>
+
+
+<script type="text/template" id="test-user-listitem-template">
+ <td><%= id %></td>
+ <td><%= username %></td>
+ <td><%= firstname %></td>
+ <td><%= lastname %></td>
+ <td><%= phone %></td>
+ <td><%= user_url %></td>
+ <td><%= site %></td>
+</script>
+
+<script type="text/template" id="test-user-detail-template">
+ <h3>Detail View: Sliver</h3>
+ <form>
+ <table>
+ <tr><td>User Name:</td><td><input type="text" name="username" value="<%= username %>"></td></tr>
+ <tr><td>First Name:</td><td><input type="text" name="firstname" value="<%= firstname %>"></td></tr>
+ <tr><td>Last Name:</td><td><input type="text" name="lastname" value="<%= lastname %>"></td></tr>
+ <tr><td>Phone:</td><td><input type="text" name="phone" value="<%= phone %>"></td></tr>
+ <tr><td>Url:</td><td><input type="text" name="user_url" value="<%= user_url %>"></td></tr>
+ <tr><td>Site:</td><td><input type="text" name="site" value="<%= site %>"></td></tr>
+ <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
+ </table>
+ </form>
+</script>
+
</script>
diff --git a/planetstack/core/xoslib/static/js/test.js b/planetstack/core/xoslib/static/js/test.js
index 10626d7..fff0df3 100644
--- a/planetstack/core/xoslib/static/js/test.js
+++ b/planetstack/core/xoslib/static/js/test.js
@@ -45,7 +45,7 @@
};
TestApp.on("start", function() {
- var objs = ['deployment', 'image', 'networkTemplate', 'network', 'node', 'service', 'site', 'slice', 'sliver'];
+ var objs = ['deployment', 'image', 'networkTemplate', 'network', 'node', 'service', 'site', 'slice', 'sliver', 'user'];
for (var index in objs) {
name = objs[index];
@@ -126,9 +126,6 @@
$('#close-detail-view').unbind().bind('click', function() {
$('#detailBox').hide();
});
-
-// $('#detailBox').hide();
-// $('#errorBox').hide();
});
$(document).ready(function(){