From cc15381007db5115d359991938b4cccb99264f56 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 1 Apr 2020 19:45:31 -0400 Subject: [PATCH] Refactor admin user settings page - Fix header hierarchy - [frio] Fix panel display --- view/templates/admin/users.tpl | 276 +++++++------- view/theme/frio/css/mod_admin.css | 6 +- view/theme/frio/templates/admin/users.tpl | 357 +++++++++---------- view/theme/quattro/templates/admin/users.tpl | 219 ++++++------ 4 files changed, 441 insertions(+), 417 deletions(-) diff --git a/view/templates/admin/users.tpl b/view/templates/admin/users.tpl index 8bbffbb7de..d2850519ab 100644 --- a/view/templates/admin/users.tpl +++ b/view/templates/admin/users.tpl @@ -1,159 +1,179 @@ - -
+

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

- +
- - -

{{$h_pending}}

- {{if $pending}} - - - - {{foreach $th_pending as $th}}{{/foreach}} - - - - - + + +

{{$h_pending}}

+ {{if $pending}} +
{{$th}}
+ + + {{foreach $th_pending as $th}} + {{/foreach}} + + + + + {{foreach $pending as $u}} - + {{/foreach}} - -
{{$th}}
{{$u.created}} {{$u.name}} + + - - + + + + + +

{{$pendingnotetext}}: {{$u.note}}

- -
- {{else}} -

{{$no_pending}}

- {{/if}} - -

{{$h_users}}

- {{if $users}} - - - - - {{foreach $th_users as $th}} + +
+ +
+ + +
+ {{else}} +

{{$no_pending}}

+ {{/if}} + +

{{$h_users}}

+ {{if $users}} + + + + + {{foreach $th_users as $th}} - {{/foreach}} - - - - - - {{foreach $users as $u}} - - - - - - - - - - {{else}} -   - {{/if}} - - {{/foreach}} - -
- {{if $order_users == $th.1}} - {{if $order_direction_users == "+"}} + {{if $order_users == $th.1}} + {{if $order_direction_users == "+"}} ↓ - {{else}} - ↑ - {{/if}} {{else}} - ↕ + ↑ {{/if}} - {{$th.0}} + {{else}} + ↕ + {{/if}} + {{$th.0}} +
{{$u.nickname}}{{$u.name}}{{$u.register_date}}{{$u.lastitem_date}} - {{if $u.is_deletable}} - - {{if $u.is_deletable}} - - - {{else}} -   - {{/if}} -
- -
- - - -
- {{else}} - NO USERS?!? - {{/if}} -
- {{if $deleted}} -

{{$h_deleted}}

- - + + + + + + {{foreach $users as $u}} - - {{foreach $th_deleted as $th}}{{/foreach}} + + + + + + + + + + - - - {{foreach $deleted as $u}} - - - - - - - - - - {{/foreach}} - -
{{$th}}{{$u.nickname}}{{$u.name}}{{$u.register_date}}{{$u.lastitem_date}} + {{if $u.is_deletable}} + + {{else}} +   + {{/if}} + + {{if $u.is_deletable}} + + + + + + + {{else}} +   + {{/if}} +
{{$u.nickname}}{{$u.name}}{{$u.register_date}}{{$u.lastitem_date}}
- {{/if}} -

{{$h_newuser}}

-
- - - - - - - - - - - - - -
{{include file="field_input.tpl" field=$newusername}}
{{include file="field_input.tpl" field=$newusernickname}}
{{include file="field_input.tpl" field=$newuseremail}}
-
-
+ {{/foreach}} + + + +
+ + + +
+ {{else}} + NO USERS?!? + {{/if}} + +{{if $deleted}} +

{{$h_deleted}}

+ + + + + {{foreach $th_deleted as $th}} + + {{/foreach}} + + + + {{foreach $deleted as $u}} + + + + + + + + + + {{/foreach}} + +
{{$th}}
{{$u.nickname}}{{$u.name}}{{$u.register_date}}{{$u.lastitem_date}}
+{{/if}} +

{{$h_newuser}}

