diff --git a/module/execution/view/edit.html.php b/module/execution/view/edit.html.php index 5e5c735d5e..db398b45e5 100644 --- a/module/execution/view/edit.html.php +++ b/module/execution/view/edit.html.php @@ -87,7 +87,7 @@ - model, array('waterfall', 'waterfallplus', 'ipd'))):?> + model, array('waterfall', 'waterfallplus'))):?> stage->type;?> @@ -97,7 +97,7 @@ - type != 'kanban'):?> + type != 'kanban' and $project->model != 'ipd'):?> execution->type;?> diff --git a/module/programplan/view/create.html.php b/module/programplan/view/create.html.php index acddc2e0f7..417fd94455 100644 --- a/module/programplan/view/create.html.php +++ b/module/programplan/view/create.html.php @@ -100,7 +100,9 @@ '>programplan->realBegan;?> '>programplan->realEnd;?> '>programplan->desc;?> + model != 'ipd'):?> actions;?> + @@ -119,18 +121,33 @@ % - '>model == 'ipd' ? $lang->stage->ipdTypeList : $lang->stage->typeList, $stage->type, "class='form-control'") : ($project->model == 'ipd' ? zget($lang->stage->ipdTypeList, $programPlan->attribute) : zget($lang->stage->typeList, $programPlan->attribute));?> + '> + model == 'ipd' ? 'disabled' : ''; + echo html::select("attributes[$i]", $project->model == 'ipd' ? $lang->stage->ipdTypeList : $lang->stage->typeList, $stage->type, "class='form-control' $disabled"); + if($project->model == 'ipd') echo html::hidden("attributes[$i]", $stage->type); + } + else + { + $project->model == 'ipd' ? zget($lang->stage->ipdTypeList, $programPlan->attribute) : zget($lang->stage->typeList, $programPlan->attribute); + } + ?> + '>execution->aclList, 'open', "class='form-control' $class");?> >programplan->milestoneList, 0);?> > > + model != 'ipd'):?> + @@ -152,7 +169,20 @@ % - '>model == 'ipd' ? $lang->stage->ipdTypeList : $lang->stage->typeList, $plan->attribute, "class='form-control'") : ($project->model == 'ipd' ? zget($lang->stage->ipdTypeList, $programPlan->attribute) : zget($lang->stage->typeList, $programPlan->attribute));?> + '> + model == 'ipd' ? 'disabled' : ''; + echo html::select("attributes[$i]", $project->model == 'ipd' ? $lang->stage->ipdTypeList : $lang->stage->typeList, $plan->attribute, "class='form-control' $disabled"); + if($project->model == 'ipd') echo html::hidden("attributes[$i]", $plan->attribute); + } + else + { + $project->model == 'ipd' ? zget($lang->stage->ipdTypeList, $programPlan->attribute) : zget($lang->stage->typeList, $programPlan->attribute); + } + ?> + >execution->aclList, $plan->acl, "class='form-control' $class");?> >programplan->milestoneList, $plan->milestone, $disabled);?> @@ -160,16 +190,19 @@ > > '>desc, "rows='1' class='form-control autosize'");?> + model != 'ipd'):?> order);?> + + model != 'ipd'):?> execution->typeList, '', "class='form-control chosen'");?> @@ -200,6 +233,7 @@ + diff --git a/module/programplan/view/edit.html.php b/module/programplan/view/edit.html.php index 3c1847f523..d8aadc0d23 100644 --- a/module/programplan/view/edit.html.php +++ b/module/programplan/view/edit.html.php @@ -60,7 +60,20 @@ programplan->attribute;?> - model == 'ipd' ? $lang->stage->ipdTypeList : $lang->stage->typeList, $plan->attribute, "class='form-control'") : zget($lang->stage->typeList, $plan->attribute);?> + model == 'ipd') + { + echo zget($lang->stage->ipdTypeList, $plan->attribute); + } + elseif($enableOptionalAttr) + { + echo html::select('attribute', $lang->stage->typeList, $plan->attribute, "class='form-control'"); + } + else + { + echo zget($lang->stage->typeList, $plan->attribute); + } + ?> model != 'ipd'):?>