From 1017e244cae7cb1cfce46fe0d4fdc43fb117885e Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Wed, 18 Apr 2018 17:52:34 +0200 Subject: [PATCH 1/5] Frio: add template for admin/users --- view/theme/frio/templates/admin/users.tpl | 273 ++++++++++++++++++++++ 1 file changed, 273 insertions(+) create mode 100644 view/theme/frio/templates/admin/users.tpl diff --git a/view/theme/frio/templates/admin/users.tpl b/view/theme/frio/templates/admin/users.tpl new file mode 100644 index 000000000..5ab002573 --- /dev/null +++ b/view/theme/frio/templates/admin/users.tpl @@ -0,0 +1,273 @@ + + + + +
+

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

+
+ +
+ + + + +
+

{{$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}}
+ + {{else}} +
{{$no_pending}}
+ {{/if}} +
+ + +
+

{{$h_users}}

+ {{if $users}} + + + + + + {{foreach $th_users as $k=>$th}} + {{if $k < 2 || $order_users == $th.1 || ($k==5 && !in_array($order_users,[$th_users.2.1, $th_users.3.1, $th_users.4.1])) }} + + {{/if}} + {{/foreach}} + + + + + + {{foreach $users as $u}} + + + + + {{if $order_users == $th_users.2.1}} + + {{/if}} + + {{if $order_users == $th_users.3.1}} + + {{/if}} + + {{if $order_users == $th_users.4.1}} + + {{/if}} + + {{if !in_array($order_users,[$th_users.2.1, $th_users.3.1, $th_users.4.1]) }} + + {{/if}} + + {{else}} +   + {{/if}} + + + + + + + + {{/foreach}} + +
+ + {{if $order_users == $th.1}} + {{if $order_direction_users == "+"}} + ↓ + {{else}} + ↑ + {{/if}} + {{else}} + ↕ + {{/if}} + {{$th.0}} + + + +
{{$u.name}}{{$u.email}}{{$u.register_date}}{{$u.lastitem_date}}{{$u.page_flags}} {{if $u.is_admin}}({{$siteadmin}}){{/if}} {{if $u.account_expired}}({{$accountexpired}}){{/if}} + {{if $u.is_deletable}} + + +
+ + {{else}} +
NO USERS?!?
+ {{/if}} +
+ + + +
+ + + + + + + {{if $deleted}} +
+

{{$h_deleted}}

+ + + + + {{foreach $th_deleted as $k=>$th}} + {{if in_array($k,[0,1,5])}} + + {{/if}} + {{/foreach}} + + + + {{foreach $deleted as $u}} + + + + + + + {{/foreach}} + +
{{$th}}
{{$u.name}}{{$u.email}}{{$u.deleted}}
+
+{{/if}} + + + + +
+ + +
+

{{$h_newuser}}

+
+ {{include file="field_input.tpl" field=$newusername}} + {{include file="field_input.tpl" field=$newusernickname}} + {{include file="field_input.tpl" field=$newuseremail}} +
+ + From 362654abf06ed2974d2ce5878011ecf1fe05e203 Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Wed, 18 Apr 2018 19:44:10 +0200 Subject: [PATCH 2/5] Fix indentation --- view/theme/frio/templates/admin/users.tpl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/view/theme/frio/templates/admin/users.tpl b/view/theme/frio/templates/admin/users.tpl index 5ab002573..f648cb748 100644 --- a/view/theme/frio/templates/admin/users.tpl +++ b/view/theme/frio/templates/admin/users.tpl @@ -1,4 +1,3 @@ -