diff --git a/view/theme/frio/css/mod_admin.css b/view/theme/frio/css/mod_admin.css new file mode 100644 index 000000000..5f9ac1d92 --- /dev/null +++ b/view/theme/frio/css/mod_admin.css @@ -0,0 +1,6 @@ + +#users img.icon, #deleted img.icon { height: 24px; } +.opened .caret { transform: rotate(180deg); } +tr.details td, +tr.details th +{ border-top: 0!important; } diff --git a/view/theme/frio/js/mod_admin.js b/view/theme/frio/js/mod_admin.js index b9fc46781..8d573816c 100644 --- a/view/theme/frio/js/mod_admin.js +++ b/view/theme/frio/js/mod_admin.js @@ -20,12 +20,27 @@ $(function() { } }); - function selectall(cls) { - $('.' + cls).prop('checked', true); - return false; - } - function selectnone(cls) { - $('.' + cls).prop('checked', false); - return false; - } }); + +function selectall(cls) { + $('.' + cls).prop('checked', true); + return false; +} +function selectnone(cls) { + $('.' + cls).prop('checked', false); + return false; +} + + +// Users +function confirm_delete(uname){ + return confirm( "{{$confirm_delete}}".format(uname)); +} +function confirm_delete_multi(){ + return confirm("{{$confirm_delete_multi}}"); +} +function details(uid) { + $("#user-"+uid+"-detail").toggleClass("hidden"); + $("#user-"+uid).toggleClass("opened"); + return false; +} diff --git a/view/theme/frio/templates/admin/users.tpl b/view/theme/frio/templates/admin/users.tpl index f648cb748..1c56982c3 100644 --- a/view/theme/frio/templates/admin/users.tpl +++ b/view/theme/frio/templates/admin/users.tpl @@ -1,35 +1,13 @@ - - + + +

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

- + - +

{{$h_newuser}}