base_dashboard.twig 3.86 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
{#
 * This file is part of JDEV-BOARDING
 *
 * (c) François Agneray <francois.agneray@lam.fr>
 * (c) Chrystel Moreau <chrystel.moreau@lam.fr>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 #}

11
{% extends "base_backoffice.twig" %}
12

13
{% block title %}Participant{% endblock %}
14
{% block content %}
15
        <div class="container">        
François Agneray's avatar
François Agneray committed
16
17
            <div class="visible-xs-block visible-sm-block btn-group btn-group-justified navbar-jdev-dashboard-xs" role="group">
                <a class="btn btn-default" href="dashboard-home?token={{ token }}">Home</a>
18
                <a class="btn btn-default" href="dashboard-participant-agenda?token={{ token }}">Agenda JDEVs</a>
19
20
21
                {% if jdev.version >= 2 %}
                <a class="btn btn-default" href="dashboard-participant-sondage?token={{ token }}">Sondage</a>               
                {% endif %}
22
                {% if jdev.version >= 3 %}                    
23
24
25
26
                    <a class="btn btn-default" href="dashboard-participant-parcours?token={{ token }}">Parcours</a>
                {% endif %}
                {% if jdev.version >= 4 %}
                    <a class="btn btn-default" href="dashboard-participant-presence?token={{ token }}">Présence</a>
27
                {% endif %}
François Agneray's avatar
François Agneray committed
28
29
            </div>

30
31
32
33
            <nav class="hidden-xs hidden-sm navbar-dashboard">
                <h3 class="navbar-dashboard-item-title">Dashboard Menu</h3>
                <ul class="navbar-dashboard-item-list">
                    <li class="navbar-dashboard-item active">
François Agneray's avatar
François Agneray committed
34
                        <a href="dashboard-home?token={{ token }}"><i class="fa fa-home"></i> Home</a>
35
                    </li>
36
37
38
39
40
41
                    <li class="navbar-dashboard-item">
                        <a href="dashboard-participant-agenda?token={{ token }}" 
                               data-toggle="tooltip" data-placement="bottom" title="Visualisation de l'Agenda complet des JDEVs">
                               <i class="fa fa-calendar"></i> Agenda JDEVs
                        </a>
                    </li>
42
                    {% if jdev.version >= 2 and participant.getRole() != 'Accompagnant' %}
43
44
45
46
47
48
                        <li class="navbar-dashboard-item">
                            <a href="dashboard-participant-sondage?token={{ token }}" 
                               data-toggle="tooltip" data-placement="bottom" title="Visualisation de votre sondage">
                               <i class="fa fa-calendar-o"></i> Sondage</a>
                        </li>
                    {% endif %}
49
50
                    {% if jdev.version >= 3 and participant.getRole() != 'Accompagnant' %}   
                        {% if participant.getAccesValide() %}
51
                        <li class="navbar-dashboard-item navbar-dashboard-item-perso">
52
                            <a href="dashboard-participant-parcours?token={{ token }}" 
53
                               data-toggle="tooltip" data-placement="bottom" title="Inscription aux sessions de formations">
54
                                <i class="fa fa-cogs"></i> Mon Parcours</a>
55
                        </li>
56
                        {% endif %}
57
                    {% endif %}
58
                    {% if jdev.version >= 4 and participant.getRole() != 'Accompagnant' %}
59
60
61
62
                    <li class="navbar-dashboard-item navbar-dashboard-item-perso">
                        <a href="dashboard-participant-presence?token={{ token }}"
                           data-toggle="tooltip" data-placement="bottom" title="Valider ma présence à chaque session de formations">
                           <i class="fa fa-check-circle"></i> Présence</a>
63
                    </li>
64
                    {% endif %}
65
66
                </ul>
            </nav>
67
            
68
69

            
François Agneray's avatar
François Agneray committed
70
            {% block content_dashboard %}{% endblock %}
71
        </div>
72
{% endblock %}