diff --git a/module/program/config/dtable.php b/module/program/config/dtable.php index 1f6aa272a9..614b0ce824 100644 --- a/module/program/config/dtable.php +++ b/module/program/config/dtable.php @@ -313,7 +313,7 @@ $config->program->browse->dtable->fieldList['actions']['actionsMap'] = array 'program_activate' => array('icon' => 'icon-active', 'hint' => $lang->program->activate, 'url' => helper::createLink('program', 'activate', "programID={id}"), 'data-toggle' => 'modal'), 'program_other' => array('caret' => true, 'hint' => $lang->other, 'type' => 'dropdown'), 'program_edit' => array('icon' => 'icon-edit', 'hint' => $lang->program->edit, 'url' => helper::createLink('program', 'edit', "programID={id}")), - 'program_create' => array('icon' => 'icon-split', 'hint' => $lang->program->create, 'url' => helper::createLink('program', 'create', "programID={id}")), + 'program_create' => array('icon' => 'icon-split', 'hint' => $lang->program->children, 'url' => helper::createLink('program', 'create', "programID={id}")), 'program_delete' => array('icon' => 'icon-trash', 'hint' => $lang->program->delete), 'project_start' => array('icon' => 'icon-start', 'hint' => $lang->project->start, 'url' => helper::createLink('project', 'start', "projectID={id}"), 'data-toggle' => 'modal'), 'project_suspend' => array('icon' => 'icon-pause', 'hint' => $lang->project->suspend, 'url' => helper::createLink('project', 'suspend', "projectID={id}"), 'data-toggle' => 'modal'), diff --git a/module/program/control.php b/module/program/control.php index 2a98032811..b2d8a5f7c1 100644 --- a/module/program/control.php +++ b/module/program/control.php @@ -165,8 +165,7 @@ class program extends control $extra = str_replace(array(',', ' '), array('&', ''), $extra); parse_str($extra, $output); - $this->view->title = $this->lang->program->create; - + $this->view->title = isset($parentProgram->id) ? $this->lang->program->children : $this->lang->program->create; $this->view->gobackLink = (isset($output['from']) && $output['from'] == 'global') ? $this->createLink('program', 'browse') : ''; $this->view->pmUsers = $this->loadModel('user')->getPairs('noclosed|nodeleted|pmfirst'); $this->view->poUsers = $this->user->getPairs('noclosed|nodeleted|pofirst'); diff --git a/module/program/ui/common.field.php b/module/program/ui/common.field.php index 1ef2b2ae24..9b46a57514 100644 --- a/module/program/ui/common.field.php +++ b/module/program/ui/common.field.php @@ -7,6 +7,7 @@ $fields = defineFieldList('program'); $fields->field('parent') ->items(data('parents')) ->value(data('parentProgram.id') ? data('parentProgram.id') : 0) + ->disabled(!empty(data('parentProgram.id'))) ->data('parentBudget', data('parentProgram.budget')) ->data('parentBegin', data('parentProgram.begin')) ->data('parentEnd', data('parentProgram.end'));