+ Compatible with the IPD project phase creation page.
This commit is contained in:
@@ -3,6 +3,15 @@ window.onRenderRow = function(row, rowIdx, data)
|
||||
if(row.children('[data-name=milestone]').find('input[type=radio]:checked').length == 0) row.children('[data-name=milestone]').find('input[type=radio]').eq(1).prop('checked', true);
|
||||
row.children('[data-name=type]').find('[name^=type]').picker({disabled: true});
|
||||
|
||||
if(project.model == 'ipd')
|
||||
{
|
||||
row.find('[data-name="attribute"]').find('.picker-box').on('inited', function(e, info)
|
||||
{
|
||||
let $attributePicker = info[0];
|
||||
$attributePicker.render({disabled: true});
|
||||
});
|
||||
}
|
||||
|
||||
if(data != undefined)
|
||||
{
|
||||
if(data.hasOwnProperty('type'))
|
||||
|
||||
@@ -210,6 +210,7 @@ jsVar('projectID', $project->id);
|
||||
jsVar('productID', $productID);
|
||||
jsVar('planID', $planID);
|
||||
jsVar('type', $executionType);
|
||||
jsVar('project', $project);
|
||||
|
||||
featureBar(li
|
||||
(
|
||||
|
||||
@@ -107,6 +107,11 @@ class programplanZen extends programplan
|
||||
/* Compute fields for create view. */
|
||||
list($visibleFields, $requiredFields, $customFields, $showFields, $defaultFields) = $this->computeFieldsCreateView($viewData->executionType);
|
||||
|
||||
if($viewData->project->model == 'ipd')
|
||||
{
|
||||
$this->config->programplan->form->create['attribute']['options'] = $this->lang->stage->ipdTypeList;
|
||||
}
|
||||
|
||||
$this->view->title = $this->lang->programplan->create . $this->lang->colon . $viewData->project->name;
|
||||
$this->view->productList = $viewData->productList;
|
||||
$this->view->project = $viewData->project;
|
||||
|
||||
Reference in New Issue
Block a user