diff --git a/view/theme/frio/css/mod_admin.css b/view/theme/frio/css/mod_admin.css index cbcd53453b..b690577d11 100644 --- a/view/theme/frio/css/mod_admin.css +++ b/view/theme/frio/css/mod_admin.css @@ -1,17 +1,20 @@ -#admin-users.adminpage { padding-left:0; padding-right: 0;} #admin-users.adminpage > h1 { padding: 0 15px; } - -#admin-users td { word-break: break-all; } +#admin-users.adminpage .panel-collapse { margin-left: -15px; margin-right: -15px; } #admin-users #users th:first-of-type { width: 1em; } #admin-users #users th:nth-of-type(2) { width: 40px; } #admin-users #users th:last-of-type { width: 1em; } +#admin-users .admin-settings-footer-elements { padding-left: 8px; padding-right: 8px; } #admin-users #deleted th:first-of-type { width: 40px; } #admin-users #users img.avatar-nano, #deleted img.avatar-nano { height: 24px; width: 24px; } .opened .caret { transform: rotate(180deg); } tr.details td, -tr.details th -{ border-top: 0!important; } +tr.details th { + border-top: 0!important; +} + +.adminpage td > .checkbox { margin: 0; } +.adminpage td { word-break: break-all; } \ No newline at end of file diff --git a/view/theme/frio/css/style.css b/view/theme/frio/css/style.css index 35c577b5a8..1614547b85 100644 --- a/view/theme/frio/css/style.css +++ b/view/theme/frio/css/style.css @@ -2654,7 +2654,8 @@ ul li:hover .contact-wrapper .contact-action-link:hover { margin-left: -15px; margin-right: -15px; } -.panel-group-settings > .panel { +.panel-group-settings > .panel, +.panel-group-settings > form > .panel { padding-left: 15px; padding-right: 15px; } @@ -2939,6 +2940,22 @@ section.help-content-wrapper li { #adminpage .plugin .desc { padding-left: 10px; } +.adminpage .admin-settings-action-link, +.adminpage .admin-settings-action-link:hover { + color: #555; +} +.adminpage .admin-settings-action-link:hover { + opacity: 1; +} +.adminpage .admin-settings-action-link { + opacity: 0.8; +} +#admin-users tr.blocked { + background-color: #f8efc0; +} +.adminpage .table-hover > tbody > tr:hover + tr.details { + background-color: #f5f5f5; +} /* Register Page*/ #register-openid-wrapper, #register-name-wrapper, #register-invite-wrapper, #profile-publish-wrapper { diff --git a/view/theme/frio/js/mod_admin.js b/view/theme/frio/js/mod_admin.js index dc8abe054b..188b480986 100644 --- a/view/theme/frio/js/mod_admin.js +++ b/view/theme/frio/js/mod_admin.js @@ -9,7 +9,9 @@ $(function() { selectnone($(this).data('selectNone')); }); - $('body').on('change', 'input[type=checkbox].select', function() { + // Toggle checkbox status to all or none for all checkboxes of a specific + // css class. + $('body').on('change', 'input[type=checkbox].selecttoggle', function() { $this = $(this); if ($this.prop('checked')) { selectall($this.data('selectClass')); @@ -20,6 +22,26 @@ $(function() { } }); + // Use AJAX calls to reorder the table (so we don't need to reload the page). + $('body').on('click', '.table-order', function(e) { + e.preventDefault(); + + // Get the parent table element. + var table = $(this).parents('table'); + var orderUrl = this.getAttribute("data-order-url"); + table.fadeTo("fast", 0.33); + + $("body").css("cursor", "wait"); + + $.get(orderUrl, function(data) { + // Find the table element in the html we got. + var result = $(data).find('#' + table[0].id); + // And add the new table html to the parent. + $(table).parent().html(result); + + $("body").css("cursor", "auto"); + }); + }); function selectall(cls) { $('.' + cls).prop('checked', true); @@ -39,7 +61,7 @@ function confirm_delete(msg, uname){ } function details(uid) { - $("#user-"+uid+"-detail").toggleClass("hidden"); - $("#user-"+uid).toggleClass("opened"); + $("#user-" + uid + "-detail").toggleClass("hidden"); + $("#user-" + uid).toggleClass("opened"); return false; } diff --git a/view/theme/frio/templates/admin/contactblock.tpl b/view/theme/frio/templates/admin/contactblock.tpl index f330854bc9..3173c238b6 100644 --- a/view/theme/frio/templates/admin/contactblock.tpl +++ b/view/theme/frio/templates/admin/contactblock.tpl @@ -1,60 +1,105 @@ -
+ + +

{{$title}} - {{$page}}

{{$description}}

-
- -

{{$h_contacts}}

- {{if $contacts}} - - - - - {{foreach $th_contacts as $th}} - - {{/foreach}} - - - - - {{foreach $contacts as $contact}} - - - - - - - {{/foreach}} - - - - - - - -
- {{$th}} -
{{$contact.nickname}}{{$contact.name}}{{$contact.url}}
- {{$total_contacts}} -
-
- {{$paginate}} - {{else}} -

{{$no_data|escape:'html'}}

- {{/if}} -
+ {{* We organize the settings in collapsable panel-groups *}} +
+ {{* The form for entering user profile which should be blocked *}} +
+ -

{{$h_newblock}}

-
- - - - - - - -
{{include file="field_input.tpl" field=$contacturl}}
-
-
+
+
+ + + {{include file="field_input.tpl" field=$contacturl}} + +
+ +
+
+
+
+
+ + {{* The list of blocked user profiles with the possibility to unblock them *}} +
+ + +
+
+ + + {{if $contacts}} + + + + + {{foreach $th_contacts as $th}} + + {{/foreach}} + + + + + {{foreach $contacts as $contact}} + + + + + + + {{/foreach}} + + + + + + + +
+ {{$th}} +
+
+ + +
+
{{$contact.nickname}}{{$contact.name}}{{$contact.url}}
+ {{* Checkbox to select all blocked contacts *}} +
+ + +
+
+ {{$total_contacts}} +
+ +
+
+
+ + {{$paginate}} + + {{else}} +

{{$no_data|escape:'html'}}

+ {{/if}} +
+
+
+
diff --git a/view/theme/frio/templates/admin/users.tpl b/view/theme/frio/templates/admin/users.tpl index 784d46b207..348ce8a2c0 100644 --- a/view/theme/frio/templates/admin/users.tpl +++ b/view/theme/frio/templates/admin/users.tpl @@ -1,285 +1,345 @@ -
+

{{$title}} - {{$page}}

+ {{* We organize the settings in collapsable panel-groups *}} +
- -
-

{{$h_pending}}

+ +
+ - {{if $pending}} - - - - - {{foreach $th_pending as $th}}{{/foreach}} - - - - - {{foreach $pending as $u}} - - - - - - - - - - - - - {{/foreach}} - -
{{$th}}
{{$u.created}}{{$u.name}}{{$u.email}} - - -
{{$pendingnotetext}}{{$u.note}}
-