Files
EasySoft-ZenTaoPMS/module/product/ui/create.html.php
T

179 lines
5.0 KiB
PHP

<?php
/**
* The create view of product of ZenTaoPMS.
*/
/*
======= Attention ======
This file is generated by zin-tool, you should check the following to-do list.
+ Familiar with the use of these widgets in zin: .
+ Check the following variables which used in widgets: $programOptions, $lineOptions, $POOptions, $QDOptions, $RDOptions, $reviewerOptions, $typeOptions, $aclOptions, $whitelistOptions.
+ Check the origin code in module/product/view/create.html.php, and ensure that all features have been implemented.
+ Check the origin js code in module/product/js/common.js and module/product/js/create.js
+ Check the origin css code in module/product/css/common.css and module/product/css/create.css
+ Remove the comments which starts with "zin:"
+ Test according to the new design draft and the original implementation
*/
namespace zin;
/* ====== Preparing and processing page data ====== */
/* zin: Set variables to define picker options for form */
$programOptions = array();
$lineOptions = array();
$POOptions = array();
$QDOptions = array();
$RDOptions = array();
$reviewerOptions = array();
$typeOptions = array(array('value' => "normal", 'text' => "正常"), array('value' => "branch", 'text' => "多分支(适用于客户定制场景)"), array('value' => "platform", 'text' => "多平台(适用于跨平台应用开发,比如IOS、安卓、PC端等)"));
$aclOptions = array(array('checked' => true, 'value' => "private", 'disabled' => false, 'text' => "私有(产品相关负责人、所属项目集的负责人及干系人、相关联项目的团队成员和干系人可访问)"), array('checked' => false, 'value' => "open", 'disabled' => false, 'text' => "公开(有产品视图权限,即可访问)"));
$whitelistOptions = array();
/* ====== Define the page structure with zin widgets ====== */
/* zin: Define the form in main content */
formPanel
(
formGroup
(
set::width("1/3"),
set::name("program"),
set::label("项目集"),
set::control("picker"),
set::items($programOptions)
),
formRow
(
set::hidden(true),
formGroup
(
set::width("1/3"),
set::name("line"),
set::label("产品线"),
set::control("picker"),
set::items($lineOptions)
)
),
formGroup
(
set::width("1/3"),
set::name("name"),
set::label("产品名称"),
set::required(true),
set::control("text")
),
formGroup
(
set::width("1/3"),
set::name("PO"),
set::label("产品负责人"),
set::control("picker"),
set::items($POOptions)
),
formGroup
(
set::width("1/3"),
set::name("QD"),
set::label("测试负责人"),
set::control("picker"),
set::items($QDOptions)
),
formGroup
(
set::width("1/3"),
set::name("RD"),
set::label("发布负责人"),
set::control("picker"),
set::items($RDOptions)
),
formGroup
(
set::width("1/3"),
set::name("reviewer[]"),
set::label("评审人"),
set::control(["type" =>"picker","multiple"=>true]),
set::id("reviewer"),
set::items($reviewerOptions)
),
formGroup
(
set::width("1/3"),
set::name("type"),
set::label("产品类型"),
set::value("normal"),
set::control("picker"),
set::items($typeOptions)
),
formGroup
(
set::width("2/3"),
set::label("产品描述"),
inputGroup
(
control(set(array
(
'id' => "title",
'value' => "",
'disabled' => false,
'type' => "text"
))),
"公共",
btn(set(array
(
'type' => "btn",
'text' => "保存",
'class' => "input-group-btn"
)))
)
),
formGroup
(
set::width("2/3"),
set::name("acl"),
set::label("访问控制"),
set::control("radioList"),
set::items($aclOptions)
),
formGroup
(
set::width("1/3"),
set::label("白名单"),
inputGroup
(
control(set(array
(
'name' => "whitelist[]",
'id' => "whitelist",
'value' => NULL,
'disabled' => false,
'type' => "picker",
'items' => $whitelistOptions,
'multiple' => true
))),
btn(set(array
(
'type' => "btn",
'icon' => "cog",
'text' => "",
'class' => "input-group-btn"
))),
btn(set(array
(
'type' => "btn",
'icon' => "refresh",
'text' => "",
'class' => "input-group-btn"
)))
)
)
);
/* ====== Render page ====== */
render();