From 3d7fd651db17074d17ba8d1a91b41e6b4a9121a3 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Tue, 28 Jun 2022 16:11:40 +0800 Subject: [PATCH 1/3] * Code for task#58567. --- module/user/css/profile.css | 11 ++++++----- module/user/lang/de.php | 3 +++ module/user/lang/en.php | 3 +++ module/user/lang/fr.php | 3 +++ module/user/lang/vi.php | 3 +++ module/user/lang/zh-cn.php | 3 +++ module/user/view/profile.html.php | 22 +++++++++++++--------- 7 files changed, 34 insertions(+), 14 deletions(-) diff --git a/module/user/css/profile.css b/module/user/css/profile.css index 26e159866b..086318adb4 100644 --- a/module/user/css/profile.css +++ b/module/user/css/profile.css @@ -1,12 +1,13 @@ -.main-header {margin-bottom: 10px;} +.main-header {margin-bottom: 10px; border-bottom: unset; padding-top: 20px !important; padding-bottom: 24px !important;} .row table {width: 94%; margin-left: 3%;} -.row th {width: 17%; line-height: 30px; padding-right: 20px; text-align: right; font-weight: 500;} +.row th {width: 17%; line-height: 32px; padding-right: 20px; text-align: right; font-weight: unset;} .row td {width: 33%; text-align: left; font-weight: 700;} .main-actions {margin: 20px 0 20px 0; text-align: center;} .user-title {margin: 10px 10px -10px 10px; font-size: 14px; font-weight: bold; padding-left: 10px;} -.cell .avatar {display: inline-block; width: 50px; height: 50px; line-height: 50px;} -.user-name {margin-left: 15px; font-weight: bold;} -.user-name, .user-role {font-size: 16px; vertical-align: top; line-height: 50px;} +.cell .avatar {display: inline-block; width: 40px; height: 40px; line-height: 40px; position: absolute; left: 200px;} +.user-name {font-weight: bold;} +.user-role {color: #5B606E;} +.user-name, .user-role {font-size: 14px; vertical-align: top; display: table; padding-left: 250px;} .line {border-top: 1px solid #eee; margin: 10px;} #avatarUploadBtn {padding: 4px 12px; position: relative; left: 32px; bottom: 30px;} #avatarForm {height: 10px;} diff --git a/module/user/lang/de.php b/module/user/lang/de.php index e01b7e3ed8..d52a0e5dc7 100644 --- a/module/user/lang/de.php +++ b/module/user/lang/de.php @@ -40,8 +40,11 @@ $lang->user->dingding = 'DingDing'; $lang->user->slack = 'Slack'; $lang->user->whatsapp = 'WhatsApp'; $lang->user->address = 'Adresse'; +$lang->user->addressAB = 'Adresse'; $lang->user->zipcode = 'PLZ'; $lang->user->join = 'Beigetreten am'; +$lang->user->joinAB = 'Induktion'; +$lang->user->priv = 'Gruppe'; $lang->user->visits = 'Besuche'; $lang->user->visions = 'Version Type'; $lang->user->ip = 'Letzte IP'; diff --git a/module/user/lang/en.php b/module/user/lang/en.php index 006d0a5404..f1460a4f46 100644 --- a/module/user/lang/en.php +++ b/module/user/lang/en.php @@ -40,8 +40,11 @@ $lang->user->dingding = 'DingDing'; $lang->user->slack = 'Slack'; $lang->user->whatsapp = 'WhatsApp'; $lang->user->address = 'Address'; +$lang->user->addressAB = 'Address'; $lang->user->zipcode = 'ZipCode'; $lang->user->join = 'Joined'; +$lang->user->joinAB = 'Joined'; +$lang->user->priv = 'Privilege'; $lang->user->visits = 'Visits'; $lang->user->visions = 'Version Type'; $lang->user->ip = 'Last IP'; diff --git a/module/user/lang/fr.php b/module/user/lang/fr.php index 22cb9d016a..4df771cfe6 100644 --- a/module/user/lang/fr.php +++ b/module/user/lang/fr.php @@ -40,8 +40,11 @@ $lang->user->dingding = 'DingDing'; $lang->user->slack = 'Slack'; $lang->user->whatsapp = 'WhatsApp'; $lang->user->address = 'Adresse'; +$lang->user->addressAB = 'Adresse'; $lang->user->zipcode = 'Code Postal'; $lang->user->join = 'Ajouté le'; +$lang->user->joinAB = 'Ajouté le'; +$lang->user->priv = 'Autorité'; $lang->user->visits = 'Nb Visites'; $lang->user->visions = 'Version Type'; $lang->user->ip = 'Dernière IP'; diff --git a/module/user/lang/vi.php b/module/user/lang/vi.php index e1758bcfa4..d4f6d5dd2e 100644 --- a/module/user/lang/vi.php +++ b/module/user/lang/vi.php @@ -39,8 +39,11 @@ $lang->user->dingding = 'DingDing'; $lang->user->slack = 'Slack'; $lang->user->whatsapp = 'WhatsApp'; $lang->user->address = 'Địa chỉ'; +$lang->user->addressAB = 'Địa chỉ'; $lang->user->zipcode = 'ZipCode'; $lang->user->join = 'Đã tham gia'; +$lang->user->joinAB = 'Đã tham gia'; +$lang->user->priv = 'Nhóm quyền'; $lang->user->visits = 'Visits'; $lang->user->ip = 'IP gần nhất'; $lang->user->last = 'Đăng nhập gần nhất'; diff --git a/module/user/lang/zh-cn.php b/module/user/lang/zh-cn.php index 545330ebed..74af4e7151 100644 --- a/module/user/lang/zh-cn.php +++ b/module/user/lang/zh-cn.php @@ -40,8 +40,11 @@ $lang->user->dingding = '钉钉'; $lang->user->slack = 'Slack'; $lang->user->whatsapp = 'WhatsApp'; $lang->user->address = '通讯地址'; +$lang->user->addressAB = '地址'; $lang->user->zipcode = '邮编'; $lang->user->join = '入职日期'; +$lang->user->joinAB = '入职'; +$lang->user->priv = '权限'; $lang->user->visits = '访问次数'; $lang->user->visions = '界面类型'; $lang->user->ip = '最后IP'; diff --git a/module/user/view/profile.html.php b/module/user/view/profile.html.php index 055cacb880..bff9819cfb 100644 --- a/module/user/view/profile.html.php +++ b/module/user/view/profile.html.php @@ -12,18 +12,22 @@ ?> - +user->roleList, $user->role, '')):?> + +
- - avatar ? html::image($user->avatar) : strtoupper($user->account[0]);?> - - realname;?> - user->roleList, $user->role, '');?> +
+ avatar ? html::image($user->avatar) : strtoupper($user->account[0]);?> +
+
realname;?>
+ user->roleList, $user->role, '')):?> +
user->roleList, $user->role, '');?>
+
@@ -61,9 +65,9 @@ - + - +
user->roleList, $user->role, '');?>
user->join;?>user->joinAB;?> join);?>group->priv;?>user->priv;?> name . ' ';?>
@@ -84,7 +88,7 @@ user->zipcode;?> zipcode;?> - user->address;?> + user->addressAB;?> address;?> From 92926fce1d0fe34157c87032e4980f59d3eeffb1 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Tue, 28 Jun 2022 16:48:45 +0800 Subject: [PATCH 2/3] * Finish task#58567. --- module/my/css/profile.css | 13 +++++++------ module/my/view/profile.html.php | 15 +++++++++------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/module/my/css/profile.css b/module/my/css/profile.css index 9bafb49a2d..2f157a6dbc 100644 --- a/module/my/css/profile.css +++ b/module/my/css/profile.css @@ -1,14 +1,15 @@ -.body-modal .main-header {padding: 13px 0px 0px 0;} -.row table {width: 100%; margin-top: 5px;} +.body-modal .main-header {padding: 20px 0px 24px 0; border-bottom: unset;} +.row table {width: 100%; margin-top: 5px; margin-left: 20px;} table+table {border-top: 1px solid #eee;} -.row th {width: 17%; line-height: 30px; padding-right: 20px; text-align: right; font-weight: 500;} +.row th {width: 17%; line-height: 30px; padding-right: 20px; text-align: right; font-weight: unset;} .row td {width: 33%; text-align: left; font-weight: 700;} .main-actions {margin: 5px 0 10px 0; text-align: center;} .user-title {margin: 10px 10px -10px 10px; font-size: 14px; font-weight: bold; padding-left: 10px;} -.user-name {margin-left: 15px; font-weight: bold;} -.user-name, .user-role {line-height: 50px; font-size: 16px; vertical-align: top;} +.user-name {font-weight: bold;} +.user-role {color: #5B606E;} +.user-name, .user-role {font-size: 14px; vertical-align: top; display: table; padding-left: 310px;} -#avatarUpload {display: inline-block; width: 50px; height: 50px; position: relative;} +#avatarUpload {display: inline-block; width: 40px; height: 40px; position: absolute; left: 265px} #avatarForm {position: absolute; top: 0; left: 0; right: 0; bottom: 0;} #avatarUploadBtn {display: block; position: absolute; top: 0; left: 0; right: 0; bottom: 0;} #avatarUploadBtn {opacity: 0; color: #fff; border-radius: 50%; line-height: 50px;} diff --git a/module/my/view/profile.html.php b/module/my/view/profile.html.php index c4cce075b8..1f3f30df17 100644 --- a/module/my/view/profile.html.php +++ b/module/my/view/profile.html.php @@ -13,18 +13,21 @@ app->user->avatar);?> app->user->id);?> +user->roleList, $user->role, '')):?> + +
- +
id='avatarForm' enctype='multipart/form-data'> ', '', "class='btn-avatar' id='avatarUploadBtn' data-toggle='tooltip' data-container='body' data-placement='bottom' title='{$lang->my->uploadAvatar}'");?>
- realname;?> - user->roleList, $user->role, '');?> +
realname;?>
+
user->roleList, $user->role, '');?>
@@ -62,9 +65,9 @@ - + - +
user->roleList, $user->role, '');?>
user->join;?>user->joinAB;?> join);?>group->priv;?>user->priv;?> name . ' ';?>
@@ -84,7 +87,7 @@ user->zipcode;?> zipcode;?> - user->address;?> + user->addressAB;?> address;?> From a757ea76c1f67be6b9bbbe68f3fb6cbf32bd02b8 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Tue, 28 Jun 2022 17:23:20 +0800 Subject: [PATCH 3/3] * Code for task#58567. --- module/user/css/profile.css | 2 +- module/user/view/profile.html.php | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/module/user/css/profile.css b/module/user/css/profile.css index 086318adb4..e14672b79d 100644 --- a/module/user/css/profile.css +++ b/module/user/css/profile.css @@ -1,4 +1,4 @@ -.main-header {margin-bottom: 10px; border-bottom: unset; padding-top: 20px !important; padding-bottom: 24px !important;} +.main-header {border-bottom: unset; padding-top: 20px !important; padding-bottom: 24px !important;} .row table {width: 94%; margin-left: 3%;} .row th {width: 17%; line-height: 32px; padding-right: 20px; text-align: right; font-weight: unset;} .row td {width: 33%; text-align: left; font-weight: 700;} diff --git a/module/user/view/profile.html.php b/module/user/view/profile.html.php index bff9819cfb..89c0152162 100644 --- a/module/user/view/profile.html.php +++ b/module/user/view/profile.html.php @@ -13,7 +13,12 @@ - + + user->roleList, $user->role, '')):?>