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, |
| 45 | unpickedItems: array_diff(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, |
| 49 | lookupFunc: function(x) { return array_pair_lookup(x, xos.tenant().current_user_site_user_names, xos.tenant().current_user_site_users); }, |
| 50 | } ) %> |
| 51 | </script> |
| 52 | |
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 53 | <div id="xos-confirm-dialog" title="Confirmation Required"> |
| 54 | Are you sure about this?
|
| 55 | </div> |
| 56 | |
Scott Baker | 3101c97 | 2015-01-14 01:07:38 -0800 | [diff] [blame^] | 57 | <div id="tenant-addslice-dialog" title="Create New Slice"> |
Scott Baker | cd07a59 | 2015-01-12 12:37:38 -0800 | [diff] [blame] | 58 | <div id="tenant-addslice-interior"></div>
|
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 59 | </div>
|
| 60 |
|
Scott Baker | 3101c97 | 2015-01-14 01:07:38 -0800 | [diff] [blame^] | 61 | <div id="tenant-edit-users-dialog" title="Edit Users">
|
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 62 | <div id="tenant-edit-users-interior"></div>
|
| 63 | </div>
|
Scott Baker | cd07a59 | 2015-01-12 12:37:38 -0800 | [diff] [blame] | 64 | |
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 65 | <div id="xos-error-dialog" title="Error Message"> |
| 66 | </div>
|
| 67 |
|
| 68 | <div id="contentPanel">
|
| 69 | <div id="contentTitle"> |
| 70 | </div> |
| 71 | <div id="contentButtonPanel"> |
| 72 | |
| 73 | <div id="rightButtonPanel"></div> |
| 74 | |
| 75 | <div class="box" id="logPanel"> |
| 76 | <table id="logTable"> |
| 77 | <tbody> |
| 78 | </tbody> |
| 79 | </table> <!-- end logTable --> |
| 80 | </div> <!-- end logPanel --> |
| 81 | </div> <!-- end contentButtonPanel --> |
| 82 | |
| 83 | <div id="contentInner"> |
| 84 | |
| 85 | <div id="tenantSliceSelector"> |
| 86 | </div> |
| 87 | <div id="tenantSummary"> |
| 88 | </div> |
| 89 | <div id="tenantSiteList"> |
| 90 | </div> |
| 91 | <div id="tenantButtons"> |
| 92 | </div> |
| 93 | |
| 94 | </div> <!-- end contentInner --> |
| 95 | </div> <!-- end contentPanel --> |
| 96 | |
| 97 | {% include 'xosAdmin.html' %} |