diff --git a/view/theme/frio/css/mod_admin.css b/view/theme/frio/css/mod_admin.css new file mode 100644 index 000000000..7a8c6f659 --- /dev/null +++ b/view/theme/frio/css/mod_admin.css @@ -0,0 +1,8 @@ + +#admin-users.adminpage { padding-left:0; padding-right: 0;} +#admin-users.adminpage > h1 { padding: 0 15px; } +#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..dc8abe054 100644 --- a/view/theme/frio/js/mod_admin.js +++ b/view/theme/frio/js/mod_admin.js @@ -20,6 +20,7 @@ $(function() { } }); + function selectall(cls) { $('.' + cls).prop('checked', true); return false; @@ -28,4 +29,17 @@ $(function() { $('.' + cls).prop('checked', false); return false; } + + }); + +// Users +function confirm_delete(msg, uname){ + return confirm(msg.format(uname)); +} + +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 new file mode 100644 index 000000000..831ee49b6 --- /dev/null +++ b/view/theme/frio/templates/admin/users.tpl @@ -0,0 +1,266 @@ + + + +
+ {{foreach $th_deleted as $k=>$th}} + {{if in_array($k,[0,1,5])}} + | {{$th}} | + {{/if}} + {{/foreach}} +||
---|---|---|---|
+ | {{$u.name}} | +{{$u.email}} | +{{$u.deleted}} | +