znt/module/product/ui/create.html.php

28 lines
879 B
PHP

<?php
declare(strict_types=1);
/**
* The create view file of product 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 Shujie Tian <tianshujie@easycorp.ltd>
* @package product
* @link https://www.zentao.net
*/
namespace zin;
$fields = useFields('product.create');
$fields->autoLoad('program', 'line');
if(!empty($config->setCode)) $fields->orders('name,code');
if(empty($config->setCode)) $fields->remove('code');
$fields->fullModeOrders('name,code', 'reviewer,QD,RD');
formGridPanel
(
set::title($lang->product->create),
set::fields($fields),
set::loadUrl($loadUrl),
on::click('[name=newLine]', 'toggleLine(e.target)')
);