From 766e8a7a303a97cfabb887c65307ccf8c75686c5 Mon Sep 17 00:00:00 2001 From: lihuifang Date: Tue, 12 Nov 2024 15:50:33 +0800 Subject: [PATCH] +[task#131956,doing,1.5h,1.5h] Add ui function of create kanban project. --- .../test/lib/createkanban.ui.class.php | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 module/project/test/lib/createkanban.ui.class.php diff --git a/module/project/test/lib/createkanban.ui.class.php b/module/project/test/lib/createkanban.ui.class.php new file mode 100644 index 0000000000..0692f7f227 --- /dev/null +++ b/module/project/test/lib/createkanban.ui.class.php @@ -0,0 +1,20 @@ +initForm('project', 'create', array('model' => 'kanban')); + if(isset($kanban['parent'])) $form->dom->parent->picker($kanban['parent']); + $categoryLang = (array)$this->lang->project->projectTypeList; + if(isset($kanban['type'])) $form->dom->btn($categoryLang[$kanban['type']])->click(); + if(isset($kanban['name'])) $form->dom->name->setValue($kanban['name']); + if(isset($kanban['end'])) $form->dom->end->datepicker($kanban['end']); + else $form->dom->longTime->click(); //如果设置了end时间就选择,没有设置就选择长期