{% extends 'CmBundle:Z:baseDos.html.twig' %}

{% block stylesheet %}
{% endblock %}

{% block javascripts %}
    <script src="{{asset('js/misJs/alumno.js')}}"></script>
{% endblock %}

{% block content %}
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">Bienvenido {{p.nomPro}} {{p.apePat}} {{p.apeMat}}</h1>
        </div>
        <!-- /.col-lg-12 -->
    </div>
    <!-- /.row -->
    <div class="row">
        <div class="col-lg-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <i class="fa fa-info fa-fw"></i> MIS CURSOS
                </div>
                <!-- /.panel-heading -->
                <div class="panel-body">
                    <div class="row">
                        <div class="col-lg-12">
                            {% for c in cursos %}
                                <a href="{{path('detalles_cursos_profesor_moodle',{ideCur : c.ideCurso})}}">{{c.cvePer.periodo}}:{{c.nombre}}</a><br>
                            {% else %}
                                NO HAY CURSOS DISPONIBLES
                                <a href="{{path('alta_cursos_profesor_moodle')}}" class="btn btn-primary">AGREGAR NUEVO CURSO</a>
                            {% endfor %}
                        </div>
                        <!-- /.col-lg-12 (nested) -->
                    </div>
                    <!-- /.row (nested) -->
                </div>
                <!-- /.panel-body -->
            </div>
            <!-- /.panel -->
        </div>
        <!-- /.col-lg-12 -->
    </div>
    <!-- /.row -->
{% endblock %}
