diff --git a/server/src/uds/REST/methods/users.py b/server/src/uds/REST/methods/users.py index ab1cd047..361b2138 100644 --- a/server/src/uds/REST/methods/users.py +++ b/server/src/uds/REST/methods/users.py @@ -32,12 +32,11 @@ ''' from __future__ import unicode_literals -import time +#import time from django.utils.translation import ugettext as _ -from django.utils import formats from uds.core.util.State import State -from uds.models import Authenticator, User +from uds.models import Authenticator from uds.REST.mixins import DetailHandler diff --git a/server/src/uds/static/adm/css/uds-admin.css b/server/src/uds/static/adm/css/uds-admin.css index 1014fd69..907493ca 100644 --- a/server/src/uds/static/adm/css/uds-admin.css +++ b/server/src/uds/static/adm/css/uds-admin.css @@ -20,65 +20,8 @@ body { padding: 5px 15px; } -/* Nav Messages */ - -.messages-dropdown .dropdown-menu .message-preview .avatar, -.messages-dropdown .dropdown-menu .message-preview .name, -.messages-dropdown .dropdown-menu .message-preview .message, -.messages-dropdown .dropdown-menu .message-preview .time { - display: block; -} - -.messages-dropdown .dropdown-menu .message-preview .avatar { - float: left; - margin-right: 15px; -} - -.messages-dropdown .dropdown-menu .message-preview .name { - font-weight: bold; -} - -.messages-dropdown .dropdown-menu .message-preview .message { - font-size: 12px; -} - -.messages-dropdown .dropdown-menu .message-preview .time { - font-size: 12px; -} - -/* Nav Announcements */ - -.announcement-heading { - font-size: 50px; - margin: 0; -} - -.announcement-text { - margin: 0; -} - -/* Table Headers */ - -table.tablesorter thead { - cursor: pointer; -} - -table.tablesorter thead tr th:hover { - background-color: #f5f5f5; -} - -/* Flot Chart Containers */ - -.flot-chart { - display: block; - height: 400px; -} - -.flot-chart-content { - width: 100%; - height: 100%; -} +/* Custom */ .btn3d-tables { margin-top:0px; margin-botton: 8px; @@ -93,9 +36,19 @@ table.tablesorter thead tr th:hover { display: none; } -.white { - color: white; +/* chevrons for collapsable pannels */ +.chevron:before { + content: "\f139"; } +.chevron.collapsed:before { + content: "\f13a"; +} +.panel-icon { + margin-left: 0.6em !important; + cursor: pointer; +} + + /* Edit Below to Customize Widths > 768px */ @media (min-width:768px) { @@ -158,17 +111,7 @@ table.tablesorter thead tr th:hover { .navbar-inverse .navbar-nav>li>a:focus { background-color: #080808; } - - /* Nav Messages */ - - .messages-dropdown .dropdown-menu { - min-width: 300px; - } - - .messages-dropdown .dropdown-menu li a { - white-space: normal; - } - + .label-tbl-button { display: inline-block; } diff --git a/server/src/uds/static/adm/js/gui-elements.js b/server/src/uds/static/adm/js/gui-elements.js index e85bf34b..36dba844 100644 --- a/server/src/uds/static/adm/js/gui-elements.js +++ b/server/src/uds/static/adm/js/gui-elements.js @@ -39,7 +39,7 @@ gui.providers.link = function(event) { gui.doLog(this); gui.doLog(this.fnGetSelectedData()); }, - buttons : [ 'edit', 'refresh', 'delete', 'xls' ], + buttons : [ 'edit', 'delete', 'xls' ], }); return false; @@ -64,7 +64,7 @@ gui.authenticators.link = function(event) { gui.authenticators.table({ container : 'auths-placeholder', rowSelect : 'single', - buttons : [ 'edit', 'refresh', 'delete', 'xls' ], + buttons : [ 'edit', 'delete', 'xls' ], onRowSelect : function(selected) { api.tools.blockUI(); var id = selected[0].id; @@ -72,7 +72,7 @@ gui.authenticators.link = function(event) { user.table({ container : 'users-placeholder', rowSelect : 'multi', - buttons : [ 'edit', 'refresh', 'delete', 'xls' ], + buttons : [ 'edit', 'delete', 'xls' ], scrollToTable : true, onLoad: function(k) { api.tools.unblockUI(); @@ -97,7 +97,7 @@ gui.osmanagers.link = function(event) { gui.osmanagers.table({ rowSelect : 'single', - buttons : [ 'edit', 'refresh', 'delete', 'xls' ], + buttons : [ 'edit', 'delete', 'xls' ], }); return false; @@ -120,12 +120,12 @@ gui.connectivity.link = function(event) { gui.connectivity.transports.table({ rowSelect : 'multi', container : 'transports-placeholder', - buttons : [ 'edit', 'refresh', 'delete', 'xls' ], + buttons : [ 'edit', 'delete', 'xls' ], }); gui.connectivity.networks.table({ rowSelect : 'multi', container : 'networks-placeholder', - buttons : [ 'edit', 'refresh', 'delete', 'xls' ], + buttons : [ 'edit', 'delete', 'xls' ], }); }); diff --git a/server/src/uds/static/adm/js/gui.js b/server/src/uds/static/adm/js/gui.js index 96969c64..5ff77a76 100644 --- a/server/src/uds/static/adm/js/gui.js +++ b/server/src/uds/static/adm/js/gui.js @@ -55,22 +55,27 @@ css: 'btn3d-info btn3d btn3d-tables', }, }; - + gui.table = function(title, table_id, options) { - if (options === undefined) - options = { - 'size' : 12, - 'icon' : 'table' - }; - if (options.size === undefined) - options.size = 12; - if (options.icon === undefined) - options.icon = 'table'; + options = options || {}; + var size = options.size || 12; + var icon = options.icon || 'table'; + var panelId = 'panel-' + table_id; - return '