Scott Baker | 342d9b9 | 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 | d3f083d | 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 | 342d9b9 | 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 | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 17 | <script src="{{ STATIC_URL }}/js/picker.js"></script> |
Scott Baker | 342d9b9 | 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 | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 24 | <button class="btn btn-high btn-tenant-add-user">Edit Users</button> |
Scott Baker | ec93010 | 2015-01-20 01:02:08 -0800 | [diff] [blame^] | 25 | <button class="btn btn-high btn-tenant-download-ssh">SSH Commands</button> |
Scott Baker | 342d9b9 | 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 | b52f7af | 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 | 342d9b9 | 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 | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 44 | <script type="text/template" id="tenant-edit-users"> |
Scott Baker | 435c2c9 | 2015-01-14 00:34:45 -0800 | [diff] [blame] | 45 | <%= xosPickerTemplate({pickedItems: model.usersBuffer, |
Scott Baker | 1215424 | 2015-01-16 19:26:54 -0800 | [diff] [blame] | 46 | unpickedItems: array_subtract(xos.tenant().current_user_site_users, model.usersBuffer), |
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 47 | id: "users", |
| 48 | fieldName: "users", |
| 49 | detailView: detailView, |
Scott Baker | 1215424 | 2015-01-16 19:26:54 -0800 | [diff] [blame] | 50 | lookupFunc: function(x) { return array_pair_lookup(x, |
| 51 | $.merge($.merge([], xos.tenant().current_user_site_user_names), model.user_namesOrig), |
| 52 | $.merge($.merge([], xos.tenant().current_user_site_users), model.usersOrig)); }, |
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 53 | } ) %> |
| 54 | </script> |
| 55 | |
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 56 | <div id="xos-confirm-dialog" title="Confirmation Required"> |
| 57 | Are you sure about this?
|
| 58 | </div> |
| 59 | |
Scott Baker | 3101c97 | 2015-01-14 01:07:38 -0800 | [diff] [blame] | 60 | <div id="tenant-addslice-dialog" title="Create New Slice"> |
Scott Baker | cd07a59 | 2015-01-12 12:37:38 -0800 | [diff] [blame] | 61 | <div id="tenant-addslice-interior"></div>
|
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 62 | </div>
|
| 63 |
|
Scott Baker | 3101c97 | 2015-01-14 01:07:38 -0800 | [diff] [blame] | 64 | <div id="tenant-edit-users-dialog" title="Edit Users">
|
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 65 | <div id="tenant-edit-users-interior"></div>
|
| 66 | </div>
|
Scott Baker | ec93010 | 2015-01-20 01:02:08 -0800 | [diff] [blame^] | 67 |
|
| 68 | <div id="tenant-ssh-commands-dialog" title="SSH Commands">
|
| 69 | <div id="tenant-ssh-commands-interior"></div>
|
| 70 | </div>
|
Scott Baker | cd07a59 | 2015-01-12 12:37:38 -0800 | [diff] [blame] | 71 | |
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 72 | <div id="xos-error-dialog" title="Error Message"> |
| 73 | </div>
|
| 74 |
|
Scott Baker | e7a9045 | 2015-01-14 17:07:30 -0800 | [diff] [blame] | 75 | <div id="xos-tenant-view-panel"> <!-- contentPanel"> -->
|
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 76 | <div id="contentTitle"> |
| 77 | </div> |
| 78 | <div id="contentButtonPanel"> |
| 79 | |
| 80 | <div id="rightButtonPanel"></div> |
| 81 | |
| 82 | <div class="box" id="logPanel"> |
| 83 | <table id="logTable"> |
| 84 | <tbody> |
| 85 | </tbody> |
| 86 | </table> <!-- end logTable --> |
| 87 | </div> <!-- end logPanel --> |
| 88 | </div> <!-- end contentButtonPanel --> |
| 89 | |
| 90 | <div id="contentInner"> |
| 91 | |
| 92 | <div id="tenantSliceSelector"> |
| 93 | </div> |
| 94 | <div id="tenantSummary"> |
| 95 | </div> |
| 96 | <div id="tenantSiteList"> |
| 97 | </div> |
| 98 | <div id="tenantButtons"> |
| 99 | </div> |
| 100 | |
| 101 | </div> <!-- end contentInner --> |
| 102 | </div> <!-- end contentPanel --> |
| 103 | |
| 104 | {% include 'xosAdmin.html' %} |