add btn-xos-detail class to all save buttons in detail views
diff --git a/planetstack/core/xoslib/templates/xosAdmin.html b/planetstack/core/xoslib/templates/xosAdmin.html
index 0b62bfa..8e79904 100644
--- a/planetstack/core/xoslib/templates/xosAdmin.html
+++ b/planetstack/core/xoslib/templates/xosAdmin.html
@@ -31,6 +31,10 @@
</tr>
</script>
+<script type="text/template" id="xos-status-template">
+ <%= what %>: [<%= success %>] <%= statusText %> (<%= status %>)
+</script>
+
<script type="text/template" id="xos-tabs-template">
<ul class="xos-nav-list">
<% _.each(tabs, function(tab) { %>
@@ -84,15 +88,15 @@
<script type="text/template" id="xosAdmin-deployment-detail-template">
<h3 class="xos-detail-title">Detail View: Deployment</h3>
- <form>
+ <form>
<table>
<tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
<tr><td>Backend:</td><td><input type="text" name="backend_type" value="<%= backend_type %>"></td></tr>
<tr><td>Admin Tenant:</td><td><input type="text" name="admin_tenant" value="<%= admin_tenant %>"></td></tr>
- <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
+ <tr><td colspan=2><button class="btn js-submit btn-xos-detail">Save</button></td></tr>
</table>
</form>
-</script>
+</script>
<!-- Image -->
@@ -125,7 +129,7 @@
<tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
<tr><td>Disk Format:</td><td><input type="text" name="backend_type" value="<%= disk_format %>"></td></tr>
<tr><td>Container Format:</td><td><input type="text" name="admin_tenant" value="<%= container_format %>"></td></tr>
- <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
+ <tr><td colspan=2><button class="btn js-submit btn-xos-detail">Save</button></td></tr>
</table>
</form>
</script>
@@ -169,7 +173,7 @@
<tr><td>Translation:</td><td><input type="text" name="translation" value="<%= translation %>"></td></tr>
<tr><td>Shared Network Name:</td><td><input type="text" name="sharedNetworkName" value="<%= sharedNetworkName %>"></td></tr>
<tr><td>Shared Network Id:</td><td><input type="text" name="sharedNetworkId" value="<%= sharedNetworkId %>"></td></tr>
- <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
+ <tr><td colspan=2><button class="btn js-submit btn-xos-detail">Save</button></td></tr>
</table>
</form>
</script>
@@ -209,7 +213,7 @@
<tr><td>Ports:</td><td><input type="text" name="ports" value="<%= ports %>"></td></tr>
<tr><td>Labels:</td><td><input type="text" name="labels" value="<%= labels %>"></td></tr>
<tr><td>Owner:</td><td><%= idToSelect("owner",owner,"slices","name") %></td></tr>
- <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
+ <tr><td colspan=2><button class="btn js-submit btn-xos-detail">Save</button></td></tr>
</table>
</form>
</script>
@@ -246,7 +250,7 @@
<tr><td>Sliver:</td><td><input type="text" name="sliver" value="<%= sliver %>"></td></tr>
<tr><td>Ip:</td><td><input type="text" name="ip" value="<%= ip %>"></td></tr>
<tr><td>Port_id:</td><td><input type="text" name="port_id" value="<%= port_id %>"></td></tr>
- <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
+ <tr><td colspan=2><button class="btn js-submit btn-xos-detail">Save</button></td></tr>
</table>
</form>
</script>
@@ -280,7 +284,7 @@
<tr><td>Network:</td><td><input type="text" name="network" value="<%= network %>"></td></tr>
<tr><td>Sliver:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
<tr><td>Ip:</td><td><input type="text" name="net_id" value="<%= net_id %>"></td></tr>
- <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
+ <tr><td colspan=2><button class="btn js-submit btn-xos-detail">Save</button></td></tr>
</table>
</form>
</script>
@@ -315,7 +319,7 @@
<tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
<tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
<tr><td>Deployment:</td><td><%= idToSelect("deployment",deployment,"deployments","name") %></td></tr>
- <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
+ <tr><td colspan=2><button class="btn js-submit btn-xos-detail">Save</button></td></tr>
</table>
</form>
</script>
@@ -344,7 +348,7 @@
<form>
<table>
<tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>
- <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
+ <tr><td colspan=2><button class="btn js-submit btn-xos-detail">Save</button></td></tr>
</table>
</form>
</script>
@@ -383,7 +387,7 @@
<tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
<tr><td>description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
<tr><td>Version Number:</td><td><input type="text" name="versionNumber" value="<%= versionNumber %>"></td></tr>
- <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
+ <tr><td colspan=2><button class="btn js-submit btn-xos-detail">Save</button></td></tr>
</table>
</form>
</script>
@@ -421,9 +425,12 @@
<form>
<table>
<tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
+ <tr><td>abbreviated_name:</td><td><input type="text" name="abbreviated_name" value="<%= abbreviated_name %>"></td></tr>
<tr><td>url:</td><td><input type="text" name="site_url" value="<%= site_url %>"></td></tr>
+ <tr><td>Enabled:</td><td><input type="checkbox" name="enabled" <% if (enabled) print("checked"); %>></td></tr>
+ <tr><td>Is Public:</td><td><input type="checkbox" name="is_public" <% if (is_public) print("checked"); %>></td></tr>
<tr><td>login_base:</td><td><input type="text" name="login_base" value="<%= login_base %>"></td></tr>
- <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
+ <tr><td colspan=2><button class="btn js-submit btn-xos-detail">Save</button></td></tr>
</table>
</form>
</script>
@@ -469,7 +476,7 @@
<tr><td>Description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
<tr><td>Url:</td><td><input type="text" name="slice_url" value="<%= slice_url %>"></td></tr>
<tr><td>Max Slivers:</td><td><input type="text" name="max_slivers" value="<%= max_slivers %>"></td></tr>
- <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
+ <tr><td colspan=2><button class="btn js-submit btn-xos-detail">Save</button></td></tr>
</table>
</form>
</script>
@@ -503,7 +510,7 @@
<tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>
<tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
<tr><td>Tenant Id:</td><td><input type="text" name="tenant_id" value="<%= tenant_id %>"></td></tr>
- <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
+ <tr><td colspan=2><button class="btn js-submit btn-xos-detail">Save</button></td></tr>
</table>
</form>
</script>
@@ -537,7 +544,7 @@
<tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>
<tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>
<tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>
- <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
+ <tr><td colspan=2><button class="btn js-submit btn-xos-detail">Save</button></td></tr>
</table>
</form>
</script>
@@ -590,7 +597,7 @@
<tr><td>Creator:</td><td><%= idToSelect("creator",creator,"users","username") %></td></tr>
<tr><td>Slice:</td><td><%= idToSelect("slice",slice,"slices","name") %></td></tr>
<tr><td>Deployment:</td><td><%= idToSelect("deploymentNetwork",deploymentNetwork,"deployments","name") %></td></tr>
- <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
+ <tr><td colspan=2><button class="btn js-submit btn-xos-detail">Save</button></td></tr>
</table>
</form>
</script>
@@ -634,7 +641,7 @@
<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><%= idToSelect("site",site,"sites","name") %></td></tr>
- <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
+ <tr><td colspan=2><button class="btn js-submit btn-xos-detail">Save</button></td></tr>
</table>
</form>
</script>
@@ -669,7 +676,7 @@
<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>
+ <tr><td colspan=2><button class="btn js-submit btn-xos-detail">Save</button></td></tr>
</table>
</form>
</script>