This commit is contained in:
tianshujie98
2021-07-30 10:36:18 +08:00
parent e67b31f6a9
commit c9c76ded4f
2 changed files with 9 additions and 2 deletions
+8 -1
View File
@@ -1347,6 +1347,13 @@ class projectModel extends model
$title = "title='{$project->name}'";
}
if($id == 'end')
{
$project->end = $project->end == LONG_TIME ? $this->lang->project->longTime : $project->end;
$class .= ' c-name';
$title = "title='{$project->end}'";
}
if($id == 'budget')
{
$projectBudget = in_array($this->app->getClientLang(), ['zh-cn','zh-tw']) ? round((float)$project->budget / 10000, 2) . $this->lang->project->tenThousand : round((float)$project->budget, 2);
@@ -1390,7 +1397,7 @@ class projectModel extends model
echo $project->begin;
break;
case 'end':
echo $project->end == LONG_TIME ? $this->lang->project->longTime : $project->end;
echo $project->end;
break;
case 'status':
echo "<span class='status-task status-{$project->status}'> " . zget($this->lang->project->statusList, $project->status) . "</span>";
+1 -1
View File
@@ -60,7 +60,7 @@
<?php $placeholder = ($parentProgram and $parentProgram->budget != 0) ? 'placeholder=' . $lang->project->parentBudget . zget($lang->project->currencySymbol, $parentProgram->budgetUnit) . $availableBudget : '';?>
<?php echo html::input('budget', $project->budget != 0 ? $project->budget : '', "class='form-control' " . (strpos($requiredFields, 'budget') !== false ? 'required ' : '') . ($project->budget == 0 ? 'disabled ' : '') . $placeholder);?>
<?php if($parentProgram):?>
<span class='input-group-addon'><?php echo zget($budgetUnitList, $parentProgram->budgetUnit);?></span>
<span class='input-group-addon'><?php echo zget($budgetUnitList, $project->budgetUnit);?></span>
<?php else:?>
<span class='input-group-addon'></span>
<?php echo html::select('budgetUnit', $budgetUnitList, $project->budgetUnit, "class='form-control'");?>