Add battery conflict report to acl.yaml. Add route to controller for battery conflict report #197
This commit is contained in:
parent
b09ca589f2
commit
a22816d18a
3 changed files with 21 additions and 0 deletions
|
|
@ -248,3 +248,5 @@ access_keys:
|
|||
label: Menu
|
||||
- id: report.reject
|
||||
label: Rejection Report
|
||||
- id: report.battery.conflict
|
||||
label: Battery Conflict Report
|
||||
|
|
|
|||
|
|
@ -17,3 +17,13 @@ rep_reject_detail_submit:
|
|||
path: /report/rejection_detail
|
||||
controller: App\Controller\ReportController::rejectDetailSubmit
|
||||
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]
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue