* Remove unused file.
This commit is contained in:
@@ -1,90 +0,0 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
/**
|
||||
* The UI file of story 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 Wang Yidong <yidong@easycorp.ltd>
|
||||
* @package story
|
||||
* @link https://www.zentao.net
|
||||
*/
|
||||
|
||||
namespace zin;
|
||||
|
||||
$storyType = $story->type;
|
||||
|
||||
$cols = array();
|
||||
$cols['id'] = $config->story->dtable->fieldList['id'];
|
||||
$cols['pri'] = $config->story->dtable->fieldList['pri'];
|
||||
if(!empty($product->shadow)) $cols['product'] = $config->story->dtable->fieldList['product'];
|
||||
$cols['title'] = $config->story->dtable->fieldList['title'];
|
||||
$cols['status'] = $config->story->dtable->fieldList['status'];
|
||||
$cols['openedBy'] = $config->story->dtable->fieldList['openedBy'];
|
||||
$cols['assignedTo'] = $config->story->dtable->fieldList['assignedTo'];
|
||||
|
||||
$data = array();
|
||||
foreach($stories2Link as $story) $data[] = $this->story->formatStoryForList($story);
|
||||
|
||||
modalHeader(set::title($story->type == 'story' ? $lang->story->linkStoriesAB : $lang->story->linkRequirementsAB));
|
||||
|
||||
searchForm
|
||||
(
|
||||
set::module('story'),
|
||||
set::simple(true),
|
||||
set::show(true)
|
||||
);
|
||||
|
||||
dtable
|
||||
(
|
||||
setID('linkStories'),
|
||||
set::userMap($users),
|
||||
set::cols($cols),
|
||||
set::data($data),
|
||||
set::checkboxLabel($lang->selectAll),
|
||||
set::footPager(usePager()),
|
||||
set::footer(array('checkbox', 'toolbar', 'flex', 'pager')),
|
||||
);
|
||||
|
||||
div
|
||||
(
|
||||
setClass('flex justify-center gap-4 p-4'),
|
||||
btn
|
||||
(
|
||||
setClass('px-6'),
|
||||
set::type('primary'),
|
||||
set::btnType('button'),
|
||||
set::text($lang->save),
|
||||
setData(array('on' => 'click', 'call' => 'fnLinkStories', 'params' => 'event')),
|
||||
),
|
||||
isInModal() ? null : backBtn(setClass('px-6'))
|
||||
);
|
||||
|
||||
h::js
|
||||
(
|
||||
<<<EOD
|
||||
window.fnLinkStories = function(e)
|
||||
{
|
||||
let dtable = zui.DTable.query('#linkStories');
|
||||
let checkedList = dtable.$.getChecks();
|
||||
let itemBoxHtml = '';
|
||||
let index = $('#linkStoriesBox > div').length;
|
||||
checkedList.forEach(function(id)
|
||||
{
|
||||
var linkStoryField = '{$storyType}' == 'story' ? 'linkStories' : 'linkRequirements';
|
||||
var storyInfo = dtable.$.getRowInfo(id).data;
|
||||
var checkbox = "<div class='checkbox-primary inline'><input type='checkbox' id='" + linkStoryField + '_' + index + "' checked='checked' name='" + linkStoryField + "[]' " + "value=" + storyInfo.id + " /><label for='" + linkStoryField + '_' + index + "'></label></div>";
|
||||
var idLabel = "<span class='label circle size-sm'>" + storyInfo.id + "</span>";
|
||||
var titleSpan = "<span class='linkStoryTitle'>" + storyInfo.title + "</span>";
|
||||
|
||||
itemBoxHtml += "<div title='" + storyInfo.title + "'>" + checkbox + idLabel + titleSpan + "</div>";
|
||||
index ++;
|
||||
});
|
||||
|
||||
$('#linkStoriesBox').append(itemBoxHtml);
|
||||
zui.Modal.hide('#' + $(e.target).closest('.modal').attr('id'));
|
||||
};
|
||||
EOD
|
||||
);
|
||||
|
||||
render();
|
||||
Reference in New Issue
Block a user