blob: f9883053a6b0b9ec27f71aa5268e99f158c466e6 [file] [log] [blame]
Scott Bakerc8bd4042015-01-11 13:44:30 -08001<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" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css">
Scott Bakerd6861f72015-01-18 16:53:56 -08009<link rel="stylesheet" type="text/css" href="{% static 'css/xosTenantDashboard.css' %}" media="all" >
Scott Bakerc8bd4042015-01-11 13:44:30 -080010<link rel="stylesheet" type="text/css" href="{% static 'css/xosAdminSite.css' %}" media="all" >
11
12<script src="{{ STATIC_URL }}/js/xoslib/xos-util.js"></script>
13<script src="{{ STATIC_URL }}/js/xoslib/xos-defaults.js"></script>
14<script src="{{ STATIC_URL }}/js/xoslib/xos-validators.js"></script>
15<script src="{{ STATIC_URL }}/js/xoslib/xos-backbone.js"></script>
16<script src="{{ STATIC_URL }}/js/xoslib/xosHelper.js"></script>
Scott Bakerfcf655e2015-01-12 19:45:40 -080017<script src="{{ STATIC_URL }}/js/picker.js"></script>
Scott Bakerc8bd4042015-01-11 13:44:30 -080018<script src="{{ STATIC_URL }}/js/xosTenant.js"></script>
19
20<script type="text/template" id="xos-tenant-buttons-template">
21 <div class="box save-box">
22 <button class="btn btn-high btn-tenant-create">Create New Slice</button>
23 <button class="btn btn-high btn-tenant-delete">Delete Slice</button>
Scott Bakerfcf655e2015-01-12 19:45:40 -080024 <button class="btn btn-high btn-tenant-add-user">Edit Users</button>
Scott Baker334919e2015-01-20 01:02:08 -080025 <button class="btn btn-high btn-tenant-download-ssh">SSH Commands</button>
Scott Bakerc8bd4042015-01-11 13:44:30 -080026 <button class="btn btn-high btn-tenant-save">Save</button>
27 </div>
28</script>
29
Scott Bakera293dac2015-01-13 14:41:41 -080030<script type="text/template" id="xos-tenant-buttons-noslice-template">
31 <div class="box save-box">
32 <button class="btn btn-high btn-tenant-create">Create New Slice</button>
33 </div>
34</script>
35
Scott Bakerc8bd4042015-01-11 13:44:30 -080036<script type="text/template" id="xos-log-template">
37 <tr id="<%= logMessageId %>" class="xos-log xos-<%= statusclass %>">
38 <td><%= what %><br>
39 <%= status %> <%= statusText %>
40 </td>
41 </tr>
42</script>
43
Scott Baker6f4a3b22015-02-17 13:57:09 -080044<script type="text/template" id="tenant-sanity-check">
45 Tenant view sanity check failed:
46 <ul>
47 <% for (index in errors) { %>
48 <li><%= errors[index] %></li>
49 <% } %>
50 </ul>
51 Steps to correct issues in the tenant view:
52 <ol>
53 <li>Make sure that the tenant view is linked to at least one deployment. You
54 may find the list of dashboard views at <a href="/admin/core/dashboardview/">here</a>.
55 Deployments currently attached to the tenant view are: <%= blessed_deployment_names.join(",") %>
56 </li>
57 <li>Make sure that at least one Image and one Flavor is attached to a tenant view deployment.</li>
58 <li>Make sure at least one Site is attached to a tenant view deployment.</li>
59 <li>Make sure at least one of the Sites has one or more nodes attached to it.</li>
60 </ol>
61</script>
62
Scott Bakerfcf655e2015-01-12 19:45:40 -080063<script type="text/template" id="tenant-edit-users">
Scott Bakerc7f363b2015-01-14 00:34:45 -080064 <%= xosPickerTemplate({pickedItems: model.usersBuffer,
Scott Bakera4101002015-01-16 19:26:54 -080065 unpickedItems: array_subtract(xos.tenant().current_user_site_users, model.usersBuffer),
Scott Bakerfcf655e2015-01-12 19:45:40 -080066 id: "users",
67 fieldName: "users",
68 detailView: detailView,
Scott Bakera4101002015-01-16 19:26:54 -080069 lookupFunc: function(x) { return array_pair_lookup(x,
70 $.merge($.merge([], xos.tenant().current_user_site_user_names), model.user_namesOrig),
71 $.merge($.merge([], xos.tenant().current_user_site_users), model.usersOrig)); },
Scott Bakerfcf655e2015-01-12 19:45:40 -080072 } ) %>
73</script>
74
Scott Bakerc8bd4042015-01-11 13:44:30 -080075<div id="xos-confirm-dialog" title="Confirmation Required">
76 Are you sure about this?
77</div>
78
Scott Baker8bd5f2c2015-01-14 01:07:38 -080079<div id="tenant-addslice-dialog" title="Create New Slice">
Scott Bakerced0a552015-01-12 12:37:38 -080080<div id="tenant-addslice-interior"></div>
Scott Bakerfcf655e2015-01-12 19:45:40 -080081</div>
82
Scott Baker8bd5f2c2015-01-14 01:07:38 -080083<div id="tenant-edit-users-dialog" title="Edit Users">
Scott Bakerfcf655e2015-01-12 19:45:40 -080084<div id="tenant-edit-users-interior"></div>
85</div>
Scott Baker334919e2015-01-20 01:02:08 -080086
87<div id="tenant-ssh-commands-dialog" title="SSH Commands">
88<div id="tenant-ssh-commands-interior"></div>
89</div>
Scott Bakerced0a552015-01-12 12:37:38 -080090
Scott Bakerc8bd4042015-01-11 13:44:30 -080091<div id="xos-error-dialog" title="Error Message">
92</div>
93
Scott Baker840862d2015-01-14 17:07:30 -080094<div id="xos-tenant-view-panel"> <!-- contentPanel"> -->
Scott Bakerc8bd4042015-01-11 13:44:30 -080095<div id="contentTitle">
96</div>
97<div id="contentButtonPanel">
98
99<div id="rightButtonPanel"></div>
100
101<div class="box" id="logPanel">
102<table id="logTable">
103<tbody>
104</tbody>
105</table> <!-- end logTable -->
106</div> <!-- end logPanel -->
107</div> <!-- end contentButtonPanel -->
108
109<div id="contentInner">
110
111<div id="tenantSliceSelector">
112</div>
113<div id="tenantSummary">
114</div>
115<div id="tenantSiteList">
116</div>
117<div id="tenantButtons">
118</div>
119
120</div> <!-- end contentInner -->
121</div> <!-- end contentPanel -->
122
123{% include 'xosAdmin.html' %}