added hourly and money budgets to activity, project and customer (#843)
This commit is contained in:
@@ -101,6 +101,21 @@ class ProjectController extends AbstractController
|
||||
return $this->renderProjectForm($project, $request);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Route(path="/{id}/budget", name="admin_project_budget", methods={"GET"})
|
||||
* @Security("is_granted('budget', project)")
|
||||
*
|
||||
* @param Project $project
|
||||
* @return \Symfony\Component\HttpFoundation\Response
|
||||
*/
|
||||
public function budgetAction(Project $project)
|
||||
{
|
||||
return $this->render('project/budget.html.twig', [
|
||||
'project' => $project,
|
||||
'stats' => $this->getRepository()->getProjectStatistics($project)
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Route(path="/{id}/edit", name="admin_project_edit", methods={"GET", "POST"})
|
||||
* @Security("is_granted('edit', project)")
|
||||
@@ -238,6 +253,7 @@ class ProjectController extends AbstractController
|
||||
'method' => 'POST',
|
||||
'currency' => $currency,
|
||||
'create_more' => true,
|
||||
'include_budget' => $this->isGranted('budget', $project)
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user