add userDeployments to xoslib test
diff --git a/planetstack/core/xoslib/templates/xosAdmin.html b/planetstack/core/xoslib/templates/xosAdmin.html
index 9b75bce..443b654 100644
--- a/planetstack/core/xoslib/templates/xosAdmin.html
+++ b/planetstack/core/xoslib/templates/xosAdmin.html
@@ -527,7 +527,7 @@
<td><%= lastname %></td>
<td><%= phone %></td>
<td><%= user_url %></td>
- <td><%= site %></td>
+ <td><%= idToName(site,"sites","name") %></td>
</script>
<script type="text/template" id="xosAdmin-user-detail-template">
@@ -545,3 +545,37 @@
</form>
</script>
+<!-- UserDeployments -->
+
+<script type="text/template" id="xosAdmin-userDeployment-list-template">
+ <h3><%= title %></h3>
+ <table class="test-table">
+ <thead><tr>
+ <th>id</th>
+ <th>user</th>
+ <th>deployment</th>
+ <th>kuser_id</th>
+ </tr></thead>
+ <tbody></tbody>
+ </table>
+</script>
+
+
+<script type="text/template" id="xosAdmin-userDeployment-listitem-template">
+ <td class="objectLink"><%= id %></td>
+ <td><%= idToName(user,"users","username") %></td>
+ <td><%= idToName(deployment,"deployments","name") %></td>
+ <td><%= kuser_id %></td>
+</script>
+
+<script type="text/template" id="xosAdmin-userDeployment-detail-template">
+ <h3>Detail View: User</h3>
+ <form>
+ <table>
+ <tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>
+ <tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
+ <tr><td>kuser_id:</td><td><input type="text" name="kuser_id" value="<%= kuser_id %>"></td></tr>
+ <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
+ </table>
+ </form>
+</script>