DarkmiraTour / community-event-manager

Web application with a collection of tools helping people organising community events such as multi-days conference with reminders, CRM and such
GNU General Public License v3.0
21 stars 22 forks source link

[#87] Dashboard #147

Closed alcalyn closed 5 years ago

alcalyn commented 5 years ago

PR information

Q A
Branch? Develop
Bug fix? no
New feature? yes
Tests pass? yes
Related issue #87

Description

Capture d’écran - 2019-03-29 à 15 21 34

To test it

You should see widgets and sidebar.

kevinjhappy commented 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

kevinjhappy commented 5 years ago

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)

kevinjhappy commented 5 years ago

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 %}```