Scott Baker | c8bd404 | 2015-01-11 13:44:30 -0800 | [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" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css"> |
Scott Baker | d6861f7 | 2015-01-18 16:53:56 -0800 | [diff] [blame] | 9 | <link rel="stylesheet" type="text/css" href="{% static 'css/xosTenantDashboard.css' %}" media="all" > |
Scott Baker | c8bd404 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 10 | <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 Baker | fcf655e | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 17 | <script src="{{ STATIC_URL }}/js/picker.js"></script> |
Scott Baker | c8bd404 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 18 | <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 Baker | fcf655e | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 24 | <button class="btn btn-high btn-tenant-add-user">Edit Users</button> |
Scott Baker | 334919e | 2015-01-20 01:02:08 -0800 | [diff] [blame] | 25 | <button class="btn btn-high btn-tenant-download-ssh">SSH Commands</button> |
Scott Baker | c8bd404 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 26 | <button class="btn btn-high btn-tenant-save">Save</button> |
| 27 | </div> |
| 28 | </script> |
| 29 | |
Scott Baker | a293dac | 2015-01-13 14:41:41 -0800 | [diff] [blame] | 30 | <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 Baker | c8bd404 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 36 | <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 Baker | 6f4a3b2 | 2015-02-17 13:57:09 -0800 | [diff] [blame^] | 44 | <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 Baker | fcf655e | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 63 | <script type="text/template" id="tenant-edit-users"> |
Scott Baker | c7f363b | 2015-01-14 00:34:45 -0800 | [diff] [blame] | 64 | <%= xosPickerTemplate({pickedItems: model.usersBuffer, |
Scott Baker | a410100 | 2015-01-16 19:26:54 -0800 | [diff] [blame] | 65 | unpickedItems: array_subtract(xos.tenant().current_user_site_users, model.usersBuffer), |
Scott Baker | fcf655e | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 66 | id: "users", |
| 67 | fieldName: "users", |
| 68 | detailView: detailView, |
Scott Baker | a410100 | 2015-01-16 19:26:54 -0800 | [diff] [blame] | 69 | 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 Baker | fcf655e | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 72 | } ) %> |
| 73 | </script> |
| 74 | |
Scott Baker | c8bd404 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 75 | <div id="xos-confirm-dialog" title="Confirmation Required"> |
| 76 | Are you sure about this?
|
| 77 | </div> |
| 78 | |
Scott Baker | 8bd5f2c | 2015-01-14 01:07:38 -0800 | [diff] [blame] | 79 | <div id="tenant-addslice-dialog" title="Create New Slice"> |
Scott Baker | ced0a55 | 2015-01-12 12:37:38 -0800 | [diff] [blame] | 80 | <div id="tenant-addslice-interior"></div>
|
Scott Baker | fcf655e | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 81 | </div>
|
| 82 |
|
Scott Baker | 8bd5f2c | 2015-01-14 01:07:38 -0800 | [diff] [blame] | 83 | <div id="tenant-edit-users-dialog" title="Edit Users">
|
Scott Baker | fcf655e | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 84 | <div id="tenant-edit-users-interior"></div>
|
| 85 | </div>
|
Scott Baker | 334919e | 2015-01-20 01:02:08 -0800 | [diff] [blame] | 86 |
|
| 87 | <div id="tenant-ssh-commands-dialog" title="SSH Commands">
|
| 88 | <div id="tenant-ssh-commands-interior"></div>
|
| 89 | </div>
|
Scott Baker | ced0a55 | 2015-01-12 12:37:38 -0800 | [diff] [blame] | 90 | |
Scott Baker | c8bd404 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 91 | <div id="xos-error-dialog" title="Error Message"> |
| 92 | </div>
|
| 93 |
|
Scott Baker | 840862d | 2015-01-14 17:07:30 -0800 | [diff] [blame] | 94 | <div id="xos-tenant-view-panel"> <!-- contentPanel"> -->
|
Scott Baker | c8bd404 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 95 | <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' %} |