diff --git a/config/acl.yaml b/config/acl.yaml index a22d351a..47d08fbd 100644 --- a/config/acl.yaml +++ b/config/acl.yaml @@ -37,6 +37,19 @@ access_keys: acls: - id: database.menu label: Menu + - id: battery + label: Battery Access + acls: + - id: battery.menu + label: Menu + - id: battery.list + label: List + - id: battery.add + label: Add + - id: battery.update + label: Update + - id: battery.delete + label: Delete - id: bmfg label: Battery Manufacturer Access acls: diff --git a/config/menu.yaml b/config/menu.yaml index 7f9c7043..e18a6ebb 100644 --- a/config/menu.yaml +++ b/config/menu.yaml @@ -20,6 +20,10 @@ main_menu: acl: database.menu label: Database icon: flaticon-tabs + - id: battery_list + acl: battery.list + label: Batteries + parent: database - id: bmfg_list acl: bmfg.list label: Battery Manufacturers diff --git a/config/routes.yaml b/config/routes.yaml index 840698f0..45cc9494 100644 --- a/config/routes.yaml +++ b/config/routes.yaml @@ -88,6 +88,42 @@ role_delete: controller: App\Controller\RoleController::destroy methods: [DELETE] +# batteries + +battery_list: + path: /batteries + controller: App\Controller\BatteryController::index + +battery_rows: + path: /batteries/rows + controller: App\Controller\BatteryController::rows + methods: [POST] + +battery_create: + path: /batteries/create + controller: App\Controller\BatteryController::create + methods: [GET] + +battery_create_submit: + path: /batteries/create + controller: App\Controller\BatteryController::createSubmit + methods: [POST] + +battery_update: + path: /batteries/{id} + controller: App\Controller\BatteryController::update + methods: [GET] + +battery_update_submit: + path: /batteries/{id} + controller: App\Controller\BatteryController::updateSubmit + methods: [POST] + +battery_delete: + path: /batteries/{id} + controller: App\Controller\BatteryController::destroy + methods: [DELETE] + # battery manufacturers bmfg_list: