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"> |
| 9 | <link rel="stylesheet" type="text/css" href="{% static 'css/xosAdminDashboard.css' %}" media="all" > |
| 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 | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 25 | <button class="btn btn-high btn-tenant-save">Save</button> |
| 26 | </div> |
| 27 | </script> |
| 28 | |
Scott Baker | b52f7af | 2015-01-13 14:41:41 -0800 | [diff] [blame] | 29 | <script type="text/template" id="xos-tenant-buttons-noslice-template"> |
| 30 | <div class="box save-box"> |
| 31 | <button class="btn btn-high btn-tenant-create">Create New Slice</button> |
| 32 | </div> |
| 33 | </script> |
| 34 | |
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 35 | <script type="text/template" id="xos-log-template"> |
| 36 | <tr id="<%= logMessageId %>" class="xos-log xos-<%= statusclass %>"> |
| 37 | <td><%= what %><br> |
| 38 | <%= status %> <%= statusText %> |
| 39 | </td> |
| 40 | </tr> |
| 41 | </script> |
| 42 | |
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 43 | <script type="text/template" id="tenant-edit-users"> |
Scott Baker | 435c2c9 | 2015-01-14 00:34:45 -0800 | [diff] [blame] | 44 | <%= xosPickerTemplate({pickedItems: model.usersBuffer, |
Scott Baker | 1215424 | 2015-01-16 19:26:54 -0800 | [diff] [blame] | 45 | unpickedItems: array_subtract(xos.tenant().current_user_site_users, model.usersBuffer), |
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 46 | id: "users", |
| 47 | fieldName: "users", |
| 48 | detailView: detailView, |
Scott Baker | 1215424 | 2015-01-16 19:26:54 -0800 | [diff] [blame] | 49 | lookupFunc: function(x) { return array_pair_lookup(x, |
| 50 | $.merge($.merge([], xos.tenant().current_user_site_user_names), model.user_namesOrig), |
| 51 | $.merge($.merge([], xos.tenant().current_user_site_users), model.usersOrig)); }, |
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 52 | } ) %> |
| 53 | </script> |
| 54 | |
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 55 | <div id="xos-confirm-dialog" title="Confirmation Required"> |
| 56 | Are you sure about this?
|
| 57 | </div> |
| 58 | |
Scott Baker | 3101c97 | 2015-01-14 01:07:38 -0800 | [diff] [blame] | 59 | <div id="tenant-addslice-dialog" title="Create New Slice"> |
Scott Baker | cd07a59 | 2015-01-12 12:37:38 -0800 | [diff] [blame] | 60 | <div id="tenant-addslice-interior"></div>
|
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 61 | </div>
|
| 62 |
|
Scott Baker | 3101c97 | 2015-01-14 01:07:38 -0800 | [diff] [blame] | 63 | <div id="tenant-edit-users-dialog" title="Edit Users">
|
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 64 | <div id="tenant-edit-users-interior"></div>
|
| 65 | </div>
|
Scott Baker | cd07a59 | 2015-01-12 12:37:38 -0800 | [diff] [blame] | 66 | |
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 67 | <div id="xos-error-dialog" title="Error Message"> |
| 68 | </div>
|
| 69 |
|
Scott Baker | e7a9045 | 2015-01-14 17:07:30 -0800 | [diff] [blame] | 70 | <div id="xos-tenant-view-panel"> <!-- contentPanel"> -->
|
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 71 | <div id="contentTitle"> |
| 72 | </div> |
| 73 | <div id="contentButtonPanel"> |
| 74 | |
| 75 | <div id="rightButtonPanel"></div> |
| 76 | |
| 77 | <div class="box" id="logPanel"> |
| 78 | <table id="logTable"> |
| 79 | <tbody> |
| 80 | </tbody> |
| 81 | </table> <!-- end logTable --> |
| 82 | </div> <!-- end logPanel --> |
| 83 | </div> <!-- end contentButtonPanel --> |
| 84 | |
| 85 | <div id="contentInner"> |
| 86 | |
| 87 | <div id="tenantSliceSelector"> |
| 88 | </div> |
| 89 | <div id="tenantSummary"> |
| 90 | </div> |
| 91 | <div id="tenantSiteList"> |
| 92 | </div> |
| 93 | <div id="tenantButtons"> |
| 94 | </div> |
| 95 | |
| 96 | </div> <!-- end contentInner --> |
| 97 | </div> <!-- end contentPanel --> |
| 98 | |
| 99 | {% include 'xosAdmin.html' %} |