From 20a2918bdaaa9108765228a9cabdab1c52de329e Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Wed, 18 Apr 2018 21:43:33 +0200 Subject: [PATCH] Frio: admin/user template fixes - small fixes to html - move js and css to extern files - move checkboxes to first column --- view/theme/frio/css/mod_admin.css | 6 ++ view/theme/frio/js/mod_admin.js | 31 ++++++--- view/theme/frio/templates/admin/users.tpl | 81 +++++++++-------------- 3 files changed, 59 insertions(+), 59 deletions(-) create mode 100644 view/theme/frio/css/mod_admin.css 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}}