Closed alcalyn closed 5 years ago
On testing the dashboard : Once connected to an Event, you arrive on the page /events/select/[UUID] with the detail of Dashboard with the options download Brochure, sponsorship level and event schedule. But once we left this page there is no link to retrieve this detailed page, follow the link "Dashboard" on the left menu should return to it but instead, it only shows the "finish management" button
To go to home page, follow the link on the event name from the header goes to home.html and to "Finish management", follow the link "Dashboard" should go on the event/selected/ with the dashboard details
And the Event "show" action is missing, we might need to add it in the home page when an event is selected (when there is no selection we can look details of all current events)
To resolve : Home.html.twig at lline 15
<div class="col-sm-1 text-center text-sm-right">
<a class="btn btn-info mb-2 mb-md-0"
href="{{ path('event_show', {'id': app.session.get('event-id')}) }}">Details</a>
</div>
<div class="col-sm-5 text-center text-sm-right">
<a class="btn btn-primary" href="{{ path('event_unselect') }}">Finish management on {{ app.session.get('event-name') }}</a>
</div>
{% endif %}```
At sidebar.html.twig at line 4
```{% if app.session.has('event-id') %}
<a class="nav-link {{ app.request.attributes.get('_route') matches '#^(index)$#' ? 'active' }}" href="{{ path('event_select', {'id': app.session.get('event-id')}) }}">
<i class="feather fa fa-home"></i>
Dashboard
</a>
{% else %}
<a class="nav-link {{ app.request.attributes.get('_route') matches '#^(index)$#' ? 'active' }}" href="{{ path('index') }}">
<i class="feather fa fa-home"></i>
Dashboard
</a>
{% endif %}```
PR information
Description
To test it
/
You should see widgets and sidebar.