+
+ + + + + + + + + + + + + +
{{include file="field_input.tpl" field=$newusername}}
{{include file="field_input.tpl" field=$newusernickname}}
{{include file="field_input.tpl" field=$newuseremail}}
+
+
diff --git a/view/theme/frio/css/mod_admin.css b/view/theme/frio/css/mod_admin.css index 76056d4a14..84a42ad6dc 100644 --- a/view/theme/frio/css/mod_admin.css +++ b/view/theme/frio/css/mod_admin.css @@ -1,6 +1,5 @@ #admin-users.adminpage > h1 { padding: 0 15px; } -#admin-users.adminpage .panel-collapse { margin-left: -15px; margin-right: -15px; } #adminpage.adminpage > h1 { padding: 0 15px; } @@ -18,5 +17,8 @@ tr.details th { border-top: 0!important; } -.adminpage td > .checkbox { margin: 0; } +.adminpage td > .checkbox, +.adminpage th > .checkbox { + margin: 0; +} .adminpage td { word-break: break-all; } \ No newline at end of file diff --git a/view/theme/frio/templates/admin/users.tpl b/view/theme/frio/templates/admin/users.tpl index a9c5f003ee..71d3638623 100644 --- a/view/theme/frio/templates/admin/users.tpl +++ b/view/theme/frio/templates/admin/users.tpl @@ -18,26 +18,31 @@ ** -->
-
- {{if $pending}} + {{if $pending}} - + {{foreach $th_pending as $th}}{{/foreach}} - {{foreach $pending as $u}} + {{foreach $pending as $u}} - {{if $u.note}} + {{if $u.note}} - {{/if}} - {{/foreach}} + {{/if}} + {{/foreach}}
+
+ + +
+
{{$th}}
@@ -53,37 +58,27 @@
{{$pendingnotetext}} {{$u.note}}
- {{else}} + {{else}}
{{$no_pending}}
- {{/if}} + {{/if}}
@@ -95,48 +90,52 @@ ** -->
-
- {{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])) }} - + + {{/foreach}} + +
- + {{if $u.is_deletable}} + {{if $u.blocked}} + + + + {{else}} + + + + {{/if}} + + + + {{else}} +   + {{/if}} +
+ {{else}} +
NO USERS?!?
+ {{/if}}
- {{if $deleted}}
-
@@ -328,12 +313,12 @@ ** -->
-
@@ -342,11 +327,9 @@ {{include file="field_input.tpl" field=$newusernickname}} {{include file="field_input.tpl" field=$newuseremail}}
-
diff --git a/view/theme/quattro/templates/admin/users.tpl b/view/theme/quattro/templates/admin/users.tpl index bd4e63ec75..9057a53d2d 100644 --- a/view/theme/quattro/templates/admin/users.tpl +++ b/view/theme/quattro/templates/admin/users.tpl @@ -1,77 +1,89 @@ - -
+

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

- +
- - -

{{$h_pending}}

+ + +

{{$h_pending}}

{{if $pending}} - +
- {{foreach $th_pending as $th}}{{/foreach}} + {{foreach $th_pending as $th}} + + {{/foreach}} - {{foreach $pending as $u}} - - - - - - - - - - - {{/foreach}} + {{foreach $pending as $u}} + + + + + + + + + + + {{/foreach}}
{{$th}}{{$th}}
{{$u.created}}{{$u.name}} - - -

{{$pendingnotetext}}: {{$u.note}}

{{$u.created}}{{$u.name}} + + + + + + + + +

{{$pendingnotetext}}: {{$u.note}}

- -
+ +
+ +
{{else}}

{{$no_pending}}

{{/if}} - -

{{$h_users}}

+ +

{{$h_users}}

{{if $users}} - +
- {{foreach $th_users as $th}} + {{foreach $th_users as $th}} - {{/foreach}} + {{/foreach}} @@ -79,23 +91,28 @@ {{foreach $users as $u}} - - - - - - - - - {{else}} -   - {{/if}} + + + + + + + +
- {{if $order_users == $th.1}} - {{if $order_direction_users == "+"}} + {{if $order_users == $th.1}} + {{if $order_direction_users == "+"}} ↓ - {{else}} - ↑ - {{/if}} {{else}} - ↕ + ↑ {{/if}} - {{$th.0}} + {{else}} + ↕ + {{/if}} + {{$th.0}} +
{{$u.nickname}}{{$u.name}}{{$u.register_date}}{{$u.lastitem_date}} - {{if $u.is_deletable}} - {{$u.nickname}}{{$u.name}}{{$u.register_date}}{{$u.lastitem_date}} + {{if $u.is_deletable}} + + {{else}} +   + {{/if}} + {{if $u.is_deletable}} - - + + + + + + {{else}}   {{/if}} @@ -104,56 +121,58 @@ {{/foreach}}
- +
- - - + + +
{{else}} NO USERS?!? {{/if}}
{{if $deleted}} -

{{$h_deleted}}

- - +

{{$h_deleted}}

+
+ + + + {{foreach $th_deleted as $th}} + + {{/foreach}} + + + + {{foreach $deleted as $u}} - - {{foreach $th_deleted as $th}}{{/foreach}} + + + + + + + - - - {{foreach $deleted as $u}} - - - - - - - - - - {{/foreach}} - -
{{$th}}
{{$th}}{{$u.nickname}}{{$u.name}}{{$u.register_date}}{{$u.lastitem_date}}
{{$u.nickname}}{{$u.name}}{{$u.register_date}}{{$u.lastitem_date}}
- {{/if}} -

{{$h_newuser}}

-
- - - - - - - - - - - - - -
{{include file="field_input.tpl" field=$newusername}}
{{include file="field_input.tpl" field=$newusernickname}}
{{include file="field_input.tpl" field=$newuseremail}}
-
-
+ {{/foreach}} + + + {{/if}} +

{{$h_newuser}}

+
+ + + + + + + + + + + + + +
{{include file="field_input.tpl" field=$newusername}}
{{include file="field_input.tpl" field=$newusernickname}}
{{include file="field_input.tpl" field=$newuseremail}}
+
+