Add battery conflict report to acl.yaml. Add route to controller for battery conflict report #197

This commit is contained in:
Korina Cordero 2019-03-29 10:06:49 +00:00
parent b09ca589f2
commit a22816d18a
3 changed files with 21 additions and 0 deletions

View file

@ -248,3 +248,5 @@ access_keys:
label: Menu label: Menu
- id: report.reject - id: report.reject
label: Rejection Report label: Rejection Report
- id: report.battery.conflict
label: Battery Conflict Report

View file

@ -17,3 +17,13 @@ rep_reject_detail_submit:
path: /report/rejection_detail path: /report/rejection_detail
controller: App\Controller\ReportController::rejectDetailSubmit controller: App\Controller\ReportController::rejectDetailSubmit
methods: [POST] methods: [POST]
rep_battery_conflict_form:
path: /report/battery_conflict
controller: App\Controller\ReportController::batteryConflictForm
methods: [GET]
rep_battery_conflict_submit:
path: /report/battery_conflict
controller: App\Controller\ReportController::batteryConflictSubmit
methods: [POST]

View file

@ -260,4 +260,13 @@ class ReportController extends BaseController
]); ]);
*/ */
} }
public function batteryConflictForm()
{
$this->denyAccessUnlessGranted('report.battery.conflict', null, 'No access.');
$params = $this->initParameters();
return $this->render('', $params);
}
} }