From 0832f4de67c3ec04b8164e03ae89dead78cf20a6 Mon Sep 17 00:00:00 2001 From: Wilmer Ramones Date: Thu, 7 Jul 2016 15:14:27 -0400 Subject: [PATCH] adscripcion completada, solicitud creada, plantilla de la aplicacion comenzada y controlada por los roles --- app/Resources/views/base_app.html.twig | 79 ++++ app/Resources/views/cea/index.html.twig | 50 +++ .../views/registration/register.html.twig | 31 +- app/sessions/sess_bgvgescqjdgk1dlrb0koron6v2 | 1 - nbproject/project.properties | 1 + src/AppBundle/Controller/DocenteController.php | 46 +++ .../Controller/RegistrationController.php | 9 +- src/AppBundle/Controller/SecurityController.php | 2 +- src/AppBundle/Entity/Adscripcion.php | 35 ++ src/AppBundle/Entity/Estatus.php | 4 + src/AppBundle/Form/UserType.php | 14 +- web/assets/vendor/AppBundle/main.css | 439 +++++++++++++++++++++ 12 files changed, 691 insertions(+), 20 deletions(-) create mode 100644 app/Resources/views/base_app.html.twig create mode 100644 app/Resources/views/cea/index.html.twig delete mode 100644 app/sessions/sess_bgvgescqjdgk1dlrb0koron6v2 create mode 100644 src/AppBundle/Controller/DocenteController.php create mode 100644 web/assets/vendor/AppBundle/main.css diff --git a/app/Resources/views/base_app.html.twig b/app/Resources/views/base_app.html.twig new file mode 100644 index 0000000..04bb74f --- /dev/null +++ b/app/Resources/views/base_app.html.twig @@ -0,0 +1,79 @@ + + + + + {% block title %}CEA | UBV!{% endblock %} + {% block stylesheets %} + + + + + {% endblock %} + + + + {% block navegacion %} + + + {% endblock %} + + + + {% block submenu %} + + + + + {% endblock %} + + + {% block body %}{% endblock %} + + {% block javascripts %} + + + {% endblock %} + + diff --git a/app/Resources/views/cea/index.html.twig b/app/Resources/views/cea/index.html.twig new file mode 100644 index 0000000..5ae085a --- /dev/null +++ b/app/Resources/views/cea/index.html.twig @@ -0,0 +1,50 @@ +{% extends 'base_app.html.twig' %} +{% block body %} + +
+ +
+
+ {% if not adscrito %} +
+ + Información! Su solicitud de adscripción se encuentra en revisión. + Tan pronto sea activada, se le notificará por el correo institucional y podrá + disfrutar de los servicios que ofrecemos +
+ {%endif %} +
+
+
+
+

CEA@UBV

+
+ +
+
+
+ +
+ Estimado Docente, le damos la más cordial bienvenida al Sistema del Centro de Estudios Ambientales (CEA) de la Universidad Bolivariana de Venezuela (UBV) CEA@UBV. + +
+ +
+ + +
+
+
+ +
+
+ + + +
+
+
+
+
+ +{% endblock %} diff --git a/app/Resources/views/registration/register.html.twig b/app/Resources/views/registration/register.html.twig index 61118b4..06e3873 100644 --- a/app/Resources/views/registration/register.html.twig +++ b/app/Resources/views/registration/register.html.twig @@ -1,17 +1,8 @@ -{% extends 'base.html.twig' %} - -{% block body %} - {% form_theme form 'bootstrap_3_horizontal_layout.html.twig' %} -
- {{ form_start(form) }} - {{ form_widget(form) }} -
- - -{% endblock %} +{% extends 'base_app.html.twig' %} {% block stylesheets %} {{ parent() }} +