* Finish create managecontacts zin page.
This commit is contained in:
@@ -24,7 +24,6 @@ $config->index->appGroup['user'] = 'admin';
|
||||
|
||||
$config->index->oldPages = array();
|
||||
$config->index->oldPages[] = 'my-dynamic';
|
||||
$config->index->oldPages[] = 'my-managecontacts';
|
||||
$config->index->oldPages[] = 'product-roadmap';
|
||||
$config->index->oldPages[] = 'program-kanban';
|
||||
$config->index->oldPages[] = 'project-kanban';
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
#mainContent .panel-body {padding: 0;}
|
||||
@@ -0,0 +1,12 @@
|
||||
function getCreateForm(event)
|
||||
{
|
||||
const url = $.createLink('my', 'manageContacts', 'listID=&mode=new');
|
||||
loadPage(url, '#dataForm');
|
||||
}
|
||||
|
||||
function getEditForm(event)
|
||||
{
|
||||
const listID = '3';
|
||||
const url = $.createLink('my', 'manageContacts', 'listID=' + listID + '&mode=edit');
|
||||
loadPage(url, '#dataForm');
|
||||
}
|
||||
@@ -48,6 +48,8 @@ $lang->my->alert = 'You can click on your profile at the top right and
|
||||
$lang->my->assignedToMe = 'AssignedToMe';
|
||||
$lang->my->byQuery = 'Search';
|
||||
$lang->my->contactList = 'Contact List';
|
||||
$lang->my->myContact = 'My Contact';
|
||||
$lang->my->publicContact = 'Public Contact';
|
||||
|
||||
$lang->my->indexAction = 'My Index';
|
||||
$lang->my->calendarAction = 'My Calendar';
|
||||
|
||||
@@ -48,6 +48,8 @@ $lang->my->alert = 'You can click on your profile at the top right and
|
||||
$lang->my->assignedToMe = 'AssignedToMe';
|
||||
$lang->my->byQuery = 'Search';
|
||||
$lang->my->contactList = 'Contact List';
|
||||
$lang->my->myContact = 'My Contact';
|
||||
$lang->my->publicContact = 'Public Contact';
|
||||
|
||||
$lang->my->indexAction = 'My Index';
|
||||
$lang->my->calendarAction = 'My Calendar';
|
||||
|
||||
@@ -48,6 +48,8 @@ $lang->my->alert = 'You can click on your profile at the top right and
|
||||
$lang->my->assignedToMe = 'AssignedToMe';
|
||||
$lang->my->byQuery = 'Search';
|
||||
$lang->my->contactList = 'Contact List';
|
||||
$lang->my->myContact = 'My Contact';
|
||||
$lang->my->publicContact = 'Public Contact';
|
||||
|
||||
$lang->my->indexAction = 'My Index';
|
||||
$lang->my->calendarAction = 'My Calendar';
|
||||
|
||||
@@ -48,6 +48,8 @@ $lang->my->alert = '后续您可以点击右上方的头像,选择
|
||||
$lang->my->assignedToMe = '指派给我';
|
||||
$lang->my->byQuery = '搜索';
|
||||
$lang->my->contactList = '联系人列表';
|
||||
$lang->my->myContact = '我的联系人';
|
||||
$lang->my->publicContact = '公共联系人';
|
||||
|
||||
$lang->my->indexAction = '地盘仪表盘';
|
||||
$lang->my->calendarAction = '我的日程';
|
||||
|
||||
@@ -0,0 +1,139 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
/**
|
||||
* The managecontacts view file of my module of ZenTaoPMS.
|
||||
* @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
|
||||
* @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
|
||||
* @author Yuting Wang <wangyuting@easycorp.ltd>
|
||||
* @package my
|
||||
* @link https://www.zentao.net
|
||||
*/
|
||||
namespace zin;
|
||||
|
||||
formPanel
|
||||
(
|
||||
set::actions(array()),
|
||||
on::click('#createContact', 'getCreateForm'),
|
||||
on::click('.editContact', 'getEditForm'),
|
||||
div
|
||||
(
|
||||
set::id('manageContacts'),
|
||||
set::class('w-full flex'),
|
||||
cell
|
||||
(
|
||||
set::width('180px'),
|
||||
set::class('border-r'),
|
||||
div
|
||||
(
|
||||
set::class('border-b py-4 pr-4'),
|
||||
div(span(set::class('text-gray'), $lang->my->contactList)),
|
||||
div
|
||||
(
|
||||
set::class('pt-2'),
|
||||
a
|
||||
(
|
||||
set::id('createContact'),
|
||||
set::class('btn secondary-pale btn-secondary w-full'),
|
||||
set::href('javascript:;'),
|
||||
icon('plus'),
|
||||
$lang->user->contacts->createList
|
||||
)
|
||||
)
|
||||
),
|
||||
div
|
||||
(
|
||||
tabs
|
||||
(
|
||||
tabPane
|
||||
(
|
||||
set::key('my'),
|
||||
set::title($lang->my->myContact),
|
||||
set::active(true),
|
||||
ul
|
||||
(
|
||||
li(set::class('active'), a(set::href('123'), 123)),
|
||||
li(a(set::href('123'), 456))
|
||||
)
|
||||
),
|
||||
tabPane
|
||||
(
|
||||
set::key('public'),
|
||||
set::title($lang->my->publicContact),
|
||||
ul
|
||||
(
|
||||
li(set::class('active'), 123),
|
||||
li(456)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
cell
|
||||
(
|
||||
set::id('dataForm'),
|
||||
set::class('flex-1 px-8'),
|
||||
div
|
||||
(
|
||||
set('class', 'panel-title text-lg flex w-full py-6'),
|
||||
'创建联系人'
|
||||
),
|
||||
div
|
||||
(
|
||||
input(set::class('hidden'), set::name('mode'), set::value($mode)),
|
||||
formRow
|
||||
(
|
||||
set::class('py-2'),
|
||||
formGroup
|
||||
(
|
||||
set::width('1/2'),
|
||||
set::label('名称'),
|
||||
input
|
||||
(
|
||||
set::name('newList'),
|
||||
set::value()
|
||||
)
|
||||
)
|
||||
),
|
||||
formRow
|
||||
(
|
||||
set::class('py-2'),
|
||||
formGroup
|
||||
(
|
||||
set::label('选择用户'),
|
||||
select
|
||||
(
|
||||
set::multiple(true),
|
||||
set::name('users[]'),
|
||||
set::items($users),
|
||||
set::value()
|
||||
)
|
||||
)
|
||||
),
|
||||
formRow
|
||||
(
|
||||
formGroup
|
||||
(
|
||||
set::label(''),
|
||||
set::width('1/1'),
|
||||
checkbox
|
||||
(
|
||||
set::name('public'),
|
||||
set::text('公开联系人'),
|
||||
)
|
||||
)
|
||||
),
|
||||
formRow
|
||||
(
|
||||
formGroup
|
||||
(
|
||||
set::label(''),
|
||||
set::class('form-actions justify-start'),
|
||||
button(set::class('btn primary'), set::type('submit'), $lang->save)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
render();
|
||||
@@ -285,7 +285,7 @@ $lang->user->contacts->manage = '维护列表';
|
||||
$lang->user->contacts->contactsList = '已有列表';
|
||||
$lang->user->contacts->selectedUsers = '选择用户';
|
||||
$lang->user->contacts->selectList = '选择列表';
|
||||
$lang->user->contacts->createList = '创建新列表';
|
||||
$lang->user->contacts->createList = '创建联系人';
|
||||
$lang->user->contacts->noListYet = '还没有创建任何列表,请先创建联系人列表。';
|
||||
$lang->user->contacts->confirmDelete = '您确定要删除这个列表吗?';
|
||||
$lang->user->contacts->or = ' 或者 ';
|
||||
|
||||
Reference in New Issue
Block a user