diff --git a/module/tutorial/config/starter.php b/module/tutorial/config/starter.php index 688db53717..304a714c29 100644 --- a/module/tutorial/config/starter.php +++ b/module/tutorial/config/starter.php @@ -93,3 +93,38 @@ $starter->tasks['createProgram']['steps'][] = array( 'title' => $lang->tutorial->starter->createProgram->step4->name, 'desc' => $lang->tutorial->starter->createProgram->step4->desc ); + +$starter->tasks['createProduct'] = array(); +$starter->tasks['createProduct']['name'] = 'createProduct'; +$starter->tasks['createProduct']['title'] = $lang->tutorial->starter->createProduct->title; +$starter->tasks['createProduct']['startUrl'] = array('product', 'all'); +$starter->tasks['createProduct']['steps'] = array(); + +$starter->tasks['createProduct']['steps'][] = array( + 'type' => 'openApp', + 'app' => 'product', + 'title' => $lang->tutorial->starter->createProduct->step1->name, + 'desc' => $lang->tutorial->starter->createProduct->step1->desc +); + +$starter->tasks['createProduct']['steps'][] = array( + 'type' => 'click', + 'target' => '#actionBar a.create-product-btn', + 'page' => 'product-all', + 'app' => 'product', + 'title' => $lang->tutorial->starter->createProduct->step2->name, + 'desc' => $lang->tutorial->starter->createProduct->step2->desc +); + +$starter->tasks['createProduct']['steps'][] = array( + 'type' => 'form', + 'page' => 'product-create', + 'title' => $lang->tutorial->starter->createProduct->step3->name +); + +$starter->tasks['createProduct']['steps'][] = array( + 'type' => 'saveForm', + 'page' => 'product-create', + 'title' => $lang->tutorial->starter->createProduct->step4->name, + 'desc' => $lang->tutorial->starter->createProduct->step4->desc +); diff --git a/module/tutorial/lang/zh-cn.php b/module/tutorial/lang/zh-cn.php index 7754256f97..dc94d91659 100644 --- a/module/tutorial/lang/zh-cn.php +++ b/module/tutorial/lang/zh-cn.php @@ -141,6 +141,24 @@ $lang->tutorial->starter->createProgram->step4 = new stdClass(); $lang->tutorial->starter->createProgram->step4->name = '保存表单'; $lang->tutorial->starter->createProgram->step4->desc = '保存后在项目视角和产品视角列表中均可查看'; +$lang->tutorial->starter->createProduct = new stdClass(); +$lang->tutorial->starter->createProduct->title = '创建产品'; + +$lang->tutorial->starter->createProduct->step1 = new stdClass(); +$lang->tutorial->starter->createProduct->step1->name = '点击产品'; +$lang->tutorial->starter->createProduct->step1->desc = '您可以在这里维护管理产品'; + +$lang->tutorial->starter->createProduct->step2 = new stdClass(); +$lang->tutorial->starter->createProduct->step2->name = '点击添加产品'; +$lang->tutorial->starter->createProduct->step2->desc = '您可以在这里添加产品'; + +$lang->tutorial->starter->createProduct->step3 = new stdClass(); +$lang->tutorial->starter->createProduct->step3->name = '填写表单'; + +$lang->tutorial->starter->createProduct->step4 = new stdClass(); +$lang->tutorial->starter->createProduct->step4->name = '保存表单'; +$lang->tutorial->starter->createProduct->step4->desc = '保存后可以在产品列表中查看'; + $lang->tutorial->scrumProjectManage = new stdClass(); $lang->tutorial->scrumProjectManage->title = 'Scrum项目管理教程';