Fix menu routing for competitor entity
This commit is contained in:
parent
ee89893619
commit
793ccf534e
7 changed files with 24 additions and 27 deletions
|
|
@ -2,6 +2,20 @@ catalyst_auth:
|
||||||
main:
|
main:
|
||||||
user_entity: "App\\Entity\\User"
|
user_entity: "App\\Entity\\User"
|
||||||
acl_data:
|
acl_data:
|
||||||
|
- id: competitor
|
||||||
|
label: Competitor Access
|
||||||
|
acls:
|
||||||
|
- id: competitor.menu
|
||||||
|
label: Menu
|
||||||
|
- id: competitor.list
|
||||||
|
label: List
|
||||||
|
- id: competitor.add
|
||||||
|
label: Add
|
||||||
|
- id: competitor.update
|
||||||
|
label: Update
|
||||||
|
- id: competitor.delete
|
||||||
|
label: Delete
|
||||||
|
|
||||||
- id: dashboard
|
- id: dashboard
|
||||||
label: Dashboard Access
|
label: Dashboard Access
|
||||||
acls:
|
acls:
|
||||||
|
|
@ -673,19 +687,6 @@ catalyst_auth:
|
||||||
- id: item_pricing.update
|
- id: item_pricing.update
|
||||||
label: Update
|
label: Update
|
||||||
|
|
||||||
- id: competitor
|
|
||||||
label: Competitors
|
|
||||||
acls:
|
|
||||||
- id: competitor.menu
|
|
||||||
label: Menu
|
|
||||||
- id: competitor.list
|
|
||||||
label: List
|
|
||||||
- id: competitor.add
|
|
||||||
label: Add
|
|
||||||
- id: competitor.update
|
|
||||||
label: Update
|
|
||||||
- id: competitor.delete
|
|
||||||
label: Delete
|
|
||||||
|
|
||||||
api:
|
api:
|
||||||
user_entity: "App\\Entity\\ApiUser"
|
user_entity: "App\\Entity\\ApiUser"
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ catalyst_menu:
|
||||||
order: 1
|
order: 1
|
||||||
|
|
||||||
|
|
||||||
- id: competitors
|
- id: competitor
|
||||||
acl: competitor.menu
|
acl: competitor.menu
|
||||||
label: Competitors
|
label: Competitors
|
||||||
icon: fa fa-battery-0 #hehe
|
icon: fa fa-battery-0 #hehe
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
competitor_list:
|
competitor:
|
||||||
path: /competitors
|
path: /competitors
|
||||||
controller: App\Controller\CompetitorController::index
|
controller: App\Controller\CompetitorController::index
|
||||||
|
|
||||||
|
|
@ -18,12 +18,12 @@ competitor_create_submit:
|
||||||
methods: [POST]
|
methods: [POST]
|
||||||
|
|
||||||
competitor_update:
|
competitor_update:
|
||||||
path: /competitors/update/{id}
|
path: /competitors/{id}
|
||||||
controller: App\Controller\CompetitorController::updateForm
|
controller: App\Controller\CompetitorController::updateForm
|
||||||
methods: [GET]
|
methods: [GET]
|
||||||
|
|
||||||
competitor_update_submit:
|
competitor_update_submit:
|
||||||
path: /competitors/update/{id}
|
path: /competitors/{id}
|
||||||
controller: App\Controller\CompetitorController::updateSubmit
|
controller: App\Controller\CompetitorController::updateSubmit
|
||||||
methods: [POST]
|
methods: [POST]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,6 @@ home:
|
||||||
path: /
|
path: /
|
||||||
controller: App\Controller\HomeController::index
|
controller: App\Controller\HomeController::index
|
||||||
|
|
||||||
home2:
|
|
||||||
path: /home
|
|
||||||
controller: App\Controller\HomeController::index
|
|
||||||
|
|
||||||
rider_locations:
|
rider_locations:
|
||||||
path: /rider_locations
|
path: /rider_locations
|
||||||
controller: App\Controller\HomeController::getRiderLocations
|
controller: App\Controller\HomeController::getRiderLocations
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ class CompetitorController extends Controller
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Menu(selected="competitors")
|
* @Menu(selected="competitor")
|
||||||
*/
|
*/
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
|
|
@ -125,7 +125,7 @@ class CompetitorController extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Menu(selected="competitors")
|
* @Menu(selected="competitor")
|
||||||
*/
|
*/
|
||||||
public function addForm()
|
public function addForm()
|
||||||
{
|
{
|
||||||
|
|
@ -182,7 +182,7 @@ class CompetitorController extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Menu(selected="competitors")
|
* @Menu(selected="competitor")
|
||||||
*/
|
*/
|
||||||
public function updateForm($id)
|
public function updateForm($id)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
namespace App\Entity;
|
namespace App\Entity;
|
||||||
|
|
||||||
use App\Repository\CompetitorRepository;
|
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
<li class="m-menu__item " aria-haspopup="true" >
|
<li class="m-menu__item " aria-haspopup="true" >
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<a " href="{{ mi.getRoute }}" class="m-menu__link{% if mi.hasChildren %} m-menu__toggle{% endif %}">
|
<a href="{{ menu_link(mi) }}" class="m-menu__link{% if mi.hasChildren %} m-menu__toggle{% endif %}">
|
||||||
<i class="m-menu__link-icon {{ mi.getIcon }}"></i>
|
<i class="m-menu__link-icon {{ mi.getIcon }}"></i>
|
||||||
<span class="m-menu__link-title">
|
<span class="m-menu__link-title">
|
||||||
<span class="m-menu__link-wrap">
|
<span class="m-menu__link-wrap">
|
||||||
|
|
@ -49,7 +49,7 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
<li class="m-menu__item " aria-haspopup="true" >
|
<li class="m-menu__item " aria-haspopup="true" >
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a " href="{{ menu_link(mi) }}" class="m-menu__link ">
|
<a href="{{ menu_link(mi) }}" class="m-menu__link ">
|
||||||
<i class="m-menu__link-bullet m-menu__link-bullet--dot">
|
<i class="m-menu__link-bullet m-menu__link-bullet--dot">
|
||||||
<span></span>
|
<span></span>
|
||||||
</i>
|
</i>
|
||||||
|
|
@ -63,3 +63,4 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue