From: fabrixxm Date: Wed, 18 Apr 2018 19:43:33 +0000 (+0200) Subject: Frio: admin/user template fixes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=20a2918bdaaa9108765228a9cabdab1c52de329e;p=friendica.git Frio: admin/user template fixes - small fixes to html - move js and css to extern files - move checkboxes to first column --- diff --git a/view/theme/frio/css/mod_admin.css b/view/theme/frio/css/mod_admin.css new file mode 100644 index 0000000000..5f9ac1d924 --- /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 b9fc467813..8d573816cf 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 f648cb7489..1c56982c30 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}}