From 6dc1ecfa95ffee578262e5dee0af27d28777d031 Mon Sep 17 00:00:00 2001 From: zhouxudong Date: Tue, 14 Jun 2022 08:08:52 +0000 Subject: [PATCH 01/30] * Finish task #56918. --- module/my/control.php | 3 +-- module/my/css/managecontacts.css | 4 +++- module/my/lang/en.php | 1 + module/my/lang/zh-cn.php | 1 + module/my/view/managecontacts.html.php | 11 ++++++----- 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/module/my/control.php b/module/my/control.php index 85542ad550..962f52912b 100755 --- a/module/my/control.php +++ b/module/my/control.php @@ -1155,7 +1155,7 @@ EOF; * @access public * @return void */ - public function manageContacts($listID = 0, $mode = '') + public function manageContacts($listID = 0, $mode = 'new') { if($_POST) { @@ -1217,7 +1217,6 @@ EOF; } $listID = $listID ? $listID : key($lists); - if(!$listID) $mode = 'new'; /* Create or manage list according to mode. */ if($mode == 'new') diff --git a/module/my/css/managecontacts.css b/module/my/css/managecontacts.css index 82c80117ae..6347f30aea 100644 --- a/module/my/css/managecontacts.css +++ b/module/my/css/managecontacts.css @@ -1,3 +1,5 @@ body.body-modal {padding-bottom: 20px; min-height: 400px;} -.side-col {padding-right: 40px; padding-top: 25px;} +.side-col {padding-right: 40px;} .btn-block {display: block; width: 100%; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;} +.title {margin-left: 45px !important;} +.createBtn {width: 100%; margin-bottom: 5px;} diff --git a/module/my/lang/en.php b/module/my/lang/en.php index 5ea1688567..66e1068d95 100644 --- a/module/my/lang/en.php +++ b/module/my/lang/en.php @@ -45,6 +45,7 @@ $lang->my->pri = 'Priority'; $lang->my->alert = 'You can click on your profile at the top right and select "Preference" to modify your information. '; $lang->my->assignedToMe = 'AssignedToMe'; $lang->my->byQuery = 'Search'; +$lang->my->contactList = 'Contact List'; $lang->my->indexAction = 'My Index'; $lang->my->calendarAction = 'My Calendar'; diff --git a/module/my/lang/zh-cn.php b/module/my/lang/zh-cn.php index b1c3471f89..3c168dab0f 100644 --- a/module/my/lang/zh-cn.php +++ b/module/my/lang/zh-cn.php @@ -45,6 +45,7 @@ $lang->my->pri = '优先级'; $lang->my->alert = '后续您可以点击右上方的头像,选择“个性化设置”修改信息。'; $lang->my->assignedToMe = '指派给我'; $lang->my->byQuery = '搜索'; +$lang->my->contactList = '联系人列表'; $lang->my->indexAction = '地盘仪表盘'; $lang->my->calendarAction = '我的日程'; diff --git a/module/my/view/managecontacts.html.php b/module/my/view/managecontacts.html.php index 4f395908f8..621afc8278 100644 --- a/module/my/view/managecontacts.html.php +++ b/module/my/view/managecontacts.html.php @@ -11,21 +11,22 @@ */ ?> -
'> - +
+

my->contactList;?>

+
+ ' . $lang->user->contacts->createList, '', "class='btn btn-secondary createBtn'"); ?> $listName) { - $listClass = ($id == $listID) ? 'btn btn-block active' : 'btn btn-block'; + $listClass = ($id == $listID and $mode == 'edit') ? 'btn btn-block active' : 'btn btn-block'; $shareIcon = in_array($id, $globalContacts) ? ' ' : ''; echo html::a(inlink('managecontacts', "listID=$id&mode=edit"), $shareIcon . $listName, '', "class='{$listClass}' title='$listName'"); } ?> - ' . $lang->user->contacts->createList, '', "class='btn btn-block'"); ?> +
-

From 791cc7a40fb8fa1e6ed90da04c71da0f4725e882 Mon Sep 17 00:00:00 2001 From: leiyong <1549684884@qq.com> Date: Tue, 14 Jun 2022 08:54:42 +0000 Subject: [PATCH 02/30] * Finish task#56926. --- module/productplan/view/browsebylist.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/productplan/view/browsebylist.html.php b/module/productplan/view/browsebylist.html.php index f399b26b96..4d8fc7ab3a 100644 --- a/module/productplan/view/browsebylist.html.php +++ b/module/productplan/view/browsebylist.html.php @@ -9,7 +9,7 @@ * @link https://www.zentao.net */ ?> - +