From 0fb5c794c98b176e258390c68689e4115d21b25e Mon Sep 17 00:00:00 2001 From: Juan Romero Date: Sun, 8 Apr 2018 08:40:56 -0400 Subject: [PATCH] autocompletado --- app/AppKernel.php | 3 +- app/Resources/views/aldea/index.html.twig | 43 +- app/Resources/views/aldea/new.html.twig | 15 +- app/Resources/views/ambito/edit.html.twig | 21 + app/Resources/views/ambito/index.html.twig | 39 + app/Resources/views/ambito/new.html.twig | 16 + app/Resources/views/ambito/show.html.twig | 32 + app/Resources/views/aportetipo/edit.html.twig | 21 + app/Resources/views/aportetipo/index.html.twig | 39 + app/Resources/views/aportetipo/new.html.twig | 16 + app/Resources/views/aportetipo/show.html.twig | 32 + app/Resources/views/aspirante/prueba.html | 2 +- app/Resources/views/base.html.twig | 22 +- .../views/candidato/cargaMasiva.html.twig | 54 - app/Resources/views/candidato/edit.html.twig | 29 +- app/Resources/views/candidato/exportCsv.twig | 4 - app/Resources/views/candidato/index.html.twig | 60 +- app/Resources/views/candidato/new.html.twig | 511 ++++- .../views/candidato/resultadoCarga.html.twig | 233 --- app/Resources/views/candidato/show.html.twig | 46 +- app/Resources/views/cargaacademica/edit.html.twig | 21 + app/Resources/views/cargaacademica/index.html.twig | 37 + app/Resources/views/cargaacademica/new.html.twig | 16 + app/Resources/views/cargaacademica/show.html.twig | 28 + app/Resources/views/centroestudio/edit.html.twig | 21 + app/Resources/views/centroestudio/index.html.twig | 41 + app/Resources/views/centroestudio/new.html.twig | 16 + app/Resources/views/centroestudio/show.html.twig | 36 + app/Resources/views/comunidad/edit.html.twig | 21 + app/Resources/views/comunidad/index.html.twig | 39 + app/Resources/views/comunidad/new.html.twig | 16 + app/Resources/views/comunidad/show.html.twig | 32 + app/Resources/views/comunidadtipo/edit.html.twig | 21 + app/Resources/views/comunidadtipo/index.html.twig | 39 + app/Resources/views/comunidadtipo/new.html.twig | 16 + app/Resources/views/comunidadtipo/show.html.twig | 32 + app/Resources/views/docente/edit.html.twig | 21 + app/Resources/views/docente/index.html.twig | 37 + app/Resources/views/docente/new.html.twig | 16 + app/Resources/views/docente/show.html.twig | 28 + app/Resources/views/docentealdea/edit.html.twig | 21 + app/Resources/views/docentealdea/index.html.twig | 37 + app/Resources/views/docentealdea/new.html.twig | 16 + app/Resources/views/docentealdea/show.html.twig | 28 + .../views/docentededicacion/edit.html.twig | 21 + .../views/docentededicacion/index.html.twig | 45 + .../views/docentededicacion/new.html.twig | 16 + .../views/docentededicacion/show.html.twig | 44 + app/Resources/views/docenteestatus/edit.html.twig | 21 + app/Resources/views/docenteestatus/index.html.twig | 39 + app/Resources/views/docenteestatus/new.html.twig | 16 + app/Resources/views/docenteestatus/show.html.twig | 32 + app/Resources/views/docenteproyecto/edit.html.twig | 21 + .../views/docenteproyecto/index.html.twig | 39 + app/Resources/views/docenteproyecto/new.html.twig | 16 + app/Resources/views/docenteproyecto/show.html.twig | 32 + app/Resources/views/institucion/edit.html.twig | 21 + app/Resources/views/institucion/index.html.twig | 39 + app/Resources/views/institucion/new.html.twig | 16 + app/Resources/views/institucion/show.html.twig | 32 + .../views/institucioneducativa/edit.html.twig | 21 + .../views/institucioneducativa/index.html.twig | 39 + .../views/institucioneducativa/new.html.twig | 16 + .../views/institucioneducativa/show.html.twig | 32 + app/Resources/views/metodologia/edit.html.twig | 21 + app/Resources/views/metodologia/index.html.twig | 39 + app/Resources/views/metodologia/new.html.twig | 16 + app/Resources/views/metodologia/show.html.twig | 32 + app/Resources/views/metodologiatipo/edit.html.twig | 21 + .../views/metodologiatipo/index.html.twig | 39 + app/Resources/views/metodologiatipo/new.html.twig | 16 + app/Resources/views/metodologiatipo/show.html.twig | 32 + app/Resources/views/objetivonivel/edit.html.twig | 21 + app/Resources/views/objetivonivel/index.html.twig | 39 + app/Resources/views/objetivonivel/new.html.twig | 16 + app/Resources/views/objetivonivel/show.html.twig | 32 + .../views/objetivoplanpatria/edit.html.twig | 29 + .../views/objetivoplanpatria/index.html.twig | 76 + .../views/objetivoplanpatria/new.html.twig | 16 + .../views/objetivoplanpatria/show.html.twig | 49 + app/Resources/views/persona/new.html.twig | 2 +- app/Resources/views/personaproyecto/edit.html.twig | 21 + .../views/personaproyecto/index.html.twig | 47 + app/Resources/views/personaproyecto/new.html.twig | 16 + app/Resources/views/personaproyecto/show.html.twig | 48 + app/Resources/views/programatipo/edit.html.twig | 21 + app/Resources/views/programatipo/index.html.twig | 41 + app/Resources/views/programatipo/new.html.twig | 16 + app/Resources/views/programatipo/show.html.twig | 36 + app/Resources/views/proyecto/edit.html.twig | 30 + app/Resources/views/proyecto/index.html.twig | 101 + app/Resources/views/proyecto/new.html.twig | 1165 ++++++++++++ app/Resources/views/proyecto/show.html.twig | 106 ++ .../views/proyectocomunidad/edit.html.twig | 21 + .../views/proyectocomunidad/index.html.twig | 37 + .../views/proyectocomunidad/new.html.twig | 16 + .../views/proyectocomunidad/show.html.twig | 28 + app/Resources/views/proyectoetapa/edit.html.twig | 21 + app/Resources/views/proyectoetapa/index.html.twig | 39 + app/Resources/views/proyectoetapa/new.html.twig | 16 + app/Resources/views/proyectoetapa/show.html.twig | 32 + .../views/proyectoplanpatria/edit.html.twig | 21 + .../views/proyectoplanpatria/index.html.twig | 37 + .../views/proyectoplanpatria/new.html.twig | 16 + .../views/proyectoplanpatria/show.html.twig | 28 + app/Resources/views/saber/edit.html.twig | 21 + app/Resources/views/saber/index.html.twig | 39 + app/Resources/views/saber/new.html.twig | 24 + app/Resources/views/saber/show.html.twig | 32 + app/Resources/views/tutorestudios/edit.html.twig | 21 + app/Resources/views/tutorestudios/index.html.twig | 39 + app/Resources/views/tutorestudios/new.html.twig | 16 + app/Resources/views/tutorestudios/show.html.twig | 32 + .../views/tutorinstitucional/edit.html.twig | 21 + .../views/tutorinstitucional/index.html.twig | 39 + .../views/tutorinstitucional/new.html.twig | 16 + .../views/tutorinstitucional/show.html.twig | 32 + app/config/config.yml | 6 + app/config/routing.yml | 169 ++ app/config/services.yml | 3 +- composer.json | 3 +- composer.lock | 147 +- .../Controller/ActividadEstatusController.php | 136 ++ .../Controller/ActividadEtapaController.php | 136 ++ .../Controller/AldeaMallaCurriculaController.php | 136 ++ .../Controller/AldeaProgramaController.php | 136 ++ .../Controller/AldeaTelefonoController.php | 136 ++ .../Controller/AmbienteDetalleController.php | 136 ++ .../Controller/AmbienteEspacioController.php | 136 ++ .../SurUbvBundle/Controller/AmbitoController.php | 136 ++ .../Controller/AporteInstitucionController.php | 136 ++ .../Controller/AporteTipoController.php | 136 ++ .../SurUbvBundle/Controller/ArancelController.php | 136 ++ .../Controller/AreaConocimientoController.php | 136 ++ .../Controller/AreaConocimientoOpsuController.php | 136 ++ .../Controller/AreaConocimientoUbvController.php | 136 ++ .../Controller/AspiranteEstatusController.php | 136 ++ .../Controller/AspiranteTipoController.php | 136 ++ .../Controller/CandidatoController.php | 344 +--- .../Controller/CargaAcademicaController.php | 136 ++ .../Controller/CentroEstudioController.php | 136 ++ .../Controller/ComunidadController.php | 149 ++ .../Controller/ComunidadTipoController.php | 136 ++ .../Controller/DocenteAldeaController.php | 136 ++ .../SurUbvBundle/Controller/DocenteController.php | 136 ++ .../Controller/DocenteDedicacionController.php | 136 ++ .../Controller/DocenteEstatusController.php | 136 ++ .../Controller/DocenteProyectoController.php | 136 ++ .../Controller/InstitucionController.php | 136 ++ .../Controller/InstitucionEducativaController.php | 136 ++ .../Controller/MetodologiaController.php | 136 ++ .../Controller/MetodologiaTipoController.php | 136 ++ .../Controller/ObjetivoNivelController.php | 136 ++ .../Controller/ObjetivoPlanPatriaController.php | 136 ++ .../Controller/PersonaProyectoController.php | 136 ++ .../Controller/ProgramaTipoController.php | 136 ++ .../Controller/ProyectoComunidadController.php | 136 ++ .../SurUbvBundle/Controller/ProyectoController.php | 150 ++ .../Controller/ProyectoEtapaController.php | 136 ++ .../Controller/ProyectoPlanPatriaController.php | 136 ++ .../SurUbvBundle/Controller/SaberController.php | 136 ++ .../Controller/TutorEstudiosController.php | 136 ++ .../Controller/TutorInstitucionalController.php | 136 ++ src/UBV/SurUbvBundle/Entity/ActividadEstatus.php | 132 ++ .../Entity/ActividadEstatusRepository.php | 15 + src/UBV/SurUbvBundle/Entity/ActividadEtapa.php | 176 ++ .../Entity/ActividadEtapaRepository.php | 15 + src/UBV/SurUbvBundle/Entity/AldeaPrograma.php | 51 +- .../Entity/AldeaTipoHasAldeaPrograma.php | 167 ++ .../Entity/AldeaTipoHasAldeaProgramaRepository.php | 15 + src/UBV/SurUbvBundle/Entity/Ambiente.php | 34 + src/UBV/SurUbvBundle/Entity/Ambito.php | 131 ++ src/UBV/SurUbvBundle/Entity/AmbitoRepository.php | 15 + src/UBV/SurUbvBundle/Entity/AporteInstitucion.php | 253 +++ .../Entity/AporteInstitucionRepository.php | 15 + src/UBV/SurUbvBundle/Entity/AporteTipo.php | 176 ++ .../SurUbvBundle/Entity/AporteTipoRepository.php | 15 + .../SurUbvBundle/Entity/AreaConocimientoOpsu.php | 141 ++ .../Entity/AreaConocimientoOpsuRepository.php | 15 + .../SurUbvBundle/Entity/AreaConocimientoUbv.php | 198 ++ .../Entity/AreaConocimientoUbvRepository.php | 15 + .../Entity/AspiranteTipoRepository.php | 15 + src/UBV/SurUbvBundle/Entity/Candidato.php | 16 +- src/UBV/SurUbvBundle/Entity/CentroEstudio.php | 4 + src/UBV/SurUbvBundle/Entity/Ciudad.php | 5 + src/UBV/SurUbvBundle/Entity/Comunidad.php | 163 ++ .../SurUbvBundle/Entity/ComunidadRepository.php | 15 + src/UBV/SurUbvBundle/Entity/ComunidadTipo.php | 133 ++ .../Entity/ComunidadTipoRepository.php | 15 + src/UBV/SurUbvBundle/Entity/Convenio.php | 37 +- src/UBV/SurUbvBundle/Entity/Discapacidad.php | 8 + src/UBV/SurUbvBundle/Entity/Docente.php | 2 + src/UBV/SurUbvBundle/Entity/DocenteProyecto.php | 169 ++ .../Entity/DocenteProyectoRepository.php | 15 + src/UBV/SurUbvBundle/Entity/EjeMunicipal.php | 10 +- src/UBV/SurUbvBundle/Entity/EspacioTipo.php | 126 ++ .../SurUbvBundle/Entity/EspacioTipoRepository.php | 15 + src/UBV/SurUbvBundle/Entity/Estado.php | 1 + src/UBV/SurUbvBundle/Entity/EstudianteProyecto.php | 141 ++ .../Entity/EstudianteProyectoRepository.php | 15 + .../Entity/GradoAcademicoRepository.php | 15 + src/UBV/SurUbvBundle/Entity/Institucion.php | 190 ++ .../SurUbvBundle/Entity/InstitucionEducativa.php | 158 ++ .../Entity/InstitucionEducativaRepository.php | 15 + .../SurUbvBundle/Entity/InstitucionRepository.php | 15 + src/UBV/SurUbvBundle/Entity/InstitucionTipo.php | 176 ++ .../Entity/InstitucionTipoRepository.php | 15 + src/UBV/SurUbvBundle/Entity/LineaInvestigacion.php | 4 + src/UBV/SurUbvBundle/Entity/Metodologia.php | 159 ++ .../SurUbvBundle/Entity/MetodologiaRepository.php | 15 + src/UBV/SurUbvBundle/Entity/MetodologiaTipo.php | 132 ++ .../Entity/MetodologiaTipoRepository.php | 15 + src/UBV/SurUbvBundle/Entity/Municipio.php | 2 + src/UBV/SurUbvBundle/Entity/NucleoAcademico.php | 244 +++ .../Entity/NucleoAcademicoRepository.php | 15 + src/UBV/SurUbvBundle/Entity/ObjetivoEspecifico.php | 146 ++ .../Entity/ObjetivoEspecificoRepository.php | 15 + src/UBV/SurUbvBundle/Entity/ObjetivoNivel.php | 130 ++ .../Entity/ObjetivoNivelRepository.php | 15 + src/UBV/SurUbvBundle/Entity/ObjetivoPlanPatria.php | 272 +++ .../Entity/ObjetivoPlanPatriaRepository.php | 15 + src/UBV/SurUbvBundle/Entity/Pais.php | 3 + src/UBV/SurUbvBundle/Entity/PaisRepository.php | 15 + src/UBV/SurUbvBundle/Entity/PeriodoAcademico.php | 33 +- src/UBV/SurUbvBundle/Entity/PersonaProyecto.php | 370 ++++ .../Entity/PersonaProyectoRepository.php | 15 + .../Entity/ProgramaLineaInvestigacion.php | 112 ++ .../ProgramaLineaInvestigacionRepository.php | 15 + src/UBV/SurUbvBundle/Entity/ProgramaTipo.php | 5 + src/UBV/SurUbvBundle/Entity/Proyecto.php | 1999 ++++++++++++++++++++ src/UBV/SurUbvBundle/Entity/ProyectoComunidad.php | 144 ++ .../Entity/ProyectoComunidadRepository.php | 15 + src/UBV/SurUbvBundle/Entity/ProyectoDetalle.php | 267 +++ .../Entity/ProyectoDetalleRepository.php | 15 + .../SurUbvBundle/Entity/ProyectoEjeFormacion.php | 112 ++ .../Entity/ProyectoEjeFormacionRepository.php | 15 + src/UBV/SurUbvBundle/Entity/ProyectoEstatus.php | 130 ++ .../Entity/ProyectoEstatusRepository.php | 15 + src/UBV/SurUbvBundle/Entity/ProyectoEtapa.php | 201 ++ .../Entity/ProyectoEtapaRepository.php | 15 + src/UBV/SurUbvBundle/Entity/ProyectoPlanPatria.php | 112 ++ .../Entity/ProyectoPlanPatriaRepository.php | 15 + src/UBV/SurUbvBundle/Entity/ProyectoRepository.php | 15 + src/UBV/SurUbvBundle/Entity/ProyectoTipo.php | 130 ++ .../SurUbvBundle/Entity/ProyectoTipoRepository.php | 15 + .../SurUbvBundle/Entity/RequerimientoProyecto.php | 252 +++ .../Entity/RequerimientoProyectoRepository.php | 15 + src/UBV/SurUbvBundle/Entity/ResgistroEstatus.php | 130 ++ .../Entity/ResgistroEstatusRepository.php | 15 + src/UBV/SurUbvBundle/Entity/Saber.php | 147 ++ src/UBV/SurUbvBundle/Entity/SaberRepository.php | 15 + src/UBV/SurUbvBundle/Entity/SaberTipo.php | 135 ++ .../SurUbvBundle/Entity/SaberTipoRepository.php | 15 + src/UBV/SurUbvBundle/Entity/TutorEstudios.php | 169 ++ .../Entity/TutorEstudiosRepository.php | 15 + src/UBV/SurUbvBundle/Entity/TutorInstitucional.php | 161 ++ .../Entity/TutorInstitucionalRepository.php | 15 + .../SurUbvBundle/Entity/VinculacionProyecto.php | 169 ++ .../Entity/VinculacionProyectoRepository.php | 15 + src/UBV/SurUbvBundle/Form/ActividadEstatusType.php | 53 + src/UBV/SurUbvBundle/Form/ActividadEtapaType.php | 90 + .../SurUbvBundle/Form/AldeaMallaCurriculaType.php | 38 + src/UBV/SurUbvBundle/Form/AldeaProgramaType.php | 38 + src/UBV/SurUbvBundle/Form/AldeaTelefonoType.php | 38 + src/UBV/SurUbvBundle/Form/AldeaType.php | 15 +- src/UBV/SurUbvBundle/Form/AmbienteDetalleType.php | 38 + src/UBV/SurUbvBundle/Form/AmbienteEspacioType.php | 38 + src/UBV/SurUbvBundle/Form/AmbienteType.php | 33 + src/UBV/SurUbvBundle/Form/AmbitoType.php | 38 + .../SurUbvBundle/Form/AporteInstitucionType.php | 96 + src/UBV/SurUbvBundle/Form/AporteTipoType.php | 56 + src/UBV/SurUbvBundle/Form/ArancelType.php | 38 + .../SurUbvBundle/Form/AreaConocimientoOpsuType.php | 38 + src/UBV/SurUbvBundle/Form/AreaConocimientoType.php | 38 + .../SurUbvBundle/Form/AreaConocimientoUbvType.php | 38 + src/UBV/SurUbvBundle/Form/AspiranteEstatusType.php | 38 + src/UBV/SurUbvBundle/Form/AspiranteTipoType.php | 38 + .../SurUbvBundle/Form/CandidatoCargaMasivaType.php | 45 - src/UBV/SurUbvBundle/Form/CandidatoType.php | 344 +++- src/UBV/SurUbvBundle/Form/CargaAcademicaType.php | 38 + src/UBV/SurUbvBundle/Form/CentroEstudioType.php | 38 + src/UBV/SurUbvBundle/Form/ComunidadTipoType.php | 38 + src/UBV/SurUbvBundle/Form/ComunidadType.php | 54 + src/UBV/SurUbvBundle/Form/DocenteAldeaType.php | 38 + .../SurUbvBundle/Form/DocenteDedicacionType.php | 38 + src/UBV/SurUbvBundle/Form/DocenteEstatusType.php | 38 + src/UBV/SurUbvBundle/Form/DocenteProyectoType.php | 59 + src/UBV/SurUbvBundle/Form/DocenteType.php | 38 + .../Form/EventListener/AddAldeaFieldSubscriber.php | 1 + .../EventListener/AddEstadoFieldSubscriber.php | 20 +- .../SurUbvBundle/Form/InstitucionEducativaType.php | 67 + src/UBV/SurUbvBundle/Form/InstitucionType.php | 56 + src/UBV/SurUbvBundle/Form/MetodologiaTipoType.php | 56 + src/UBV/SurUbvBundle/Form/MetodologiaType.php | 49 + src/UBV/SurUbvBundle/Form/ObjetivoNivelType.php | 38 + .../SurUbvBundle/Form/ObjetivoPlanPatriaType.php | 93 + src/UBV/SurUbvBundle/Form/PersonaProyectoType.php | 107 ++ src/UBV/SurUbvBundle/Form/ProgramaTipoType.php | 56 + .../SurUbvBundle/Form/ProyectoComunidadType.php | 68 + src/UBV/SurUbvBundle/Form/ProyectoEtapaType.php | 55 + .../SurUbvBundle/Form/ProyectoPlanPatriaType.php | 38 + src/UBV/SurUbvBundle/Form/ProyectoType.php | 482 +++++ src/UBV/SurUbvBundle/Form/SaberType.php | 54 + src/UBV/SurUbvBundle/Form/TutorEstudiosType.php | 50 + .../SurUbvBundle/Form/TutorInstitucionalType.php | 52 + .../Controller/ActividadEstatusControllerTest.php | 55 + .../Controller/ActividadEtapaControllerTest.php | 55 + .../AldeaMallaCurriculaControllerTest.php | 55 + .../Controller/AldeaProgramaControllerTest.php | 55 + .../Controller/AldeaTelefonoControllerTest.php | 55 + .../Controller/AmbienteDetalleControllerTest.php | 55 + .../Controller/AmbienteEspacioControllerTest.php | 55 + .../Tests/Controller/AmbitoControllerTest.php | 55 + .../Controller/AporteInstitucionControllerTest.php | 55 + .../Tests/Controller/AporteTipoControllerTest.php | 55 + .../Tests/Controller/ArancelControllerTest.php | 55 + .../Controller/AreaConocimientoControllerTest.php | 55 + .../AreaConocimientoOpsuControllerTest.php | 55 + .../AreaConocimientoUbvControllerTest.php | 55 + .../Controller/AspiranteEstatusControllerTest.php | 55 + .../Controller/AspiranteTipoControllerTest.php | 55 + .../Controller/CargaAcademicaControllerTest.php | 55 + .../Controller/CentroEstudioControllerTest.php | 55 + .../ComunidadAjaxControllerControllerTest.php | 9 + .../Tests/Controller/ComunidadControllerTest.php | 55 + .../Controller/ComunidadTipoControllerTest.php | 55 + .../Controller/DocenteAldeaControllerTest.php | 55 + .../Tests/Controller/DocenteControllerTest.php | 55 + .../Controller/DocenteDedicacionControllerTest.php | 55 + .../Controller/DocenteEstatusControllerTest.php | 55 + .../Controller/DocenteProyectoControllerTest.php | 55 + .../Tests/Controller/InstitucionControllerTest.php | 55 + .../InstitucionEducativaControllerTest.php | 55 + .../Tests/Controller/MetodologiaControllerTest.php | 55 + .../Controller/MetodologiaTipoControllerTest.php | 55 + .../ObjetivoEspecificoControllerTest.php | 9 + .../Controller/ObjetivoNivelControllerTest.php | 55 + .../ObjetivoPlanPatriaControllerTest.php | 55 + .../Controller/PersonaProyectoControllerTest.php | 55 + .../Controller/ProgramaTipoControllerTest.php | 55 + .../Controller/ProyectoComunidadControllerTest.php | 55 + .../Tests/Controller/ProyectoControllerTest.php | 55 + .../Controller/ProyectoEtapaControllerTest.php | 55 + .../ProyectoPlanPatriaControllerTest.php | 55 + .../Tests/Controller/SaberControllerTest.php | 55 + .../Controller/TutorEstudiosControllerTest.php | 55 + .../TutorInstitucionalControllerTest.php | 55 + 347 files changed, 24889 insertions(+), 895 deletions(-) create mode 100644 app/Resources/views/ambito/edit.html.twig create mode 100644 app/Resources/views/ambito/index.html.twig create mode 100644 app/Resources/views/ambito/new.html.twig create mode 100644 app/Resources/views/ambito/show.html.twig create mode 100644 app/Resources/views/aportetipo/edit.html.twig create mode 100644 app/Resources/views/aportetipo/index.html.twig create mode 100644 app/Resources/views/aportetipo/new.html.twig create mode 100644 app/Resources/views/aportetipo/show.html.twig delete mode 100644 app/Resources/views/candidato/cargaMasiva.html.twig delete mode 100644 app/Resources/views/candidato/exportCsv.twig delete mode 100644 app/Resources/views/candidato/resultadoCarga.html.twig create mode 100644 app/Resources/views/cargaacademica/edit.html.twig create mode 100644 app/Resources/views/cargaacademica/index.html.twig create mode 100644 app/Resources/views/cargaacademica/new.html.twig create mode 100644 app/Resources/views/cargaacademica/show.html.twig create mode 100644 app/Resources/views/centroestudio/edit.html.twig create mode 100644 app/Resources/views/centroestudio/index.html.twig create mode 100644 app/Resources/views/centroestudio/new.html.twig create mode 100644 app/Resources/views/centroestudio/show.html.twig create mode 100644 app/Resources/views/comunidad/edit.html.twig create mode 100644 app/Resources/views/comunidad/index.html.twig create mode 100644 app/Resources/views/comunidad/new.html.twig create mode 100644 app/Resources/views/comunidad/show.html.twig create mode 100644 app/Resources/views/comunidadtipo/edit.html.twig create mode 100644 app/Resources/views/comunidadtipo/index.html.twig create mode 100644 app/Resources/views/comunidadtipo/new.html.twig create mode 100644 app/Resources/views/comunidadtipo/show.html.twig create mode 100644 app/Resources/views/docente/edit.html.twig create mode 100644 app/Resources/views/docente/index.html.twig create mode 100644 app/Resources/views/docente/new.html.twig create mode 100644 app/Resources/views/docente/show.html.twig create mode 100644 app/Resources/views/docentealdea/edit.html.twig create mode 100644 app/Resources/views/docentealdea/index.html.twig create mode 100644 app/Resources/views/docentealdea/new.html.twig create mode 100644 app/Resources/views/docentealdea/show.html.twig create mode 100644 app/Resources/views/docentededicacion/edit.html.twig create mode 100644 app/Resources/views/docentededicacion/index.html.twig create mode 100644 app/Resources/views/docentededicacion/new.html.twig create mode 100644 app/Resources/views/docentededicacion/show.html.twig create mode 100644 app/Resources/views/docenteestatus/edit.html.twig create mode 100644 app/Resources/views/docenteestatus/index.html.twig create mode 100644 app/Resources/views/docenteestatus/new.html.twig create mode 100644 app/Resources/views/docenteestatus/show.html.twig create mode 100644 app/Resources/views/docenteproyecto/edit.html.twig create mode 100644 app/Resources/views/docenteproyecto/index.html.twig create mode 100644 app/Resources/views/docenteproyecto/new.html.twig create mode 100644 app/Resources/views/docenteproyecto/show.html.twig create mode 100644 app/Resources/views/institucion/edit.html.twig create mode 100644 app/Resources/views/institucion/index.html.twig create mode 100644 app/Resources/views/institucion/new.html.twig create mode 100644 app/Resources/views/institucion/show.html.twig create mode 100644 app/Resources/views/institucioneducativa/edit.html.twig create mode 100644 app/Resources/views/institucioneducativa/index.html.twig create mode 100644 app/Resources/views/institucioneducativa/new.html.twig create mode 100644 app/Resources/views/institucioneducativa/show.html.twig create mode 100644 app/Resources/views/metodologia/edit.html.twig create mode 100644 app/Resources/views/metodologia/index.html.twig create mode 100644 app/Resources/views/metodologia/new.html.twig create mode 100644 app/Resources/views/metodologia/show.html.twig create mode 100644 app/Resources/views/metodologiatipo/edit.html.twig create mode 100644 app/Resources/views/metodologiatipo/index.html.twig create mode 100644 app/Resources/views/metodologiatipo/new.html.twig create mode 100644 app/Resources/views/metodologiatipo/show.html.twig create mode 100644 app/Resources/views/objetivonivel/edit.html.twig create mode 100644 app/Resources/views/objetivonivel/index.html.twig create mode 100644 app/Resources/views/objetivonivel/new.html.twig create mode 100644 app/Resources/views/objetivonivel/show.html.twig create mode 100644 app/Resources/views/objetivoplanpatria/edit.html.twig create mode 100644 app/Resources/views/objetivoplanpatria/index.html.twig create mode 100644 app/Resources/views/objetivoplanpatria/new.html.twig create mode 100644 app/Resources/views/objetivoplanpatria/show.html.twig create mode 100644 app/Resources/views/personaproyecto/edit.html.twig create mode 100644 app/Resources/views/personaproyecto/index.html.twig create mode 100644 app/Resources/views/personaproyecto/new.html.twig create mode 100644 app/Resources/views/personaproyecto/show.html.twig create mode 100644 app/Resources/views/programatipo/edit.html.twig create mode 100644 app/Resources/views/programatipo/index.html.twig create mode 100644 app/Resources/views/programatipo/new.html.twig create mode 100644 app/Resources/views/programatipo/show.html.twig create mode 100644 app/Resources/views/proyecto/edit.html.twig create mode 100644 app/Resources/views/proyecto/index.html.twig create mode 100644 app/Resources/views/proyecto/new.html.twig create mode 100644 app/Resources/views/proyecto/show.html.twig create mode 100644 app/Resources/views/proyectocomunidad/edit.html.twig create mode 100644 app/Resources/views/proyectocomunidad/index.html.twig create mode 100644 app/Resources/views/proyectocomunidad/new.html.twig create mode 100644 app/Resources/views/proyectocomunidad/show.html.twig create mode 100644 app/Resources/views/proyectoetapa/edit.html.twig create mode 100644 app/Resources/views/proyectoetapa/index.html.twig create mode 100644 app/Resources/views/proyectoetapa/new.html.twig create mode 100644 app/Resources/views/proyectoetapa/show.html.twig create mode 100644 app/Resources/views/proyectoplanpatria/edit.html.twig create mode 100644 app/Resources/views/proyectoplanpatria/index.html.twig create mode 100644 app/Resources/views/proyectoplanpatria/new.html.twig create mode 100644 app/Resources/views/proyectoplanpatria/show.html.twig create mode 100644 app/Resources/views/saber/edit.html.twig create mode 100644 app/Resources/views/saber/index.html.twig create mode 100644 app/Resources/views/saber/new.html.twig create mode 100644 app/Resources/views/saber/show.html.twig create mode 100644 app/Resources/views/tutorestudios/edit.html.twig create mode 100644 app/Resources/views/tutorestudios/index.html.twig create mode 100644 app/Resources/views/tutorestudios/new.html.twig create mode 100644 app/Resources/views/tutorestudios/show.html.twig create mode 100644 app/Resources/views/tutorinstitucional/edit.html.twig create mode 100644 app/Resources/views/tutorinstitucional/index.html.twig create mode 100644 app/Resources/views/tutorinstitucional/new.html.twig create mode 100644 app/Resources/views/tutorinstitucional/show.html.twig create mode 100644 src/UBV/SurUbvBundle/Controller/ActividadEstatusController.php create mode 100644 src/UBV/SurUbvBundle/Controller/ActividadEtapaController.php create mode 100644 src/UBV/SurUbvBundle/Controller/AldeaMallaCurriculaController.php create mode 100644 src/UBV/SurUbvBundle/Controller/AldeaProgramaController.php create mode 100644 src/UBV/SurUbvBundle/Controller/AldeaTelefonoController.php create mode 100644 src/UBV/SurUbvBundle/Controller/AmbienteDetalleController.php create mode 100644 src/UBV/SurUbvBundle/Controller/AmbienteEspacioController.php create mode 100644 src/UBV/SurUbvBundle/Controller/AmbitoController.php create mode 100644 src/UBV/SurUbvBundle/Controller/AporteInstitucionController.php create mode 100644 src/UBV/SurUbvBundle/Controller/AporteTipoController.php create mode 100644 src/UBV/SurUbvBundle/Controller/ArancelController.php create mode 100644 src/UBV/SurUbvBundle/Controller/AreaConocimientoController.php create mode 100644 src/UBV/SurUbvBundle/Controller/AreaConocimientoOpsuController.php create mode 100644 src/UBV/SurUbvBundle/Controller/AreaConocimientoUbvController.php create mode 100644 src/UBV/SurUbvBundle/Controller/AspiranteEstatusController.php create mode 100644 src/UBV/SurUbvBundle/Controller/AspiranteTipoController.php create mode 100644 src/UBV/SurUbvBundle/Controller/CargaAcademicaController.php create mode 100644 src/UBV/SurUbvBundle/Controller/CentroEstudioController.php create mode 100644 src/UBV/SurUbvBundle/Controller/ComunidadController.php create mode 100644 src/UBV/SurUbvBundle/Controller/ComunidadTipoController.php create mode 100644 src/UBV/SurUbvBundle/Controller/DocenteAldeaController.php create mode 100644 src/UBV/SurUbvBundle/Controller/DocenteController.php create mode 100644 src/UBV/SurUbvBundle/Controller/DocenteDedicacionController.php create mode 100644 src/UBV/SurUbvBundle/Controller/DocenteEstatusController.php create mode 100644 src/UBV/SurUbvBundle/Controller/DocenteProyectoController.php create mode 100644 src/UBV/SurUbvBundle/Controller/InstitucionController.php create mode 100644 src/UBV/SurUbvBundle/Controller/InstitucionEducativaController.php create mode 100644 src/UBV/SurUbvBundle/Controller/MetodologiaController.php create mode 100644 src/UBV/SurUbvBundle/Controller/MetodologiaTipoController.php create mode 100644 src/UBV/SurUbvBundle/Controller/ObjetivoNivelController.php create mode 100644 src/UBV/SurUbvBundle/Controller/ObjetivoPlanPatriaController.php create mode 100644 src/UBV/SurUbvBundle/Controller/PersonaProyectoController.php create mode 100644 src/UBV/SurUbvBundle/Controller/ProgramaTipoController.php create mode 100644 src/UBV/SurUbvBundle/Controller/ProyectoComunidadController.php create mode 100644 src/UBV/SurUbvBundle/Controller/ProyectoController.php create mode 100644 src/UBV/SurUbvBundle/Controller/ProyectoEtapaController.php create mode 100644 src/UBV/SurUbvBundle/Controller/ProyectoPlanPatriaController.php create mode 100644 src/UBV/SurUbvBundle/Controller/SaberController.php create mode 100644 src/UBV/SurUbvBundle/Controller/TutorEstudiosController.php create mode 100644 src/UBV/SurUbvBundle/Controller/TutorInstitucionalController.php create mode 100644 src/UBV/SurUbvBundle/Entity/ActividadEstatus.php create mode 100644 src/UBV/SurUbvBundle/Entity/ActividadEstatusRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/ActividadEtapa.php create mode 100644 src/UBV/SurUbvBundle/Entity/ActividadEtapaRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/AldeaTipoHasAldeaPrograma.php create mode 100644 src/UBV/SurUbvBundle/Entity/AldeaTipoHasAldeaProgramaRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/Ambito.php create mode 100644 src/UBV/SurUbvBundle/Entity/AmbitoRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/AporteInstitucion.php create mode 100644 src/UBV/SurUbvBundle/Entity/AporteInstitucionRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/AporteTipo.php create mode 100644 src/UBV/SurUbvBundle/Entity/AporteTipoRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/AreaConocimientoOpsu.php create mode 100644 src/UBV/SurUbvBundle/Entity/AreaConocimientoOpsuRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/AreaConocimientoUbv.php create mode 100644 src/UBV/SurUbvBundle/Entity/AreaConocimientoUbvRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/AspiranteTipoRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/Comunidad.php create mode 100644 src/UBV/SurUbvBundle/Entity/ComunidadRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/ComunidadTipo.php create mode 100644 src/UBV/SurUbvBundle/Entity/ComunidadTipoRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/DocenteProyecto.php create mode 100644 src/UBV/SurUbvBundle/Entity/DocenteProyectoRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/EspacioTipo.php create mode 100644 src/UBV/SurUbvBundle/Entity/EspacioTipoRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/EstudianteProyecto.php create mode 100644 src/UBV/SurUbvBundle/Entity/EstudianteProyectoRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/GradoAcademicoRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/Institucion.php create mode 100644 src/UBV/SurUbvBundle/Entity/InstitucionEducativa.php create mode 100644 src/UBV/SurUbvBundle/Entity/InstitucionEducativaRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/InstitucionRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/InstitucionTipo.php create mode 100644 src/UBV/SurUbvBundle/Entity/InstitucionTipoRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/Metodologia.php create mode 100644 src/UBV/SurUbvBundle/Entity/MetodologiaRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/MetodologiaTipo.php create mode 100644 src/UBV/SurUbvBundle/Entity/MetodologiaTipoRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/NucleoAcademico.php create mode 100644 src/UBV/SurUbvBundle/Entity/NucleoAcademicoRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/ObjetivoEspecifico.php create mode 100644 src/UBV/SurUbvBundle/Entity/ObjetivoEspecificoRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/ObjetivoNivel.php create mode 100644 src/UBV/SurUbvBundle/Entity/ObjetivoNivelRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/ObjetivoPlanPatria.php create mode 100644 src/UBV/SurUbvBundle/Entity/ObjetivoPlanPatriaRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/PaisRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/PersonaProyecto.php create mode 100644 src/UBV/SurUbvBundle/Entity/PersonaProyectoRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/ProgramaLineaInvestigacion.php create mode 100644 src/UBV/SurUbvBundle/Entity/ProgramaLineaInvestigacionRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/Proyecto.php create mode 100644 src/UBV/SurUbvBundle/Entity/ProyectoComunidad.php create mode 100644 src/UBV/SurUbvBundle/Entity/ProyectoComunidadRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/ProyectoDetalle.php create mode 100644 src/UBV/SurUbvBundle/Entity/ProyectoDetalleRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/ProyectoEjeFormacion.php create mode 100644 src/UBV/SurUbvBundle/Entity/ProyectoEjeFormacionRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/ProyectoEstatus.php create mode 100644 src/UBV/SurUbvBundle/Entity/ProyectoEstatusRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/ProyectoEtapa.php create mode 100644 src/UBV/SurUbvBundle/Entity/ProyectoEtapaRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/ProyectoPlanPatria.php create mode 100644 src/UBV/SurUbvBundle/Entity/ProyectoPlanPatriaRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/ProyectoRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/ProyectoTipo.php create mode 100644 src/UBV/SurUbvBundle/Entity/ProyectoTipoRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/RequerimientoProyecto.php create mode 100644 src/UBV/SurUbvBundle/Entity/RequerimientoProyectoRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/ResgistroEstatus.php create mode 100644 src/UBV/SurUbvBundle/Entity/ResgistroEstatusRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/Saber.php create mode 100644 src/UBV/SurUbvBundle/Entity/SaberRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/SaberTipo.php create mode 100644 src/UBV/SurUbvBundle/Entity/SaberTipoRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/TutorEstudios.php create mode 100644 src/UBV/SurUbvBundle/Entity/TutorEstudiosRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/TutorInstitucional.php create mode 100644 src/UBV/SurUbvBundle/Entity/TutorInstitucionalRepository.php create mode 100644 src/UBV/SurUbvBundle/Entity/VinculacionProyecto.php create mode 100644 src/UBV/SurUbvBundle/Entity/VinculacionProyectoRepository.php create mode 100644 src/UBV/SurUbvBundle/Form/ActividadEstatusType.php create mode 100644 src/UBV/SurUbvBundle/Form/ActividadEtapaType.php create mode 100644 src/UBV/SurUbvBundle/Form/AldeaMallaCurriculaType.php create mode 100644 src/UBV/SurUbvBundle/Form/AldeaProgramaType.php create mode 100644 src/UBV/SurUbvBundle/Form/AldeaTelefonoType.php create mode 100644 src/UBV/SurUbvBundle/Form/AmbienteDetalleType.php create mode 100644 src/UBV/SurUbvBundle/Form/AmbienteEspacioType.php create mode 100644 src/UBV/SurUbvBundle/Form/AmbitoType.php create mode 100644 src/UBV/SurUbvBundle/Form/AporteInstitucionType.php create mode 100644 src/UBV/SurUbvBundle/Form/AporteTipoType.php create mode 100644 src/UBV/SurUbvBundle/Form/ArancelType.php create mode 100644 src/UBV/SurUbvBundle/Form/AreaConocimientoOpsuType.php create mode 100644 src/UBV/SurUbvBundle/Form/AreaConocimientoType.php create mode 100644 src/UBV/SurUbvBundle/Form/AreaConocimientoUbvType.php create mode 100644 src/UBV/SurUbvBundle/Form/AspiranteEstatusType.php create mode 100644 src/UBV/SurUbvBundle/Form/AspiranteTipoType.php delete mode 100644 src/UBV/SurUbvBundle/Form/CandidatoCargaMasivaType.php create mode 100644 src/UBV/SurUbvBundle/Form/CargaAcademicaType.php create mode 100644 src/UBV/SurUbvBundle/Form/CentroEstudioType.php create mode 100644 src/UBV/SurUbvBundle/Form/ComunidadTipoType.php create mode 100644 src/UBV/SurUbvBundle/Form/ComunidadType.php create mode 100644 src/UBV/SurUbvBundle/Form/DocenteAldeaType.php create mode 100644 src/UBV/SurUbvBundle/Form/DocenteDedicacionType.php create mode 100644 src/UBV/SurUbvBundle/Form/DocenteEstatusType.php create mode 100644 src/UBV/SurUbvBundle/Form/DocenteProyectoType.php create mode 100644 src/UBV/SurUbvBundle/Form/DocenteType.php create mode 100644 src/UBV/SurUbvBundle/Form/InstitucionEducativaType.php create mode 100644 src/UBV/SurUbvBundle/Form/InstitucionType.php create mode 100644 src/UBV/SurUbvBundle/Form/MetodologiaTipoType.php create mode 100644 src/UBV/SurUbvBundle/Form/MetodologiaType.php create mode 100644 src/UBV/SurUbvBundle/Form/ObjetivoNivelType.php create mode 100644 src/UBV/SurUbvBundle/Form/ObjetivoPlanPatriaType.php create mode 100644 src/UBV/SurUbvBundle/Form/PersonaProyectoType.php create mode 100644 src/UBV/SurUbvBundle/Form/ProgramaTipoType.php create mode 100644 src/UBV/SurUbvBundle/Form/ProyectoComunidadType.php create mode 100644 src/UBV/SurUbvBundle/Form/ProyectoEtapaType.php create mode 100644 src/UBV/SurUbvBundle/Form/ProyectoPlanPatriaType.php create mode 100644 src/UBV/SurUbvBundle/Form/ProyectoType.php create mode 100644 src/UBV/SurUbvBundle/Form/SaberType.php create mode 100644 src/UBV/SurUbvBundle/Form/TutorEstudiosType.php create mode 100644 src/UBV/SurUbvBundle/Form/TutorInstitucionalType.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/ActividadEstatusControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/ActividadEtapaControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/AldeaMallaCurriculaControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/AldeaProgramaControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/AldeaTelefonoControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/AmbienteDetalleControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/AmbienteEspacioControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/AmbitoControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/AporteInstitucionControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/AporteTipoControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/ArancelControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/AreaConocimientoControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/AreaConocimientoOpsuControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/AreaConocimientoUbvControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/AspiranteEstatusControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/AspiranteTipoControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/CargaAcademicaControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/CentroEstudioControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/ComunidadAjaxControllerControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/ComunidadControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/ComunidadTipoControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/DocenteAldeaControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/DocenteControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/DocenteDedicacionControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/DocenteEstatusControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/DocenteProyectoControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/InstitucionControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/InstitucionEducativaControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/MetodologiaControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/MetodologiaTipoControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/ObjetivoEspecificoControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/ObjetivoNivelControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/ObjetivoPlanPatriaControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/PersonaProyectoControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/ProgramaTipoControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/ProyectoComunidadControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/ProyectoControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/ProyectoEtapaControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/ProyectoPlanPatriaControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/SaberControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/TutorEstudiosControllerTest.php create mode 100644 src/UBV/SurUbvBundle/Tests/Controller/TutorInstitucionalControllerTest.php diff --git a/app/AppKernel.php b/app/AppKernel.php index 3589998..0b86b2f 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php @@ -20,7 +20,8 @@ class AppKernel extends Kernel new UBV\UbicGeograficaBundle\UBVUbicGeograficaBundle(), new UBV\SurUbvBundle\UBVSurUbvBundle(), new FOS\UserBundle\FOSUserBundle(), - new NoiseLabs\Bundle\NuSOAPBundle\NoiseLabsNuSOAPBundle(), + new NoiseLabs\Bundle\NuSOAPBundle\NoiseLabsNuSOAPBundle(), + new Genemu\Bundle\FormBundle\GenemuFormBundle(), ); if (in_array($this->getEnvironment(), array('dev', 'test'), true)) { diff --git a/app/Resources/views/aldea/index.html.twig b/app/Resources/views/aldea/index.html.twig index 2e207e0..729aac3 100644 --- a/app/Resources/views/aldea/index.html.twig +++ b/app/Resources/views/aldea/index.html.twig @@ -1,9 +1,44 @@ -{% extends 'base.html.twig' %} +{% extends "UBVPrincipalBundle::inicio.html.twig" %} -{% block body %} -

Aldea list

+{% block contenido %} +

Lista de Proyectos

- +
+
+
+
+
Listado de Proyectos de Estudios Avanzados
+
+
diff --git a/app/Resources/views/aldea/new.html.twig b/app/Resources/views/aldea/new.html.twig index 10e04d5..44a3059 100644 --- a/app/Resources/views/aldea/new.html.twig +++ b/app/Resources/views/aldea/new.html.twig @@ -1,10 +1,19 @@ -{% extends 'base.html.twig' %} - -{% block body %} +{% extends 'UBVPrincipalBundle::inicio.html.twig' %} + +{% block contenido %} +
+
+
+
+
Registro Usuario
+
+

Aldea creation

{{ form_start(form) }} {{ form_widget(form) }} + + {{ form_end(form) }} diff --git a/app/Resources/views/ambito/edit.html.twig b/app/Resources/views/ambito/edit.html.twig new file mode 100644 index 0000000..d9d0f2c --- /dev/null +++ b/app/Resources/views/ambito/edit.html.twig @@ -0,0 +1,21 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Ambito edit

+ + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + +
    +
  • + Back to the list +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/ambito/index.html.twig b/app/Resources/views/ambito/index.html.twig new file mode 100644 index 0000000..b6170f4 --- /dev/null +++ b/app/Resources/views/ambito/index.html.twig @@ -0,0 +1,39 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Ambitos list

+ +
Id
+ + + + + + + + + {% for ambito in ambitos %} + + + + + + {% endfor %} + +
IdDescripcionActions
{{ ambito.id }}{{ ambito.descripcion }} + +
+ + +{% endblock %} diff --git a/app/Resources/views/ambito/new.html.twig b/app/Resources/views/ambito/new.html.twig new file mode 100644 index 0000000..6245232 --- /dev/null +++ b/app/Resources/views/ambito/new.html.twig @@ -0,0 +1,16 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Ambito creation

+ + {{ form_start(form) }} + {{ form_widget(form) }} + + {{ form_end(form) }} + + +{% endblock %} diff --git a/app/Resources/views/ambito/show.html.twig b/app/Resources/views/ambito/show.html.twig new file mode 100644 index 0000000..1d09742 --- /dev/null +++ b/app/Resources/views/ambito/show.html.twig @@ -0,0 +1,32 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Ambito

+ + + + + + + + + + + + +
Id{{ ambito.id }}
Descripcion{{ ambito.descripcion }}
+ + +{% endblock %} diff --git a/app/Resources/views/aportetipo/edit.html.twig b/app/Resources/views/aportetipo/edit.html.twig new file mode 100644 index 0000000..a79ff68 --- /dev/null +++ b/app/Resources/views/aportetipo/edit.html.twig @@ -0,0 +1,21 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Aportetipo edit

+ + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + + +{% endblock %} diff --git a/app/Resources/views/aportetipo/index.html.twig b/app/Resources/views/aportetipo/index.html.twig new file mode 100644 index 0000000..eea28ca --- /dev/null +++ b/app/Resources/views/aportetipo/index.html.twig @@ -0,0 +1,39 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Aportetipos list

+ + + + + + + + + + + {% for aporteTipo in aporteTipos %} + + + + + + {% endfor %} + +
IdDescripcionActions
{{ aporteTipo.id }}{{ aporteTipo.descripcion }} + +
+ + +{% endblock %} diff --git a/app/Resources/views/aportetipo/new.html.twig b/app/Resources/views/aportetipo/new.html.twig new file mode 100644 index 0000000..ea6c5ac --- /dev/null +++ b/app/Resources/views/aportetipo/new.html.twig @@ -0,0 +1,16 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Aportetipo creation

+ + {{ form_start(form) }} + {{ form_widget(form) }} + + {{ form_end(form) }} + + +{% endblock %} diff --git a/app/Resources/views/aportetipo/show.html.twig b/app/Resources/views/aportetipo/show.html.twig new file mode 100644 index 0000000..93400cc --- /dev/null +++ b/app/Resources/views/aportetipo/show.html.twig @@ -0,0 +1,32 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Aportetipo

+ + + + + + + + + + + + +
Id{{ aporteTipo.id }}
Descripcion{{ aporteTipo.descripcion }}
+ + +{% endblock %} diff --git a/app/Resources/views/aspirante/prueba.html b/app/Resources/views/aspirante/prueba.html index d0cfcec..739fa4c 100644 --- a/app/Resources/views/aspirante/prueba.html +++ b/app/Resources/views/aspirante/prueba.html @@ -30,7 +30,7 @@ {% endverbatim %} - {% verbatim %} {% for (var i=0, file; file=o.files[i]; i++) { %} diff --git a/app/Resources/views/base.html.twig b/app/Resources/views/base.html.twig index 39164af..80d59b3 100644 --- a/app/Resources/views/base.html.twig +++ b/app/Resources/views/base.html.twig @@ -27,7 +27,11 @@ - + + + + + {{ form_stylesheet(form) }} {% endblock %} @@ -99,6 +103,22 @@ ga('create', 'UA-145464-11', 'next-themes.com'); ga('send', 'pageview'); + + + + + + + + + + + + + + {{ form_javascript(form) }} {% endblock javascripts %} + + diff --git a/app/Resources/views/candidato/cargaMasiva.html.twig b/app/Resources/views/candidato/cargaMasiva.html.twig deleted file mode 100644 index f49f5fa..0000000 --- a/app/Resources/views/candidato/cargaMasiva.html.twig +++ /dev/null @@ -1,54 +0,0 @@ -{% extends "UBVPrincipalBundle::inicio.html.twig" %} - -{% block contenido %} -
-
-
-
-
Carga Masiva De Candidatos
-
-
- {{form_start(form, {'attr': {'novalidate': 'novalidate'}, 'action': path('candidato_resumen')}) }} - -
-
-
-
- {{ form_label(form.aspiranteTipo) }} - {{ form_widget(form.aspiranteTipo) }} - {% if form.aspiranteTipo.vars.errors[0].message is defined %} - - {{ form.aspiranteTipo.vars.errors[0].message }} - - {% endif %} -
-
-
-
- {{ form_label(form.file) }} - {{ form_widget(form.file) }} - {% if form.file.vars.errors[0].message is defined %} - - {{ form.file.vars.errors[0].message }} - - {% endif %} -
-
-
-
- - - {{ form_widget(form) }} - - {{ form_end(form) }} - -
-
-
-
- -{% endblock %} diff --git a/app/Resources/views/candidato/edit.html.twig b/app/Resources/views/candidato/edit.html.twig index 48e5b21..6e3d0ab 100644 --- a/app/Resources/views/candidato/edit.html.twig +++ b/app/Resources/views/candidato/edit.html.twig @@ -1,21 +1,30 @@ -{% extends 'base.html.twig' %} +{% extends "UBVPrincipalBundle::inicio.html.twig" %} -{% block body %} -

Candidato edit

+{% block contenido %} +

Edicion de Candidatos

+ +
+
+
+
+
Edicion de Candidatos
+
{{ form_start(edit_form) }} {{ form_widget(edit_form) }} - - {{ form_end(edit_form) }} + + + +
    -
  • - Back to the list -
  • -
  • + + + {{ form_end(edit_form) }} + {{ form_start(delete_form) }} {{ form_end(delete_form) }} -
  • +
{% endblock %} diff --git a/app/Resources/views/candidato/exportCsv.twig b/app/Resources/views/candidato/exportCsv.twig deleted file mode 100644 index 4e13e2e..0000000 --- a/app/Resources/views/candidato/exportCsv.twig +++ /dev/null @@ -1,4 +0,0 @@ -id, field1, field2, field3 -{% for row in data %} -{{ row.1 }} -{% endfor %} diff --git a/app/Resources/views/candidato/index.html.twig b/app/Resources/views/candidato/index.html.twig index 5df66d0..abe1385 100644 --- a/app/Resources/views/candidato/index.html.twig +++ b/app/Resources/views/candidato/index.html.twig @@ -1,9 +1,44 @@ {% extends "UBVPrincipalBundle::inicio.html.twig" %} {% block contenido %} -

Candidato list

+

Lista de Candidatos

- +
+
+
+
+
Listado de Candidatos
+
+
@@ -19,8 +54,7 @@ - - + @@ -32,21 +66,25 @@ - + - @@ -55,9 +93,5 @@
IdAno_grado Trabaja Promedio_notaPeriodo_asignadoActionsAcciones
{{ candidato.primerapellido }} {{ candidato.segundoapellido }} {{ candidato.identificacion }}{% if candidato.fechanacimiento %}{{ candidato.fechanacimiento|date('Y-m-d') }}{% endif %}{% if candidato.fechanacimiento %}{{ candidato.fechanacimiento|date('d-m-Y') }}{% endif %} {{ candidato.telefono }} {{ candidato.correo }} {{ candidato.idopsu }} {% if candidato.anogrado %}{{ candidato.anogrado|date('Y-m-d') }}{% endif %} {% if candidato.trabaja %}Yes{% else %}No{% endif %} {{ candidato.promedionota }}
- + {% endblock %} diff --git a/app/Resources/views/candidato/new.html.twig b/app/Resources/views/candidato/new.html.twig index 839a264..3d06602 100644 --- a/app/Resources/views/candidato/new.html.twig +++ b/app/Resources/views/candidato/new.html.twig @@ -1,16 +1,495 @@ -{% extends 'base.html.twig' %} - -{% block body %} -

Candidato creation

- - {{ form_start(form) }} - {{ form_widget(form) }} - - {{ form_end(form) }} - - -{% endblock %} +{% extends 'UBVPrincipalBundle::inicio.html.twig' %} + +{% block stylesheets %} +{{parent()}} + +{% endblock stylesheets %} +{% block configuracion %} {% endblock%} +{% block layout %}
{% endblock %} + +{% block contenido %} +
+
+
+
Registro de Candidatos
+
+ +

Datos Personales

+
+
+
+
+
+
+{# {{ form_label(form.descripcion) }} +{{ form_widget(form.descripcion) }} +{% if form.descripcion.vars.errors[0].message is defined %} + +{{ form.descripcion.vars.errors[0].message }} + +{% endif %} #} +
+
+
+
+ +
+
+
+
+
+ + + + + +
+
+
+
+
+
+
+
+ {{ form_label(form.documentoIdentidadTipo) }} + {{ form_widget(form.documentoIdentidadTipo) }} + {% if form.documentoIdentidadTipo.vars.errors[0].message is defined %} + + {{ form.documentoIdentidadTipo.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.identificacion) }} + {{ form_widget(form.identificacion) }} + {% if form.identificacion.vars.errors[0].message is defined %} + + {{ form.identificacion.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+ +
+
+
+
+
+ {{ form_label(form.fecha_nacimiento) }} + {{ form_widget(form.fecha_nacimiento) }} + {% if form.fecha.nacimiento.vars.errors[0].message is defined %} + + {{ form.fecha_nacimiento.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.estadoCivil) }} + {{ form_widget(form.estadoCivil) }} + {% if form.estadoCivil.vars.errors[0].message is defined %} + + {{ form.estadoCivil.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.genero) }} + {{ form_widget(form.genero) }} + {% if form.genero.vars.errors[0].message is defined %} + + {{ form.genero.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+ +
+
+
+
+
+ {{ form_label(form.primer_nombre) }} + {{ form_widget(form.primer_nombre) }} + {% if form.primer_nombre.vars.errors[0].message is defined %} + + {{ form.primer_nombre.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.segundo_nombre) }} + {{ form_widget(form.segundo_nombre) }} + {% if form.segundo_nombre.vars.errors[0].message is defined %} + + {{ form.segundo_nombre.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+ + + +
+
+
+
+
+ {{ form_label(form.primer_apellido) }} + {{ form_widget(form.primer_apellido) }} + {% if form.primer_apellido.vars.errors[0].message is defined %} + + {{ form.primer_apellido.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.segundo_apellido) }} + {{ form_widget(form.segundo_apellido) }} + {% if form.segundo_apellido.vars.errors[0].message is defined %} + + {{ form.segundo_apellido.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+ + + +
+
+
+
+
+ {{ form_label(form.telefonoCodigoArea) }} + {{ form_widget(form.telefonoCodigoArea) }} + {% if form.telefonoCodigoArea.vars.errors[0].message is defined %} + + {{ form.telefonoCodigoArea.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.telefono) }} + {{ form_widget(form.telefono) }} + {% if form.telefono.vars.errors[0].message is defined %} + + {{ form.telefono.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.correoTipo) }} + {{ form_widget(form.correoTipo) }} + {% if form.correoTipo.vars.errors[0].message is defined %} + + {{ form.correoTipo.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.correo) }} + {{ form_widget(form.correo) }} + {% if form.correo.vars.errors[0].message is defined %} + + {{ form.correo.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.etnia) }} + {{ form_widget(form.etnia) }} + {% if form.etnia.vars.errors[0].message is defined %} + + {{ form.etnia.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.trabaja) }} + {{ form_widget(form.trabaja) }} + {% if form.trabaja.vars.errors[0].message is defined %} + + {{ form.trabaja.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+
+ + + +
+
+

Ubicacion

+
+
+
+
+
+ {{ form_label(form.estado) }} + {{ form_widget(form.estado) }} + {% if form.estado.vars.errors[0].message is defined %} + + {{ form.estado.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.aldea) }} + {{ form_widget(form.aldea) }} + {% if form.aldea.vars.errors[0].message is defined %} + + {{ form.aldea.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.programa) }} + {{ form_widget(form.programa) }} + {% if form.programa.vars.errors[0].message is defined %} + + {{ form.programa.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+
+ +
+
+

Datos Academicos

+
+
+
+
+
+ {{ form_label(form.id_opsu) }} + {{ form_widget(form.id_opsu) }} + {% if form.id_opsu.vars.errors[0].message is defined %} + + {{ form.id_opsu.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.ano_grado) }} + {{ form_widget(form.ano_grado) }} + {% if form.ano_grado.vars.errors[0].message is defined %} + + {{ form.ano_grado.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.promedio_nota) }} + {{ form_widget(form.promedio_nota) }} + {% if form.promedio_nota.vars.errors[0].message is defined %} + + { form.promedio_nota.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.aspiranteTipo) }} + {{ form_widget(form.aspiranteTipo) }} + {% if form.aspiranteTipo.vars.errors[0].message is defined %} + + {{ form.aspiranteTipo.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+ + + + +
+
+
+
+
+ {{ form_label(form.aspiranteEstatus) }} + {{ form_widget(form.aspiranteEstatus) }} + {% if form.aspiranteEstatus.vars.errors[0].message is defined %} + + {{ form.aspiranteEstatus.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.periodoAcademico) }} + {{ form_widget(form.periodoAcademico) }} + {% if form.periodoAcademico.vars.errors[0].message is defined %} + + {{ form.convenio.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.convenio) }} + {{ form_widget(form.convenio) }} + {% if form.convenio.vars.errors[0].message is defined %} + + {{ form.convenio.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.discapacidad) }} + {{ form_widget(form.discapacidad) }} + {% if form.discapacidad.vars.errors[0].message is defined %} + + {{ form.discapacidad.vars.errors[0].message }} + + {% endif %} + + + + +{{form_widget(form._token)}} +
  
+
+
+
+
+
+
+
+
 
+
+ + + + + + +  +
+
+
+ +
+
+
+
+ +
+
+
+ + + {# + {{ form_start(form) }} + + {{ form_widget(form_token) }} + + {{ form_end(form) }} +#} + + +{% endblock %} + + diff --git a/app/Resources/views/candidato/resultadoCarga.html.twig b/app/Resources/views/candidato/resultadoCarga.html.twig deleted file mode 100644 index 1c1371b..0000000 --- a/app/Resources/views/candidato/resultadoCarga.html.twig +++ /dev/null @@ -1,233 +0,0 @@ -{% extends "UBVPrincipalBundle::inicio.html.twig" %} -{% block contenido %} - -
-
-
-
-
-
-
Candidatos aptos Para Cargar
-
-
- - - - - - - - - - - - {% if candidatosCargados|length > 0 %} - {% for candidatoCargado in candidatosCargados %} - - - - - - - - {% endfor %} - - - - - - - {% else %} - - - - - - - - - - {% endif %} -
#N°. IdentificaciónNombre y ApellidoTeléfonoAldea Asignada
{{loop.index}}{{ candidatoCargado.identificacion }}{{ candidatoCargado.primerNombre }} {{ candidatoCargado.segundoNombre|first }} {{ candidatoCargado.primerApellido }} {{ candidatoCargado.segundoApellido|first }}{{ candidatoCargado.telefonoCodigoArea }}-{{ candidatoCargado.telefono }}{{ candidatoCargado.aldeaAsig }}
{{candidatosCargados|length}} Candidato(s) de {{candidatosExistentes|length + candidatosNoCargadosTwig|length + candidatosCargados|length}} Registrado(s){% if candidatosCargados|length > 0 %}{% endif %}
No hay candidatos aptos para cargar
-
-
-
-
-
-
-
-
-
Candidatos Existentes
-
-
- - - - - - - - - - - - {% if candidatosExistentes|length > 0 %} - {% for candidatoExistente in candidatosExistentes %} - - - - - - - - {% endfor %} - - - - {##} - - - - {% else %} - - - - - - - - - - {% endif %} -
#N°. IdentificaciónNombre y ApellidoTeléfonoAldea Asignada
{{loop.index}}{{ candidatoExistente.identificacion }}{{ candidatoExistente.primerNombre }} {{ candidatoExistente.segundoNombre|first }} {{ candidatoExistente.primerApellido }} {{ candidatoExistente.segundoApellido|first }}{{ candidatoExistente.telefonoCodigoArea }}-{{ candidatoExistente.telefono }}{{ candidatoExistente.aldeaAsig }}
{{candidatosExistentes|length}} Candidato(s) de {{candidatosExistentes|length + candidatosNoCargadosTwig|length + candidatosCargados|length}} Registrado(s){% if candidatosExistentes|length > 0 %}{% endif %} - {% if candidatosExistentes|length > 0 %} - - {% endif %} -
No hay candidatos aptos para cargar
-
-
-
-
-
-
-
-
-
-
-
Candidatos con sdasdproblemas para cargar
-
-
- - - - - - - - - - - - {% if candidatosNoCargadosTwig|length > 0 %} - {% for candidatoNoCargado in candidatosNoCargadosTwig %} - - - - - - - - {% endfor %} - - - - - - - {% else %} - - - - - - - - - - - {% endif %} -
#N°. IdentificaciónNombre y ApellidoTeléfonoCeldas a Revizar
{{loop.index}}{{ candidatoNoCargado.identificacion }}{{ candidatoNoCargado.primerNombre }} {{ candidatoNoCargado.segundoNombre|first }} {{ candidatoNoCargado.primerApellido }} {{ candidatoNoCargado.segundoApellido|first }}{{ candidatoNoCargado.telefonoCodigoArea }}-{{ candidatoNoCargado.telefono }} - {{ candidatoNoCargado.Errores }} -
{{candidatosNoCargadosTwig|length}} Candidato(s) de {{candidatosExistentes|length + candidatosNoCargadosTwig|length + candidatosCargados|length}} Registrado(s) - {% if candidatosNoCargadosTwig|length > 0 %} - - - {% endif %} -
No existen candidatos por revisión
{{candidatosNoCargadosTwig|length}} Candidato(s) de {{candidatosExistentes|length + candidatosNoCargadosTwig|length + candidatosCargados|length}} Regasfdsafstrado(s)
-
-
-
-
-
-
-{% endblock %} -{% block javascripts %} - {{ parent() }} - -{% endblock %} diff --git a/app/Resources/views/candidato/show.html.twig b/app/Resources/views/candidato/show.html.twig index 63a1817..c6500b0 100644 --- a/app/Resources/views/candidato/show.html.twig +++ b/app/Resources/views/candidato/show.html.twig @@ -1,9 +1,17 @@ -{% extends 'base.html.twig' %} +{% extends 'UBVPrincipalBundle::inicio.html.twig' %} -{% block body %} -

Candidato

- +{% block contenido %} +
+
+
+
+
Confirmacion
+ +
+ + +
@@ -31,7 +39,7 @@ - + @@ -47,7 +55,7 @@ - + @@ -57,24 +65,24 @@ - - - -
Id
Fecha_nacimiento{% if candidato.fechanacimiento %}{{ candidato.fechanacimiento|date('Y-m-d') }}{% endif %}{% if candidato.fechanacimiento %}{{ candidato.fechanacimiento|date('d-m-Y') }}{% endif %}
Telefono
Ano_grado{% if candidato.anogrado %}{{ candidato.anogrado|date('Y-m-d') }}{% endif %}{% if candidato.anogrado %}{{ candidato.anogrado|date('d-m-Y') }}{% endif %}
TrabajaPromedio_nota {{ candidato.promedionota }}
Periodo_asignado{{ candidato.periodoasignado }}
{% endblock %} diff --git a/app/Resources/views/cargaacademica/edit.html.twig b/app/Resources/views/cargaacademica/edit.html.twig new file mode 100644 index 0000000..9a529df --- /dev/null +++ b/app/Resources/views/cargaacademica/edit.html.twig @@ -0,0 +1,21 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Cargaacademica edit

+ + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + +
    +
  • + Back to the list +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/cargaacademica/index.html.twig b/app/Resources/views/cargaacademica/index.html.twig new file mode 100644 index 0000000..ff49079 --- /dev/null +++ b/app/Resources/views/cargaacademica/index.html.twig @@ -0,0 +1,37 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Cargaacademicas list

+ + + + + + + + + + {% for cargaAcademica in cargaAcademicas %} + + + + + {% endfor %} + +
IdActions
{{ cargaAcademica.id }} + +
+ + +{% endblock %} diff --git a/app/Resources/views/cargaacademica/new.html.twig b/app/Resources/views/cargaacademica/new.html.twig new file mode 100644 index 0000000..ceb2877 --- /dev/null +++ b/app/Resources/views/cargaacademica/new.html.twig @@ -0,0 +1,16 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Cargaacademica creation

+ + {{ form_start(form) }} + {{ form_widget(form) }} + + {{ form_end(form) }} + + +{% endblock %} diff --git a/app/Resources/views/cargaacademica/show.html.twig b/app/Resources/views/cargaacademica/show.html.twig new file mode 100644 index 0000000..2937ed6 --- /dev/null +++ b/app/Resources/views/cargaacademica/show.html.twig @@ -0,0 +1,28 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Cargaacademica

+ + + + + + + + +
Id{{ cargaAcademica.id }}
+ +
    +
  • + Back to the list +
  • +
  • + Edit +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/centroestudio/edit.html.twig b/app/Resources/views/centroestudio/edit.html.twig new file mode 100644 index 0000000..545861c --- /dev/null +++ b/app/Resources/views/centroestudio/edit.html.twig @@ -0,0 +1,21 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Centroestudio edit

+ + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + +
    +
  • + Back to the list +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/centroestudio/index.html.twig b/app/Resources/views/centroestudio/index.html.twig new file mode 100644 index 0000000..439a47e --- /dev/null +++ b/app/Resources/views/centroestudio/index.html.twig @@ -0,0 +1,41 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Centroestudios list

+ + + + + + + + + + + + {% for centroEstudio in centroEstudios %} + + + + + + + {% endfor %} + +
IdDescripcionCodigoActions
{{ centroEstudio.id }}{{ centroEstudio.descripcion }}{{ centroEstudio.codigo }} + +
+ + +{% endblock %} diff --git a/app/Resources/views/centroestudio/new.html.twig b/app/Resources/views/centroestudio/new.html.twig new file mode 100644 index 0000000..d480585 --- /dev/null +++ b/app/Resources/views/centroestudio/new.html.twig @@ -0,0 +1,16 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Centroestudio creation

+ + {{ form_start(form) }} + {{ form_widget(form) }} + + {{ form_end(form) }} + + +{% endblock %} diff --git a/app/Resources/views/centroestudio/show.html.twig b/app/Resources/views/centroestudio/show.html.twig new file mode 100644 index 0000000..0d8beb7 --- /dev/null +++ b/app/Resources/views/centroestudio/show.html.twig @@ -0,0 +1,36 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Centroestudio

+ + + + + + + + + + + + + + + + +
Id{{ centroEstudio.id }}
Descripcion{{ centroEstudio.descripcion }}
Codigo{{ centroEstudio.codigo }}
+ +
    +
  • + Back to the list +
  • +
  • + Edit +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/comunidad/edit.html.twig b/app/Resources/views/comunidad/edit.html.twig new file mode 100644 index 0000000..d310d15 --- /dev/null +++ b/app/Resources/views/comunidad/edit.html.twig @@ -0,0 +1,21 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Comunidad edit

+ + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + +
    +
  • + Back to the list +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/comunidad/index.html.twig b/app/Resources/views/comunidad/index.html.twig new file mode 100644 index 0000000..65c87ee --- /dev/null +++ b/app/Resources/views/comunidad/index.html.twig @@ -0,0 +1,39 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Comunidads list

+ + + + + + + + + + + {% for comunidad in comunidads %} + + + + + + {% endfor %} + +
IdDescripcionActions
{{ comunidad.id }}{{ comunidad.descripcion }} + +
+ + +{% endblock %} diff --git a/app/Resources/views/comunidad/new.html.twig b/app/Resources/views/comunidad/new.html.twig new file mode 100644 index 0000000..7f2ff10 --- /dev/null +++ b/app/Resources/views/comunidad/new.html.twig @@ -0,0 +1,16 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Comunidad creation

+ + {{ form_start(form) }} + {{ form_widget(form) }} + + {{ form_end(form) }} + + +{% endblock %} diff --git a/app/Resources/views/comunidad/show.html.twig b/app/Resources/views/comunidad/show.html.twig new file mode 100644 index 0000000..04e750a --- /dev/null +++ b/app/Resources/views/comunidad/show.html.twig @@ -0,0 +1,32 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Comunidad

+ + + + + + + + + + + + +
Id{{ comunidad.id }}
Descripcion{{ comunidad.descripcion }}
+ +
    +
  • + Back to the list +
  • +
  • + Edit +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/comunidadtipo/edit.html.twig b/app/Resources/views/comunidadtipo/edit.html.twig new file mode 100644 index 0000000..80f9a8d --- /dev/null +++ b/app/Resources/views/comunidadtipo/edit.html.twig @@ -0,0 +1,21 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Comunidadtipo edit

+ + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + +
    +
  • + Back to the list +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/comunidadtipo/index.html.twig b/app/Resources/views/comunidadtipo/index.html.twig new file mode 100644 index 0000000..9ec9ea6 --- /dev/null +++ b/app/Resources/views/comunidadtipo/index.html.twig @@ -0,0 +1,39 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Comunidadtipos list

+ + + + + + + + + + + {% for comunidadTipo in comunidadTipos %} + + + + + + {% endfor %} + +
IdDescripcionActions
{{ comunidadTipo.id }}{{ comunidadTipo.descripcion }} + +
+ + +{% endblock %} diff --git a/app/Resources/views/comunidadtipo/new.html.twig b/app/Resources/views/comunidadtipo/new.html.twig new file mode 100644 index 0000000..b5cebb0 --- /dev/null +++ b/app/Resources/views/comunidadtipo/new.html.twig @@ -0,0 +1,16 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Comunidadtipo creation

+ + {{ form_start(form) }} + {{ form_widget(form) }} + + {{ form_end(form) }} + + +{% endblock %} diff --git a/app/Resources/views/comunidadtipo/show.html.twig b/app/Resources/views/comunidadtipo/show.html.twig new file mode 100644 index 0000000..0b5dd7c --- /dev/null +++ b/app/Resources/views/comunidadtipo/show.html.twig @@ -0,0 +1,32 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Comunidadtipo

+ + + + + + + + + + + + +
Id{{ comunidadTipo.id }}
Descripcion{{ comunidadTipo.descripcion }}
+ +
    +
  • + Back to the list +
  • +
  • + Edit +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/docente/edit.html.twig b/app/Resources/views/docente/edit.html.twig new file mode 100644 index 0000000..41e385c --- /dev/null +++ b/app/Resources/views/docente/edit.html.twig @@ -0,0 +1,21 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Docente edit

+ + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + +
    +
  • + Back to the list +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/docente/index.html.twig b/app/Resources/views/docente/index.html.twig new file mode 100644 index 0000000..56a0de3 --- /dev/null +++ b/app/Resources/views/docente/index.html.twig @@ -0,0 +1,37 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Docentes list

+ + + + + + + + + + {% for docente in docentes %} + + + + + {% endfor %} + +
IdActions
{{ docente.id }} + +
+ + +{% endblock %} diff --git a/app/Resources/views/docente/new.html.twig b/app/Resources/views/docente/new.html.twig new file mode 100644 index 0000000..6e434c3 --- /dev/null +++ b/app/Resources/views/docente/new.html.twig @@ -0,0 +1,16 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Docente creation

+ + {{ form_start(form) }} + {{ form_widget(form) }} + + {{ form_end(form) }} + + +{% endblock %} diff --git a/app/Resources/views/docente/show.html.twig b/app/Resources/views/docente/show.html.twig new file mode 100644 index 0000000..6d3de4d --- /dev/null +++ b/app/Resources/views/docente/show.html.twig @@ -0,0 +1,28 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Docente

+ + + + + + + + +
Id{{ docente.id }}
+ +
    +
  • + Back to the list +
  • +
  • + Edit +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/docentealdea/edit.html.twig b/app/Resources/views/docentealdea/edit.html.twig new file mode 100644 index 0000000..d80d237 --- /dev/null +++ b/app/Resources/views/docentealdea/edit.html.twig @@ -0,0 +1,21 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Docentealdea edit

+ + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + +
    +
  • + Back to the list +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/docentealdea/index.html.twig b/app/Resources/views/docentealdea/index.html.twig new file mode 100644 index 0000000..0a60943 --- /dev/null +++ b/app/Resources/views/docentealdea/index.html.twig @@ -0,0 +1,37 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Docentealdeas list

+ + + + + + + + + + {% for docenteAldea in docenteAldeas %} + + + + + {% endfor %} + +
IdActions
{{ docenteAldea.id }} + +
+ + +{% endblock %} diff --git a/app/Resources/views/docentealdea/new.html.twig b/app/Resources/views/docentealdea/new.html.twig new file mode 100644 index 0000000..813de3e --- /dev/null +++ b/app/Resources/views/docentealdea/new.html.twig @@ -0,0 +1,16 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Docentealdea creation

+ + {{ form_start(form) }} + {{ form_widget(form) }} + + {{ form_end(form) }} + + +{% endblock %} diff --git a/app/Resources/views/docentealdea/show.html.twig b/app/Resources/views/docentealdea/show.html.twig new file mode 100644 index 0000000..eb92cc5 --- /dev/null +++ b/app/Resources/views/docentealdea/show.html.twig @@ -0,0 +1,28 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Docentealdea

+ + + + + + + + +
Id{{ docenteAldea.id }}
+ +
    +
  • + Back to the list +
  • +
  • + Edit +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/docentededicacion/edit.html.twig b/app/Resources/views/docentededicacion/edit.html.twig new file mode 100644 index 0000000..6bda04a --- /dev/null +++ b/app/Resources/views/docentededicacion/edit.html.twig @@ -0,0 +1,21 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Docentededicacion edit

+ + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + +
    +
  • + Back to the list +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/docentededicacion/index.html.twig b/app/Resources/views/docentededicacion/index.html.twig new file mode 100644 index 0000000..c4a4359 --- /dev/null +++ b/app/Resources/views/docentededicacion/index.html.twig @@ -0,0 +1,45 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Docentededicacions list

+ + + + + + + + + + + + + + {% for docenteDedicacion in docenteDedicacions %} + + + + + + + + + {% endfor %} + +
IdDescripcionTotal_horasHora_docencia_minimaHora_docencia_maximaActions
{{ docenteDedicacion.id }}{{ docenteDedicacion.descripcion }}{{ docenteDedicacion.totalhoras }}{{ docenteDedicacion.horadocenciaminima }}{{ docenteDedicacion.horadocenciamaxima }} + +
+ + +{% endblock %} diff --git a/app/Resources/views/docentededicacion/new.html.twig b/app/Resources/views/docentededicacion/new.html.twig new file mode 100644 index 0000000..54aad39 --- /dev/null +++ b/app/Resources/views/docentededicacion/new.html.twig @@ -0,0 +1,16 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Docentededicacion creation

+ + {{ form_start(form) }} + {{ form_widget(form) }} + + {{ form_end(form) }} + + +{% endblock %} diff --git a/app/Resources/views/docentededicacion/show.html.twig b/app/Resources/views/docentededicacion/show.html.twig new file mode 100644 index 0000000..567fb16 --- /dev/null +++ b/app/Resources/views/docentededicacion/show.html.twig @@ -0,0 +1,44 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Docentededicacion

+ + + + + + + + + + + + + + + + + + + + + + + + +
Id{{ docenteDedicacion.id }}
Descripcion{{ docenteDedicacion.descripcion }}
Total_horas{{ docenteDedicacion.totalhoras }}
Hora_docencia_minima{{ docenteDedicacion.horadocenciaminima }}
Hora_docencia_maxima{{ docenteDedicacion.horadocenciamaxima }}
+ +
    +
  • + Back to the list +
  • +
  • + Edit +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/docenteestatus/edit.html.twig b/app/Resources/views/docenteestatus/edit.html.twig new file mode 100644 index 0000000..c400dc5 --- /dev/null +++ b/app/Resources/views/docenteestatus/edit.html.twig @@ -0,0 +1,21 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Docenteestatus edit

+ + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + +
    +
  • + Back to the list +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/docenteestatus/index.html.twig b/app/Resources/views/docenteestatus/index.html.twig new file mode 100644 index 0000000..2c3ec60 --- /dev/null +++ b/app/Resources/views/docenteestatus/index.html.twig @@ -0,0 +1,39 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Docenteestatuses list

+ + + + + + + + + + + {% for docenteEstatus in docenteEstatuses %} + + + + + + {% endfor %} + +
IdDescripcionActions
{{ docenteEstatus.id }}{{ docenteEstatus.descripcion }} + +
+ + +{% endblock %} diff --git a/app/Resources/views/docenteestatus/new.html.twig b/app/Resources/views/docenteestatus/new.html.twig new file mode 100644 index 0000000..d5ead81 --- /dev/null +++ b/app/Resources/views/docenteestatus/new.html.twig @@ -0,0 +1,16 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Docenteestatus creation

+ + {{ form_start(form) }} + {{ form_widget(form) }} + + {{ form_end(form) }} + + +{% endblock %} diff --git a/app/Resources/views/docenteestatus/show.html.twig b/app/Resources/views/docenteestatus/show.html.twig new file mode 100644 index 0000000..916abe3 --- /dev/null +++ b/app/Resources/views/docenteestatus/show.html.twig @@ -0,0 +1,32 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Docenteestatus

+ + + + + + + + + + + + +
Id{{ docenteEstatus.id }}
Descripcion{{ docenteEstatus.descripcion }}
+ +
    +
  • + Back to the list +
  • +
  • + Edit +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/docenteproyecto/edit.html.twig b/app/Resources/views/docenteproyecto/edit.html.twig new file mode 100644 index 0000000..be6fc78 --- /dev/null +++ b/app/Resources/views/docenteproyecto/edit.html.twig @@ -0,0 +1,21 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Docenteproyecto edit

+ + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + +
    +
  • + Back to the list +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/docenteproyecto/index.html.twig b/app/Resources/views/docenteproyecto/index.html.twig new file mode 100644 index 0000000..4e07db2 --- /dev/null +++ b/app/Resources/views/docenteproyecto/index.html.twig @@ -0,0 +1,39 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Docenteproyectos list

+ + + + + + + + + + + {% for docenteProyecto in docenteProyectos %} + + + + + + {% endfor %} + +
IdEstatusActions
{{ docenteProyecto.id }}{% if docenteProyecto.estatus %}Yes{% else %}No{% endif %} + +
+ + +{% endblock %} diff --git a/app/Resources/views/docenteproyecto/new.html.twig b/app/Resources/views/docenteproyecto/new.html.twig new file mode 100644 index 0000000..54b7f99 --- /dev/null +++ b/app/Resources/views/docenteproyecto/new.html.twig @@ -0,0 +1,16 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Docenteproyecto creation

+ + {{ form_start(form) }} + {{ form_widget(form) }} + + {{ form_end(form) }} + + +{% endblock %} diff --git a/app/Resources/views/docenteproyecto/show.html.twig b/app/Resources/views/docenteproyecto/show.html.twig new file mode 100644 index 0000000..53227d8 --- /dev/null +++ b/app/Resources/views/docenteproyecto/show.html.twig @@ -0,0 +1,32 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Docenteproyecto

+ + + + + + + + + + + + +
Id{{ docenteProyecto.id }}
Estatus{% if docenteProyecto.estatus %}Yes{% else %}No{% endif %}
+ +
    +
  • + Back to the list +
  • +
  • + Edit +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/institucion/edit.html.twig b/app/Resources/views/institucion/edit.html.twig new file mode 100644 index 0000000..1afc404 --- /dev/null +++ b/app/Resources/views/institucion/edit.html.twig @@ -0,0 +1,21 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Institucion edit

+ + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + +
    +
  • + Back to the list +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/institucion/index.html.twig b/app/Resources/views/institucion/index.html.twig new file mode 100644 index 0000000..44fcd46 --- /dev/null +++ b/app/Resources/views/institucion/index.html.twig @@ -0,0 +1,39 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Institucions list

+ + + + + + + + + + + {% for institucion in institucions %} + + + + + + {% endfor %} + +
IdDescripcionActions
{{ institucion.id }}{{ institucion.descripcion }} + +
+ + +{% endblock %} diff --git a/app/Resources/views/institucion/new.html.twig b/app/Resources/views/institucion/new.html.twig new file mode 100644 index 0000000..c300795 --- /dev/null +++ b/app/Resources/views/institucion/new.html.twig @@ -0,0 +1,16 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Institucion creation

+ + {{ form_start(form) }} + {{ form_widget(form) }} + + {{ form_end(form) }} + + +{% endblock %} diff --git a/app/Resources/views/institucion/show.html.twig b/app/Resources/views/institucion/show.html.twig new file mode 100644 index 0000000..01670e9 --- /dev/null +++ b/app/Resources/views/institucion/show.html.twig @@ -0,0 +1,32 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Institucion

+ + + + + + + + + + + + +
Id{{ institucion.id }}
Descripcion{{ institucion.descripcion }}
+ +
    +
  • + Back to the list +
  • +
  • + Edit +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/institucioneducativa/edit.html.twig b/app/Resources/views/institucioneducativa/edit.html.twig new file mode 100644 index 0000000..1901561 --- /dev/null +++ b/app/Resources/views/institucioneducativa/edit.html.twig @@ -0,0 +1,21 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Institucioneducativa edit

+ + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + +
    +
  • + Back to the list +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/institucioneducativa/index.html.twig b/app/Resources/views/institucioneducativa/index.html.twig new file mode 100644 index 0000000..9e58436 --- /dev/null +++ b/app/Resources/views/institucioneducativa/index.html.twig @@ -0,0 +1,39 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Institucioneducativas list

+ + + + + + + + + + + {% for institucionEducativa in institucionEducativas %} + + + + + + {% endfor %} + +
IdDescripcionActions
{{ institucionEducativa.id }}{{ institucionEducativa.descripcion }} + +
+ + +{% endblock %} diff --git a/app/Resources/views/institucioneducativa/new.html.twig b/app/Resources/views/institucioneducativa/new.html.twig new file mode 100644 index 0000000..500db2e --- /dev/null +++ b/app/Resources/views/institucioneducativa/new.html.twig @@ -0,0 +1,16 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Institucioneducativa creation

+ + {{ form_start(form) }} + {{ form_widget(form) }} + + {{ form_end(form) }} + + +{% endblock %} diff --git a/app/Resources/views/institucioneducativa/show.html.twig b/app/Resources/views/institucioneducativa/show.html.twig new file mode 100644 index 0000000..f9f3495 --- /dev/null +++ b/app/Resources/views/institucioneducativa/show.html.twig @@ -0,0 +1,32 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Institucioneducativa

+ + + + + + + + + + + + +
Id{{ institucionEducativa.id }}
Descripcion{{ institucionEducativa.descripcion }}
+ +
    +
  • + Back to the list +
  • +
  • + Edit +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/metodologia/edit.html.twig b/app/Resources/views/metodologia/edit.html.twig new file mode 100644 index 0000000..33c6fd2 --- /dev/null +++ b/app/Resources/views/metodologia/edit.html.twig @@ -0,0 +1,21 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Metodologium edit

+ + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + +
    +
  • + Back to the list +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/metodologia/index.html.twig b/app/Resources/views/metodologia/index.html.twig new file mode 100644 index 0000000..5eded7c --- /dev/null +++ b/app/Resources/views/metodologia/index.html.twig @@ -0,0 +1,39 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Metodologias list

+ + + + + + + + + + + {% for metodologium in metodologias %} + + + + + + {% endfor %} + +
IdDescripcionActions
{{ metodologium.id }}{{ metodologium.descripcion }} + +
+ + +{% endblock %} diff --git a/app/Resources/views/metodologia/new.html.twig b/app/Resources/views/metodologia/new.html.twig new file mode 100644 index 0000000..1b8dc5d --- /dev/null +++ b/app/Resources/views/metodologia/new.html.twig @@ -0,0 +1,16 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Metodologium creation

+ + {{ form_start(form) }} + {{ form_widget(form) }} + + {{ form_end(form) }} + + +{% endblock %} diff --git a/app/Resources/views/metodologia/show.html.twig b/app/Resources/views/metodologia/show.html.twig new file mode 100644 index 0000000..ec4952a --- /dev/null +++ b/app/Resources/views/metodologia/show.html.twig @@ -0,0 +1,32 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Metodologium

+ + + + + + + + + + + + +
Id{{ metodologium.id }}
Descripcion{{ metodologium.descripcion }}
+ +
    +
  • + Back to the list +
  • +
  • + Edit +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/metodologiatipo/edit.html.twig b/app/Resources/views/metodologiatipo/edit.html.twig new file mode 100644 index 0000000..a719ff1 --- /dev/null +++ b/app/Resources/views/metodologiatipo/edit.html.twig @@ -0,0 +1,21 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Metodologiatipo edit

+ + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + +
    +
  • + Back to the list +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/metodologiatipo/index.html.twig b/app/Resources/views/metodologiatipo/index.html.twig new file mode 100644 index 0000000..fcafa2d --- /dev/null +++ b/app/Resources/views/metodologiatipo/index.html.twig @@ -0,0 +1,39 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Metodologiatipos list

+ + + + + + + + + + + {% for metodologiaTipo in metodologiaTipos %} + + + + + + {% endfor %} + +
IdDescripcionActions
{{ metodologiaTipo.id }}{{ metodologiaTipo.descripcion }} + +
+ + +{% endblock %} diff --git a/app/Resources/views/metodologiatipo/new.html.twig b/app/Resources/views/metodologiatipo/new.html.twig new file mode 100644 index 0000000..619d7f1 --- /dev/null +++ b/app/Resources/views/metodologiatipo/new.html.twig @@ -0,0 +1,16 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Metodologiatipo creation

+ + {{ form_start(form) }} + {{ form_widget(form) }} + + {{ form_end(form) }} + + +{% endblock %} diff --git a/app/Resources/views/metodologiatipo/show.html.twig b/app/Resources/views/metodologiatipo/show.html.twig new file mode 100644 index 0000000..e74d7d6 --- /dev/null +++ b/app/Resources/views/metodologiatipo/show.html.twig @@ -0,0 +1,32 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Metodologiatipo

+ + + + + + + + + + + + +
Id{{ metodologiaTipo.id }}
Descripcion{{ metodologiaTipo.descripcion }}
+ +
    +
  • + Back to the list +
  • +
  • + Edit +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/objetivonivel/edit.html.twig b/app/Resources/views/objetivonivel/edit.html.twig new file mode 100644 index 0000000..30fbc3c --- /dev/null +++ b/app/Resources/views/objetivonivel/edit.html.twig @@ -0,0 +1,21 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Objetivonivel edit

+ + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + +
    +
  • + Back to the list +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/objetivonivel/index.html.twig b/app/Resources/views/objetivonivel/index.html.twig new file mode 100644 index 0000000..1239bc7 --- /dev/null +++ b/app/Resources/views/objetivonivel/index.html.twig @@ -0,0 +1,39 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Objetivonivels list

+ + + + + + + + + + + {% for objetivoNivel in objetivoNivels %} + + + + + + {% endfor %} + +
IdDescripcionActions
{{ objetivoNivel.id }}{{ objetivoNivel.descripcion }} + +
+ + +{% endblock %} diff --git a/app/Resources/views/objetivonivel/new.html.twig b/app/Resources/views/objetivonivel/new.html.twig new file mode 100644 index 0000000..5be09de --- /dev/null +++ b/app/Resources/views/objetivonivel/new.html.twig @@ -0,0 +1,16 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Objetivonivel creation

+ + {{ form_start(form) }} + {{ form_widget(form) }} + + {{ form_end(form) }} + + +{% endblock %} diff --git a/app/Resources/views/objetivonivel/show.html.twig b/app/Resources/views/objetivonivel/show.html.twig new file mode 100644 index 0000000..1adcb15 --- /dev/null +++ b/app/Resources/views/objetivonivel/show.html.twig @@ -0,0 +1,32 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Objetivonivel

+ + + + + + + + + + + + +
Id{{ objetivoNivel.id }}
Descripcion{{ objetivoNivel.descripcion }}
+ +
    +
  • + Back to the list +
  • +
  • + Edit +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/objetivoplanpatria/edit.html.twig b/app/Resources/views/objetivoplanpatria/edit.html.twig new file mode 100644 index 0000000..3f5b08c --- /dev/null +++ b/app/Resources/views/objetivoplanpatria/edit.html.twig @@ -0,0 +1,29 @@ +{% extends "UBVPrincipalBundle::inicio.html.twig" %} + +{% block contenido %} +

Lista de Objetivos

+ +
+
+
+
+
Listado de Objetivos
+
+ + + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + +
    +
  • + Back to the list +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/objetivoplanpatria/index.html.twig b/app/Resources/views/objetivoplanpatria/index.html.twig new file mode 100644 index 0000000..ca4433d --- /dev/null +++ b/app/Resources/views/objetivoplanpatria/index.html.twig @@ -0,0 +1,76 @@ +{% extends "UBVPrincipalBundle::inicio.html.twig" %} + +{% block contenido %} +

Lista de Objetivos

+ +
+
+
+
+
Listado de Objetivos
+
+
+ +
+ + + + + + + + + + + {% for objetivoPlanPatrium in objetivoPlanPatrias %} + + + + + + + {% endfor %} + +
IdIndice_objetivoDescripcionActions
{{ objetivoPlanPatrium.id }}{{ objetivoPlanPatrium.indiceobjetivo }}{{ objetivoPlanPatrium.descripcion }} + +
+ + +{% endblock %} diff --git a/app/Resources/views/objetivoplanpatria/new.html.twig b/app/Resources/views/objetivoplanpatria/new.html.twig new file mode 100644 index 0000000..f45c129 --- /dev/null +++ b/app/Resources/views/objetivoplanpatria/new.html.twig @@ -0,0 +1,16 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Objetivoplanpatrium creation

+ + {{ form_start(form) }} + {{ form_widget(form) }} + + {{ form_end(form) }} + + +{% endblock %} diff --git a/app/Resources/views/objetivoplanpatria/show.html.twig b/app/Resources/views/objetivoplanpatria/show.html.twig new file mode 100644 index 0000000..3391902 --- /dev/null +++ b/app/Resources/views/objetivoplanpatria/show.html.twig @@ -0,0 +1,49 @@ +{% extends "UBVPrincipalBundle::inicio.html.twig" %} + +{% block contenido %} +

Lista de Objetivos

+ +
+
+
+
+
Listado de Objetivos
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + +
Id{{ objetivoPlanPatrium.id }}
Indice_objetivo{{ objetivoPlanPatrium.indiceobjetivo }}
Descripcion{{ objetivoPlanPatrium.descripcion }}
+ +
    +
  • + Back to the list +
  • +
  • + Edit +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/persona/new.html.twig b/app/Resources/views/persona/new.html.twig index d38a8c9..daf6a8b 100644 --- a/app/Resources/views/persona/new.html.twig +++ b/app/Resources/views/persona/new.html.twig @@ -23,7 +23,7 @@
diff --git a/app/Resources/views/personaproyecto/edit.html.twig b/app/Resources/views/personaproyecto/edit.html.twig new file mode 100644 index 0000000..e3838bd --- /dev/null +++ b/app/Resources/views/personaproyecto/edit.html.twig @@ -0,0 +1,21 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Personaproyecto edit

+ + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + +
    +
  • + Back to the list +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/personaproyecto/index.html.twig b/app/Resources/views/personaproyecto/index.html.twig new file mode 100644 index 0000000..a63e387 --- /dev/null +++ b/app/Resources/views/personaproyecto/index.html.twig @@ -0,0 +1,47 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Personaproyectos list

+ + + + + + + + + + + + + + + {% for personaProyecto in personaProyectos %} + + + + + + + + + + {% endfor %} + +
IdIdentificacionNombreApellidoCorreoTelefonoActions
{{ personaProyecto.id }}{{ personaProyecto.identificacion }}{{ personaProyecto.nombre }}{{ personaProyecto.apellido }}{{ personaProyecto.correo }}{{ personaProyecto.telefono }} + +
+ + +{% endblock %} diff --git a/app/Resources/views/personaproyecto/new.html.twig b/app/Resources/views/personaproyecto/new.html.twig new file mode 100644 index 0000000..0f01d47 --- /dev/null +++ b/app/Resources/views/personaproyecto/new.html.twig @@ -0,0 +1,16 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Personaproyecto creation

+ + {{ form_start(form) }} + {{ form_widget(form) }} + + {{ form_end(form) }} + + +{% endblock %} diff --git a/app/Resources/views/personaproyecto/show.html.twig b/app/Resources/views/personaproyecto/show.html.twig new file mode 100644 index 0000000..3ccc3bc --- /dev/null +++ b/app/Resources/views/personaproyecto/show.html.twig @@ -0,0 +1,48 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Personaproyecto

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Id{{ personaProyecto.id }}
Identificacion{{ personaProyecto.identificacion }}
Nombre{{ personaProyecto.nombre }}
Apellido{{ personaProyecto.apellido }}
Correo{{ personaProyecto.correo }}
Telefono{{ personaProyecto.telefono }}
+ +
    +
  • + Back to the list +
  • +
  • + Edit +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/programatipo/edit.html.twig b/app/Resources/views/programatipo/edit.html.twig new file mode 100644 index 0000000..cb39a63 --- /dev/null +++ b/app/Resources/views/programatipo/edit.html.twig @@ -0,0 +1,21 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Programatipo edit

+ + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + +
    +
  • + Back to the list +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/programatipo/index.html.twig b/app/Resources/views/programatipo/index.html.twig new file mode 100644 index 0000000..3e0547b --- /dev/null +++ b/app/Resources/views/programatipo/index.html.twig @@ -0,0 +1,41 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Programatipos list

+ + + + + + + + + + + + {% for programaTipo in programaTipos %} + + + + + + + {% endfor %} + +
IdDescripcionCodigoActions
{{ programaTipo.id }}{{ programaTipo.descripcion }}{{ programaTipo.codigo }} + +
+ + +{% endblock %} diff --git a/app/Resources/views/programatipo/new.html.twig b/app/Resources/views/programatipo/new.html.twig new file mode 100644 index 0000000..10e2429 --- /dev/null +++ b/app/Resources/views/programatipo/new.html.twig @@ -0,0 +1,16 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Programatipo creation

+ + {{ form_start(form) }} + {{ form_widget(form) }} + + {{ form_end(form) }} + + +{% endblock %} diff --git a/app/Resources/views/programatipo/show.html.twig b/app/Resources/views/programatipo/show.html.twig new file mode 100644 index 0000000..9607a1e --- /dev/null +++ b/app/Resources/views/programatipo/show.html.twig @@ -0,0 +1,36 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Programatipo

+ + + + + + + + + + + + + + + + +
Id{{ programaTipo.id }}
Descripcion{{ programaTipo.descripcion }}
Codigo{{ programaTipo.codigo }}
+ +
    +
  • + Back to the list +
  • +
  • + Edit +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/proyecto/edit.html.twig b/app/Resources/views/proyecto/edit.html.twig new file mode 100644 index 0000000..fbc15fc --- /dev/null +++ b/app/Resources/views/proyecto/edit.html.twig @@ -0,0 +1,30 @@ +{% extends "UBVPrincipalBundle::inicio.html.twig" %} + +{% block contenido %} +

Edicion de Proyectos

+ + + +
+
+
+
+
Edicion de Proyectos de Estudios Avanzados
+
+ + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + +
    +
  • + + + {{ form_end(edit_form) }} + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/proyecto/index.html.twig b/app/Resources/views/proyecto/index.html.twig new file mode 100644 index 0000000..796129e --- /dev/null +++ b/app/Resources/views/proyecto/index.html.twig @@ -0,0 +1,101 @@ +{% extends "UBVPrincipalBundle::inicio.html.twig" %} + +{% block contenido %} +

Lista de Proyectos

+ +
+
+
+
+
Listado de Proyectos de Estudios Avanzados
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + {% for proyecto in proyectos %} + + + + + + + + + + + + + + + + + + + + + + {% endfor %} + +
IdTituloObjetivo GeneralDescripcionBeneficiarios DirectosBeneficiarios IndirectosFecha de InicioFecha de FinVinculacion con el Plan de la PatriaProyectos EstrategicosProyectocolDireccionCoordenada LatitudCoordenada LongitudFecha de RegistroResumes RutaAcciones
{{ proyecto.id }}{{ proyecto.titulo }}{{ proyecto.objetivogeneral }}{{ proyecto.descripcion }}{{ proyecto.beneficiariosdirectos }}{{ proyecto.beneficiariosindirectos }}{% if proyecto.fechainicio %}{{ proyecto.fechainicio|date('d-m-Y') }}{% endif %}{% if proyecto.fechafin %}{{ proyecto.fechafin|date('d-m-Y') }}{% endif %}{{ proyecto.vinculacionplanpatria }}{{ proyecto.proyectosestrategicos }}{{ proyecto.proyectocol }}{{ proyecto.direccion }}{{ proyecto.coordenadalatitud }}{{ proyecto.coordenadalongitud }}{% if proyecto.fecharegistro %}{{ proyecto.fecharegistro|date('d-m-Y') }}{% endif %}{{ proyecto.resumesruta }} +
    +
  • +   +
  • +
  • +   +
  • +
  • +   +
  • +
+ +{% endblock %} \ No newline at end of file diff --git a/app/Resources/views/proyecto/new.html.twig b/app/Resources/views/proyecto/new.html.twig new file mode 100644 index 0000000..0236b1c --- /dev/null +++ b/app/Resources/views/proyecto/new.html.twig @@ -0,0 +1,1165 @@ +{% extends 'UBVPrincipalBundle::inicio.html.twig' %} + + + +{% block contenido %} +
+
+
+
+
Registro de Proyecto de Estudios Avanzados
+
+
+ + + + +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+ {{ form_label(form.titulo) }} + * + {{ form_widget(form.titulo) }} + {% if form.titulo.vars.errors[0].message is defined %} + + {{ form.titulo.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.descripcion) }} + * + {{ form_widget(form.descripcion) }} + {% if form.descripcion.vars.errors[0].message is defined %} + + {{ form.descripcion.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+ + +
+
+
+
+
+ {{ form_label(form.beneficiarios_directos) }} + * + {{ form_widget(form.beneficiarios_directos) }} + {% if form.beneficiarios_directos.vars.errors[0].message is defined %} + + {{ form.beneficiarios_directos.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.beneficiarios_indirectos) }} + * + {{ form_widget(form.beneficiarios_indirectos) }} + {% if form.beneficiarios_indirectos.vars.errors[0].message is defined %} + + {{ form.beneficiarios_indirectos.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+ +
+
+
+
+
+ {{ form_label(form.lineaInvestigacion) }} + * + {{ form_widget(form.lineaInvestigacion) }} + {% if form.lineaInvestigacion.vars.errors[0].message is defined %} + + {{ form.lineaInvestigacion.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.programaTipo.descripcion) }} + * + {{ form_widget(form.programaTipo.descripcion) }} + {% if form.programaTipo.vars.errors[0].message is defined %} + + {{ form.programaTipo.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.metodologiaTipo.descripcion) }} + * + {{ form_widget(form.metodologiaTipo.descripcion) }} + {% if form.metodologiaTipo.vars.errors[0].message is defined %} + + {{ form.metodologiaTipo.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.metodologia) }} + * + {{ form_widget(form.metodologia) }} + {% if form.metodologia.vars.errors[0].message is defined %} + + {{ form.metodologia.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+ +
+
+
+
+
+ {{ form_label(form.objetivo_general) }} + * + {{ form_widget(form.objetivo_general) }} + {% if form.objetivo_general.vars.errors[0].message is defined %} + + {{ form.objetivo_general.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.objetivoEspecifico) }} + * + {{ form_widget(form.objetivoEspecifico) }} + {% if form.objetivoEspecifico.vars.errors[0].message is defined %} + + {{ form.objetivoEspecifico.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+
+ + +
+
+

Cronograma del Proyecto

+
+
+
+
+
+ {{ form_label(form.fecha_inicio) }} + * + {{ form_widget(form.fecha_inicio) }} + {% if form.fecha_inicio.vars.errors[0].message is defined %} + + {{ form.fecha_inicio.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.fecha_fin) }} + * + {{ form_widget(form.fecha_fin) }} + {% if form.fecha_fin.vars.errors[0].message is defined %} + + {{ form.fecha_fin.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.proyectoEstatus) }} + * + {{ form_widget(form.proyectoEstatus) }} + {% if form.proyectoEstatus.vars.errors[0].message is defined %} + + {{ form.proyectoEstatus.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+ +

Etapa del Proyecto

+
+
+
+
+
+ {{ form_label(form.proyectoEtapas.descripcion) }} + * + {{ form_widget(form.proyectoEtapas.descripcion) }} + {% if form.proyectoEtapas.vars.errors[0].message is defined %} + + {{ form.proyectoEtapas.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+ + +

Actividades del Proyecto

+
+
+
+
+
+ {{ form_label(form.actividadEtapa.proyectoEtapa) }} + * + {{ form_widget(form.actividadEtapa.proyectoEtapa) }} + {% if form.actividadEtapa.vars.errors[0].message is defined %} + + {{ form.actividadEtapa.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.actividadEtapa.descripcion) }} + * + {{ form_widget(form.actividadEtapa.descripcion) }} + {% if form.actividadEtapa.vars.errors[0].message is defined %} + + {{ form.actividadEtapa.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.actividadEtapa.tiempo_ejecucion) }} + * + {{ form_widget(form.actividadEtapa.tiempo_ejecucion) }} + {% if form.actividadEtapa.vars.errors[0].message is defined %} + + {{ form.actividadEtapa.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.actividadEstatus.descripcion) }} + * + {{ form_widget(form.actividadEstatus.descripcion) }} + {% if form.actividadEstatus.vars.errors[0].message is defined %} + + {{ form.actividadEstatus.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+
+ +
+
+

Datos de la Comunidad

+
+
+
+
+
+ {{ form_label(form.comunidadTipo) }} + * + {{ form_widget(form.comunidadTipo) }} + {% if form.comunidadTipo.vars.errors[0].message is defined %} + + {{ form.comunidadTipo.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_row(form.comunidad.descripcion) }} + + + {% if form.comunidad.vars.errors[0].message is defined %} + + {{ form.comunidad.vars.errors[0].message }} + + {% endif %} + +
+
+
+
+
+

Voceros o Enlace

+
+
+
+
+
+ {{ form_label(form.personaProyecto.identificacion) }} + * + {{ form_widget(form.personaProyecto.identificacion) }} + {% if form.personaProyecto.vars.errors[0].message is defined %} + + {{ form.personaProyecto.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.personaProyecto.nombre) }} + * + {{ form_widget(form.personaProyecto.nombre) }} + {% if form.personaProyecto.vars.errors[0].message is defined %} + + {{ form.personaProyecto.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.personaProyecto.apellido) }} + * + {{ form_widget(form.personaProyecto.apellido) }} + {% if form.personaProyecto.vars.errors[0].message is defined %} + + {{ form.personaProyecto.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+ + +
+
+
+
+
+ {{ form_label(form.personaProyecto.correo) }} + * + {{ form_widget(form.personaProyecto.correo) }} + {% if form.personaProyecto.vars.errors[0].message is defined %} + + {{ form.personaProyecto.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.personaProyecto.telefonoCodigoArea) }} + * + {{ form_widget(form.personaProyecto.telefonoCodigoArea) }} + {% if form.personaProyecto.vars.errors[0].message is defined %} + + {{ form.personaProyecto.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.personaProyecto.telefono) }} + * + {{ form_widget(form.personaProyecto.telefono) }} + {% if form.personaProyecto.vars.errors[0].message is defined %} + + {{ form.personaProyecto.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+ + + + + + + + +
+
+ +
+
+

Vinculación con el Plan de la patria

+
+
+
+
+
+ {{ form_label(form.objetivoPlanPatrias.objetivoNivel) }} + * + {{ form_widget(form.objetivoPlanPatrias.objetivoNivel) }} + {% if form.objetivoPlanPatrias.vars.errors[0].message is defined %} + + {{ form.objetivoPlanPatrias.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.objetivoPlanPatrias.objetivoPlanPatria) }} + * + {{ form_widget(form.objetivoPlanPatrias.objetivoPlanPatria) }} + {% if form.objetivoPlanPatrias.vars.errors[0].message is defined %} + + {{ form.objetivoPlanPatrias.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+ + + + +
+
+ +
+
+

Institucion que Financia el Proyecto

+
+
+
+
+
+ {{ form_label(form.institucionTipo) }} + * + {{ form_widget(form.institucionTipo) }} + {% if form.institucionTipo.vars.errors[0].message is defined %} + + {{ form.institucionTipo.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.institucion.descripcion) }} + * + {{ form_widget(form.institucion.descripcion) }} + {% if form.institucion.vars.errors[0].message is defined %} + + {{ form.institucion.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+ +

Aporte de la Institucion

+
+
+
+
+
+ {{ form_label(form.aporteTipo.descripcion) }} + * + {{ form_widget(form.aporteTipo.descripcion) }} + {% if form.aporteTipo.vars.errors[0].message is defined %} + + {{ form.aporteTipo.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.aporteInstitucions.cantidad) }} + * + {{ form_widget(form.aporteInstitucions.cantidad) }} + {% if form.aporteInstitucions.vars.errors[0].message is defined %} + + {{ form.aporteInstitucions.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.aporteInstitucions.fecha_recepcion) }} + * + {{ form_widget(form.aporteInstitucions.fecha_recepcion) }} + {% if form.aporteInstitucions.vars.errors[0].message is defined %} + + {{ form.aporteInstitucions.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+
+
+
+
+ {{ form_label(form.aporteInstitucions.descripcion) }} + * + {{ form_widget(form.aporteInstitucions.descripcion) }} + {% if form.aporteInstitucions.vars.errors[0].message is defined %} + + {{ form.aporteInstitucions.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.aporteInstitucions.concepto) }} + * + {{ form_widget(form.aporteInstitucions.concepto) }} + {% if form.aporteInstitucions.vars.errors[0].message is defined %} + + {{ form.aporteInstitucions.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+
+ + +
+
+

Datos Geograficos

+
+
+
+
+
+ {{ form_label(form.ambito) }} + * + {{ form_widget(form.ambito) }} + {% if form.ambito.vars.errors[0].message is defined %} + + {{ form.ambito.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.pais) }} + * + {{ form_widget(form.pais) }} + {% if form.pais.vars.errors[0].message is defined %} + + {{ form.pais.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.estado) }} + * + {{ form_widget(form.estado) }} + {% if form.estado.vars.errors[0].message is defined %} + + {{ form.estado.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+ +
+
+
+
+
+ {{ form_label(form.municipio) }} + * + {{ form_widget(form.municipio) }} + {% if form.municipio.vars.errors[0].message is defined %} + + {{ form.municipio.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.parroquia) }} + * + {{ form_widget(form.parroquia) }} + {% if form.parroquia.vars.errors[0].message is defined %} + + {{ form.parroquia.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.direccion) }} + * + {{ form_widget(form.direccion) }} + {% if form.direccion.vars.errors[0].message is defined %} + + {{ form.direccion.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+ +
+
+
+
+
+ {{ form_label(form.coordenada_latitud) }} + * + {{ form_widget(form.coordenada_latitud) }} + {% if form.coordenada_latitud.vars.errors[0].message is defined %} + + {{ form.coordenada_latitud.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.coordenada_longitud) }} + * + {{ form_widget(form.coordenada_longitud) }} + {% if form.coordenada_longitud.vars.errors[0].message is defined %} + + {{ form.coordenada_longitud.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+
+ + +
+
+

Docente

+ + + + + +
+
+ + +
+
+

Resultados Esperados de Difusión y Divulgación de Saberes

+
+
+
+
+
+ {{ form_label(form.saberTipo) }} + * + {{ form_widget(form.saberTipo) }} + {% if form.saberTipo.vars.errors[0].message is defined %} + + {{ form.saberTipo.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.sabers.cantidad) }} + * + {{ form_widget(form.sabers.cantidad) }} + {% if form.sabers.vars.errors[0].message is defined %} + + {{ form.sabers.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+
+ +
+
+

Resumen del Proyecto

+ +
+
+ +
+
+

Datos Personales del Tutor Institucional

+
+
+
+
+
+ {{ form_label(form.tutorInstitucionals.personaProyecto.identificacion) }} + * + {{ form_widget(form.tutorInstitucionals.personaProyecto.identificacion) }} + {% if form.tutorInstitucionals.vars.errors[0].message is defined %} + + {{ form.tutorInstitucionals.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+
+
+
+
+ {{ form_label(form.tutorInstitucionals.personaProyecto.nombre) }} + * + {{ form_widget(form.tutorInstitucionals.personaProyecto.nombre) }} + {% if form.tutorInstitucionals.vars.errors[0].message is defined %} + + {{ form.tutorInstitucionals.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.tutorInstitucionals.personaProyecto.apellido) }} + * + {{ form_widget(form.tutorInstitucionals.personaProyecto.apellido) }} + {% if form.tutorInstitucionals.vars.errors[0].message is defined %} + + {{ form.tutorInstitucionals.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+ +
+
+
+
+
+ {{ form_label(form.tutorInstitucionals.personaProyecto.correo) }} + * + {{ form_widget(form.tutorInstitucionals.personaProyecto.correo) }} + {% if form.tutorInstitucionals.vars.errors[0].message is defined %} + + {{ form.tutorInstitucionals.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.tutorInstitucionals.personaProyecto.telefonoCodigoArea) }} + * + {{ form_widget(form.tutorInstitucionals.personaProyecto.telefonoCodigoArea) }} + {% if form.tutorInstitucionals.vars.errors[0].message is defined %} + + {{ form.tutorInstitucionals.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.tutorInstitucionals.personaProyecto.telefono) }} + * + {{ form_widget(form.tutorInstitucionals.personaProyecto.telefono) }} + {% if form.tutorInstitucionals.vars.errors[0].message is defined %} + + {{ form.tutorInstitucionals.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+ +

Datos Academicos

+
+
+
+
+
+ {{ form_label(form.institucionEducativa.institucionTipo) }} + * + {{ form_widget(form.institucionEducativa.institucionTipo) }} + {% if form.institucionEducativa.vars.errors[0].message is defined %} + + {{ form.institucionEducativa.vars.errors[0].message }} + + {% endif %} +
+
+
+
+
+
+ {{ form_label(form.institucionEducativa.descripcion) }} + * + {{ form_widget(form.institucionEducativa.descripcion) }} + {% if form.institucionEducativa.vars.errors[0].message is defined %} + + {{ form.institucionEducativa.vars.errors[0].message }} + + {% endif %} + + {{form_widget(form._token)}} +
  
+ + +
+
+
+
+
+ + + + + +
+
+ + + + + +{{ form_stylesheet(form) }} +{{ form_javascript(form) }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+
+ +
+
+ + + + + {% endblock %} + + + +{% block javascripts %} + {{ parent() }} + +{% endblock %} + + + + diff --git a/app/Resources/views/proyecto/show.html.twig b/app/Resources/views/proyecto/show.html.twig new file mode 100644 index 0000000..fcc9a00 --- /dev/null +++ b/app/Resources/views/proyecto/show.html.twig @@ -0,0 +1,106 @@ +{% extends "UBVPrincipalBundle::inicio.html.twig" %} + +{% block contenido %} +
+
+
+
+
Confirmacion
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Id{{ proyecto.id }}
Titulo{{ proyecto.titulo }}
Objetivo_general{{ proyecto.objetivogeneral }}
Descripcion{{ proyecto.descripcion }}
Beneficiarios_directos{{ proyecto.beneficiariosdirectos }}
Beneficiarios_indirectos{{ proyecto.beneficiariosindirectos }}
Fecha_inicio{% if proyecto.fechainicio %}{{ proyecto.fechainicio|date('d-m-Y') }}{% endif %}
Fecha_fin{% if proyecto.fechafin %}{{ proyecto.fechafin|date('d-m-Y') }}{% endif %}
Vinculacion_plan_patria{{ proyecto.vinculacionplanpatria }}
Proyectos_estrategicos{{ proyecto.proyectosestrategicos }}
Proyectocol{{ proyecto.proyectocol }}
Direccion{{ proyecto.direccion }}
Coordenada_latitud{{ proyecto.coordenadalatitud }}
Coordenada_longitud{{ proyecto.coordenadalongitud }}
Fecha_registro{% if proyecto.fecharegistro %}{{ proyecto.fecharegistro|date('d-m-Y') }}{% endif %}
Resumes_ruta{{ proyecto.resumesruta }}
+ + + + + + + + + + +{% endblock %} diff --git a/app/Resources/views/proyectocomunidad/edit.html.twig b/app/Resources/views/proyectocomunidad/edit.html.twig new file mode 100644 index 0000000..1483ba2 --- /dev/null +++ b/app/Resources/views/proyectocomunidad/edit.html.twig @@ -0,0 +1,21 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Proyectocomunidad edit

+ + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + +
    +
  • + Back to the list +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/proyectocomunidad/index.html.twig b/app/Resources/views/proyectocomunidad/index.html.twig new file mode 100644 index 0000000..529a227 --- /dev/null +++ b/app/Resources/views/proyectocomunidad/index.html.twig @@ -0,0 +1,37 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Proyectocomunidads list

+ + + + + + + + + + {% for proyectoComunidad in proyectoComunidads %} + + + + + {% endfor %} + +
IdActions
{{ proyectoComunidad.id }} + +
+ + +{% endblock %} diff --git a/app/Resources/views/proyectocomunidad/new.html.twig b/app/Resources/views/proyectocomunidad/new.html.twig new file mode 100644 index 0000000..b0226a5 --- /dev/null +++ b/app/Resources/views/proyectocomunidad/new.html.twig @@ -0,0 +1,16 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Proyectocomunidad creation

+ + {{ form_start(form) }} + {{ form_widget(form) }} + + {{ form_end(form) }} + + +{% endblock %} diff --git a/app/Resources/views/proyectocomunidad/show.html.twig b/app/Resources/views/proyectocomunidad/show.html.twig new file mode 100644 index 0000000..05a19c6 --- /dev/null +++ b/app/Resources/views/proyectocomunidad/show.html.twig @@ -0,0 +1,28 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Proyectocomunidad

+ + + + + + + + +
Id{{ proyectoComunidad.id }}
+ +
    +
  • + Back to the list +
  • +
  • + Edit +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/proyectoetapa/edit.html.twig b/app/Resources/views/proyectoetapa/edit.html.twig new file mode 100644 index 0000000..44bee9d --- /dev/null +++ b/app/Resources/views/proyectoetapa/edit.html.twig @@ -0,0 +1,21 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Proyectoetapa edit

+ + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + +
    +
  • + Back to the list +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/proyectoetapa/index.html.twig b/app/Resources/views/proyectoetapa/index.html.twig new file mode 100644 index 0000000..c51b389 --- /dev/null +++ b/app/Resources/views/proyectoetapa/index.html.twig @@ -0,0 +1,39 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Proyectoetapas list

+ + + + + + + + + + + {% for proyectoEtapa in proyectoEtapas %} + + + + + + {% endfor %} + +
IdDescripcionActions
{{ proyectoEtapa.id }}{{ proyectoEtapa.descripcion }} + +
+ + +{% endblock %} diff --git a/app/Resources/views/proyectoetapa/new.html.twig b/app/Resources/views/proyectoetapa/new.html.twig new file mode 100644 index 0000000..8e8e6b9 --- /dev/null +++ b/app/Resources/views/proyectoetapa/new.html.twig @@ -0,0 +1,16 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Proyectoetapa creation

+ + {{ form_start(form) }} + {{ form_widget(form) }} + + {{ form_end(form) }} + + +{% endblock %} diff --git a/app/Resources/views/proyectoetapa/show.html.twig b/app/Resources/views/proyectoetapa/show.html.twig new file mode 100644 index 0000000..8c210fd --- /dev/null +++ b/app/Resources/views/proyectoetapa/show.html.twig @@ -0,0 +1,32 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Proyectoetapa

+ + + + + + + + + + + + +
Id{{ proyectoEtapa.id }}
Descripcion{{ proyectoEtapa.descripcion }}
+ +
    +
  • + Back to the list +
  • +
  • + Edit +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/proyectoplanpatria/edit.html.twig b/app/Resources/views/proyectoplanpatria/edit.html.twig new file mode 100644 index 0000000..a190351 --- /dev/null +++ b/app/Resources/views/proyectoplanpatria/edit.html.twig @@ -0,0 +1,21 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Proyectoplanpatrium edit

+ + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + +
    +
  • + Back to the list +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/proyectoplanpatria/index.html.twig b/app/Resources/views/proyectoplanpatria/index.html.twig new file mode 100644 index 0000000..3056456 --- /dev/null +++ b/app/Resources/views/proyectoplanpatria/index.html.twig @@ -0,0 +1,37 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Proyectoplanpatrias list

+ + + + + + + + + + {% for proyectoPlanPatrium in proyectoPlanPatrias %} + + + + + {% endfor %} + +
IdActions
{{ proyectoPlanPatrium.id }} + +
+ + +{% endblock %} diff --git a/app/Resources/views/proyectoplanpatria/new.html.twig b/app/Resources/views/proyectoplanpatria/new.html.twig new file mode 100644 index 0000000..90691ee --- /dev/null +++ b/app/Resources/views/proyectoplanpatria/new.html.twig @@ -0,0 +1,16 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Proyectoplanpatrium creation

+ + {{ form_start(form) }} + {{ form_widget(form) }} + + {{ form_end(form) }} + + +{% endblock %} diff --git a/app/Resources/views/proyectoplanpatria/show.html.twig b/app/Resources/views/proyectoplanpatria/show.html.twig new file mode 100644 index 0000000..e5ee0dc --- /dev/null +++ b/app/Resources/views/proyectoplanpatria/show.html.twig @@ -0,0 +1,28 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Proyectoplanpatrium

+ + + + + + + + +
Id{{ proyectoPlanPatrium.id }}
+ +
    +
  • + Back to the list +
  • +
  • + Edit +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/saber/edit.html.twig b/app/Resources/views/saber/edit.html.twig new file mode 100644 index 0000000..e5830bd --- /dev/null +++ b/app/Resources/views/saber/edit.html.twig @@ -0,0 +1,21 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Saber edit

+ + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + +
    +
  • + Back to the list +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/saber/index.html.twig b/app/Resources/views/saber/index.html.twig new file mode 100644 index 0000000..34b193b --- /dev/null +++ b/app/Resources/views/saber/index.html.twig @@ -0,0 +1,39 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Sabers list

+ + + + + + + + + + + {% for saber in sabers %} + + + + + + {% endfor %} + +
IdCantidadActions
{{ saber.id }}{{ saber.cantidad }} + +
+ + +{% endblock %} diff --git a/app/Resources/views/saber/new.html.twig b/app/Resources/views/saber/new.html.twig new file mode 100644 index 0000000..986a3d5 --- /dev/null +++ b/app/Resources/views/saber/new.html.twig @@ -0,0 +1,24 @@ +{% extends 'UBVPrincipalBundle::inicio.html.twig' %} + +{% block contenido %} +
+
+
+
+
Registro Usuario
+
+
+ +

Saber creation

+ + {{ form_start(form) }} + {{ form_widget(form) }} + + {{ form_end(form) }} + + +{% endblock %} diff --git a/app/Resources/views/saber/show.html.twig b/app/Resources/views/saber/show.html.twig new file mode 100644 index 0000000..92f9307 --- /dev/null +++ b/app/Resources/views/saber/show.html.twig @@ -0,0 +1,32 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Saber

+ + + + + + + + + + + + +
Id{{ saber.id }}
Cantidad{{ saber.cantidad }}
+ +
    +
  • + Back to the list +
  • +
  • + Edit +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/tutorestudios/edit.html.twig b/app/Resources/views/tutorestudios/edit.html.twig new file mode 100644 index 0000000..b89f167 --- /dev/null +++ b/app/Resources/views/tutorestudios/edit.html.twig @@ -0,0 +1,21 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Tutorestudio edit

+ + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + +
    +
  • + Back to the list +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/tutorestudios/index.html.twig b/app/Resources/views/tutorestudios/index.html.twig new file mode 100644 index 0000000..6fc2c4a --- /dev/null +++ b/app/Resources/views/tutorestudios/index.html.twig @@ -0,0 +1,39 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Tutorestudios list

+ + + + + + + + + + + {% for tutorEstudio in tutorEstudios %} + + + + + + {% endfor %} + +
IdAño_gradoActions
{{ tutorEstudio.id }}{{ tutorEstudio.añogrado }} + +
+ + +{% endblock %} diff --git a/app/Resources/views/tutorestudios/new.html.twig b/app/Resources/views/tutorestudios/new.html.twig new file mode 100644 index 0000000..7d1a7dd --- /dev/null +++ b/app/Resources/views/tutorestudios/new.html.twig @@ -0,0 +1,16 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Tutorestudio creation

+ + {{ form_start(form) }} + {{ form_widget(form) }} + + {{ form_end(form) }} + + +{% endblock %} diff --git a/app/Resources/views/tutorestudios/show.html.twig b/app/Resources/views/tutorestudios/show.html.twig new file mode 100644 index 0000000..a0d49af --- /dev/null +++ b/app/Resources/views/tutorestudios/show.html.twig @@ -0,0 +1,32 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Tutorestudio

+ + + + + + + + + + + + +
Id{{ tutorEstudio.id }}
Año_grado{{ tutorEstudio.añogrado }}
+ +
    +
  • + Back to the list +
  • +
  • + Edit +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/tutorinstitucional/edit.html.twig b/app/Resources/views/tutorinstitucional/edit.html.twig new file mode 100644 index 0000000..7392b96 --- /dev/null +++ b/app/Resources/views/tutorinstitucional/edit.html.twig @@ -0,0 +1,21 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Tutorinstitucional edit

+ + {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} + +
    +
  • + Back to the list +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/Resources/views/tutorinstitucional/index.html.twig b/app/Resources/views/tutorinstitucional/index.html.twig new file mode 100644 index 0000000..2309b47 --- /dev/null +++ b/app/Resources/views/tutorinstitucional/index.html.twig @@ -0,0 +1,39 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Tutorinstitucionals list

+ + + + + + + + + + + {% for tutorInstitucional in tutorInstitucionals %} + + + + + + {% endfor %} + +
IdCarta_aceptacion_rutaActions
{{ tutorInstitucional.id }}{{ tutorInstitucional.cartaaceptacionruta }} + +
+ + +{% endblock %} diff --git a/app/Resources/views/tutorinstitucional/new.html.twig b/app/Resources/views/tutorinstitucional/new.html.twig new file mode 100644 index 0000000..85cea89 --- /dev/null +++ b/app/Resources/views/tutorinstitucional/new.html.twig @@ -0,0 +1,16 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Tutorinstitucional creation

+ + {{ form_start(form) }} + {{ form_widget(form) }} + + {{ form_end(form) }} + + +{% endblock %} diff --git a/app/Resources/views/tutorinstitucional/show.html.twig b/app/Resources/views/tutorinstitucional/show.html.twig new file mode 100644 index 0000000..ba163a1 --- /dev/null +++ b/app/Resources/views/tutorinstitucional/show.html.twig @@ -0,0 +1,32 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Tutorinstitucional

+ + + + + + + + + + + + +
Id{{ tutorInstitucional.id }}
Carta_aceptacion_ruta{{ tutorInstitucional.cartaaceptacionruta }}
+ +
    +
  • + Back to the list +
  • +
  • + Edit +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+{% endblock %} diff --git a/app/config/config.yml b/app/config/config.yml index ca50ade..f42f4e5 100644 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -120,3 +120,9 @@ swiftmailer: username: "%mailer_user%" password: "%mailer_password%" spool: { type: memory } + + + + # app/config/config.yml +genemu_form: + autocomplete: ~ \ No newline at end of file diff --git a/app/config/routing.yml b/app/config/routing.yml index 4c4193a..3c3c792 100644 --- a/app/config/routing.yml +++ b/app/config/routing.yml @@ -1,3 +1,172 @@ + +ubv_sur_ubv_comunidad_tipo: + resource: "@UBVSurUbvBundle/Controller/ComunidadTipoController.php" + type: annotation + +ubv_sur_ubv_comunidad: + resource: "@UBVSurUbvBundle/Controller/ComunidadController.php" + type: annotation + +ubv_sur_ubv_tutor_estudios: + resource: "@UBVSurUbvBundle/Controller/TutorEstudiosController.php" + type: annotation + +ubv_sur_ubv_institucion_educativa: + resource: "@UBVSurUbvBundle/Controller/InstitucionEducativaController.php" + type: annotation + +ubv_sur_ubv_tutor_institucional: + resource: "@UBVSurUbvBundle/Controller/TutorInstitucionalController.php" + type: annotation + +ubv_sur_ubv_docente_estatus: + resource: "@UBVSurUbvBundle/Controller/DocenteEstatusController.php" + type: annotation + +ubv_sur_ubv_docente_dedicacion: + resource: "@UBVSurUbvBundle/Controller/DocenteDedicacionController.php" + type: annotation + +ubv_sur_ubv_docente_aldea: + resource: "@UBVSurUbvBundle/Controller/DocenteAldeaController.php" + type: annotation + +ubv_sur_ubv_docente: + resource: "@UBVSurUbvBundle/Controller/DocenteController.php" + type: annotation + +ubv_sur_ubv_docente_proyecto: + resource: "@UBVSurUbvBundle/Controller/DocenteProyectoController.php" + type: annotation + +ubv_sur_ubv_proyecto_plan_patria: + resource: "@UBVSurUbvBundle/Controller/ProyectoPlanPatriaController.php" + type: annotation + +ubv_sur_ubv_aporte_tipo: + resource: "@UBVSurUbvBundle/Controller/AporteTipoController.php" + type: annotation + +ubv_sur_ubv_institucion: + resource: "@UBVSurUbvBundle/Controller/InstitucionController.php" + type: annotation + +ubv_sur_ubv_programa_tipo: + resource: "@UBVSurUbvBundle/Controller/ProgramaTipoController.php" + type: annotation + +ubv_sur_ubv_metodologia: + resource: "@UBVSurUbvBundle/Controller/MetodologiaController.php" + type: annotation + +ubv_sur_ubv_persona_proyecto: + resource: "@UBVSurUbvBundle/Controller/PersonaProyectoController.php" + type: annotation + +ubv_sur_ubv_proyecto_etapa: + resource: "@UBVSurUbvBundle/Controller/ProyectoEtapaController.php" + type: annotation + +ubv_sur_ubv_proyecto_comunidad: + resource: "@UBVSurUbvBundle/Controller/ProyectoComunidadController.php" + type: annotation + +ubv_sur_ubv_centro_estudio: + resource: "@UBVSurUbvBundle/Controller/CentroEstudioController.php" + type: annotation + +ubv_sur_ubv_carga_academica: + resource: "@UBVSurUbvBundle/Controller/CargaAcademicaController.php" + type: annotation + +ubv_sur_ubv_aspirante_tipo: + resource: "@UBVSurUbvBundle/Controller/AspiranteTipoController.php" + type: annotation + +ubv_sur_ubv_aspirante_estatus: + resource: "@UBVSurUbvBundle/Controller/AspiranteEstatusController.php" + type: annotation + +ubv_sur_ubv_area_conocimiento_ubv: + resource: "@UBVSurUbvBundle/Controller/AreaConocimientoUbvController.php" + type: annotation + +ubv_sur_ubv_area_conocimiento_opsu: + resource: "@UBVSurUbvBundle/Controller/AreaConocimientoOpsuController.php" + type: annotation + +ubv_sur_ubv_area_conocimiento: + resource: "@UBVSurUbvBundle/Controller/AreaConocimientoController.php" + type: annotation + +ubv_sur_ubv_arancel: + resource: "@UBVSurUbvBundle/Controller/ArancelController.php" + type: annotation + +ubv_sur_ubv_aporte_tipo: + resource: "@UBVSurUbvBundle/Controller/AporteTipoController.php" + type: annotation + +ubv_sur_ubv_ambito: + resource: "@UBVSurUbvBundle/Controller/AmbitoController.php" + type: annotation + +ubv_sur_ubv_ambiente_espacio: + resource: "@UBVSurUbvBundle/Controller/AmbienteEspacioController.php" + type: annotation + +ubv_sur_ubv_ambiente_detalle: + resource: "@UBVSurUbvBundle/Controller/AmbienteDetalleController.php" + type: annotation + +ubv_sur_ubv_aldea_telefono: + resource: "@UBVSurUbvBundle/Controller/AldeaTelefonoController.php" + type: annotation + +ubv_sur_ubv_aldea_programa: + resource: "@UBVSurUbvBundle/Controller/AldeaProgramaController.php" + type: annotation + +ubv_sur_ubv_aldea_malla_curricula: + resource: "@UBVSurUbvBundle/Controller/AldeaMallaCurriculaController.php" + type: annotation + +ubv_sur_ubv_actividad_etapa: + resource: "@UBVSurUbvBundle/Controller/ActividadEtapaController.php" + type: annotation + +ubv_sur_ubv_actividad_estatus: + resource: "@UBVSurUbvBundle/Controller/ActividadEstatusController.php" + type: annotation + +ubv_sur_ubv_metodologia_tipo: + resource: "@UBVSurUbvBundle/Controller/MetodologiaTipoController.php" + type: annotation + +ubv_sur_ubv_aporte_institucion: + resource: "@UBVSurUbvBundle/Controller/AporteInstitucionController.php" + type: annotation + +ubv_sur_ubv_objetivo_plan_patria: + resource: "@UBVSurUbvBundle/Controller/ObjetivoPlanPatriaController.php" + type: annotation + +ubv_sur_ubv_objetivo_nivel: + resource: "@UBVSurUbvBundle/Controller/ObjetivoNivelController.php" + type: annotation + +ubv_sur_ubv_saber: + resource: "@UBVSurUbvBundle/Controller/SaberController.php" + type: annotation + +ubv_sur_ubv_proyecto: + resource: "@UBVSurUbvBundle/Controller/ProyectoController.php" + type: annotation + +ubv_sur_ubv_candidato: + resource: "@UBVSurUbvBundle/Controller/CandidatoController.php" + type: annotation + ubv_sur_ubv_estado_civil: resource: "@UBVSurUbvBundle/Controller/EstadoCivilController.php" type: annotation diff --git a/app/config/services.yml b/app/config/services.yml index 8e304b9..022006e 100644 --- a/app/config/services.yml +++ b/app/config/services.yml @@ -12,4 +12,5 @@ services: class: UBV\SurUbvBundle\EnviarSms ubv.csv_constructor: - class: UBV\SurUbvBundle\CsvResponse \ No newline at end of file + class: UBV\SurUbvBundle\CsvResponse + diff --git a/composer.json b/composer.json index 5bf3ab3..e428df8 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,8 @@ "sensio/framework-extra-bundle": "^3.0.2", "incenteev/composer-parameter-handler": "~2.0", "friendsofsymfony/user-bundle": "~2.0@dev", - "noiselabs/nusoap-bundle": "^0.2.2" + "noiselabs/nusoap-bundle": "^0.2.2", + "genemu/form-bundle": "^3.0@dev" }, "require-dev": { "sensio/generator-bundle": "~3.0", diff --git a/composer.lock b/composer.lock index e62133c..6cfc545 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "5f208c9ebfdfd714836657bcb69ba921", - "content-hash": "392ab87e1cd06f51bd1292a5a15be742", + "content-hash": "2aabca4b64be18cee26a1d77d7d73abc", "packages": [ { "name": "doctrine/annotations", @@ -73,7 +72,7 @@ "docblock", "parser" ], - "time": "2017-02-24 16:22:25" + "time": "2017-02-24T16:22:25+00:00" }, { "name": "doctrine/cache", @@ -143,7 +142,7 @@ "cache", "caching" ], - "time": "2016-10-29 11:16:17" + "time": "2016-10-29T11:16:17+00:00" }, { "name": "doctrine/collections", @@ -210,7 +209,7 @@ "collections", "iterator" ], - "time": "2017-01-03 10:49:41" + "time": "2017-01-03T10:49:41+00:00" }, { "name": "doctrine/common", @@ -283,7 +282,7 @@ "persistence", "spl" ], - "time": "2017-01-13 14:02:13" + "time": "2017-01-13T14:02:13+00:00" }, { "name": "doctrine/dbal", @@ -354,7 +353,7 @@ "persistence", "queryobject" ], - "time": "2017-02-08 12:53:47" + "time": "2017-02-08T12:53:47+00:00" }, { "name": "doctrine/doctrine-bundle", @@ -435,7 +434,7 @@ "orm", "persistence" ], - "time": "2017-01-16 12:01:26" + "time": "2017-01-16T12:01:26+00:00" }, { "name": "doctrine/doctrine-cache-bundle", @@ -523,7 +522,7 @@ "cache", "caching" ], - "time": "2016-01-26 17:28:51" + "time": "2016-01-26T17:28:51+00:00" }, { "name": "doctrine/inflector", @@ -590,7 +589,7 @@ "singularize", "string" ], - "time": "2015-11-06 14:35:42" + "time": "2015-11-06T14:35:42+00:00" }, { "name": "doctrine/instantiator", @@ -644,7 +643,7 @@ "constructor", "instantiate" ], - "time": "2015-06-14 21:17:01" + "time": "2015-06-14T21:17:01+00:00" }, { "name": "doctrine/lexer", @@ -698,7 +697,7 @@ "lexer", "parser" ], - "time": "2014-09-09 13:34:57" + "time": "2014-09-09T13:34:57+00:00" }, { "name": "doctrine/orm", @@ -774,7 +773,7 @@ "database", "orm" ], - "time": "2016-12-18 15:42:34" + "time": "2016-12-18T15:42:34+00:00" }, { "name": "fergusean/nusoap", @@ -811,7 +810,7 @@ } ], "description": "NuSOAP re-packaged for Packagist/Composer", - "time": "2014-05-19 03:44:33" + "time": "2014-05-19T03:44:33+00:00" }, { "name": "friendsofsymfony/user-bundle", @@ -886,7 +885,70 @@ "keywords": [ "User management" ], - "time": "2016-09-28 09:10:06" + "time": "2016-09-28T09:10:06+00:00" + }, + { + "name": "genemu/form-bundle", + "version": "dev-master", + "target-dir": "Genemu/Bundle/FormBundle", + "source": { + "type": "git", + "url": "https://github.com/genemu/GenemuFormBundle.git", + "reference": "26afe9b06bac280cffc15eb56160a93b11e6a3c9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/genemu/GenemuFormBundle/zipball/26afe9b06bac280cffc15eb56160a93b11e6a3c9", + "reference": "26afe9b06bac280cffc15eb56160a93b11e6a3c9", + "shasum": "" + }, + "require": { + "php": ">=5.3.2", + "symfony/form": "~2.8 || ^3.0", + "symfony/framework-bundle": "~2.8 || ^3.0", + "twig/twig": "~1.14" + }, + "suggest": { + "doctrine/doctrine-bundle": "In order to use some form types with Doctrine", + "doctrine/mongodb-odm-bundle": "For MongoDB integration", + "symfony/finder": "For an image type", + "symfony/twig-bridge": "For integration into Twig templates" + }, + "type": "symfony-bundle", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "psr-0": { + "Genemu\\Bundle\\FormBundle": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Olivier Chauvel", + "email": "olivier@generation-multiple.com" + }, + { + "name": "Community contributions", + "homepage": "https://github.com/genemu/GenemuFormBundle/contributors" + }, + { + "name": "Bilal Amarni", + "email": "bilal.amarni@gmail.com" + } + ], + "description": "Extra form types for your Symfony2 projects", + "keywords": [ + "extra form", + "form" + ], + "time": "2017-06-19T15:54:16+00:00" }, { "name": "incenteev/composer-parameter-handler", @@ -937,7 +999,7 @@ "keywords": [ "parameters management" ], - "time": "2015-11-10 17:04:01" + "time": "2015-11-10T17:04:01+00:00" }, { "name": "ircmaxell/password-compat", @@ -979,7 +1041,7 @@ "hashing", "password" ], - "time": "2014-11-20 16:49:30" + "time": "2014-11-20T16:49:30+00:00" }, { "name": "jdorn/sql-formatter", @@ -1029,7 +1091,7 @@ "highlight", "sql" ], - "time": "2014-01-12 16:20:24" + "time": "2014-01-12T16:20:24+00:00" }, { "name": "monolog/monolog", @@ -1107,7 +1169,7 @@ "logging", "psr-3" ], - "time": "2017-03-13 07:08:03" + "time": "2017-03-13T07:08:03+00:00" }, { "name": "noiselabs/nusoap-bundle", @@ -1155,7 +1217,7 @@ "soap", "symfony" ], - "time": "2016-05-16 10:33:58" + "time": "2016-05-16T10:33:58+00:00" }, { "name": "paragonie/random_compat", @@ -1203,7 +1265,7 @@ "pseudorandom", "random" ], - "time": "2017-03-13 16:27:32" + "time": "2017-03-13T16:27:32+00:00" }, { "name": "psr/log", @@ -1250,7 +1312,7 @@ "psr", "psr-3" ], - "time": "2016-10-10 12:19:37" + "time": "2016-10-10T12:19:37+00:00" }, { "name": "sensio/distribution-bundle", @@ -1302,7 +1364,7 @@ "configuration", "distribution" ], - "time": "2017-01-10 14:58:45" + "time": "2017-01-10T14:58:45+00:00" }, { "name": "sensio/framework-extra-bundle", @@ -1372,7 +1434,7 @@ "annotations", "controllers" ], - "time": "2017-03-21 23:34:44" + "time": "2017-03-21T23:34:44+00:00" }, { "name": "sensiolabs/security-checker", @@ -1416,7 +1478,7 @@ } ], "description": "A security checker for your composer.lock", - "time": "2017-03-29 08:08:00" + "time": "2017-03-29T08:08:00+00:00" }, { "name": "swiftmailer/swiftmailer", @@ -1470,7 +1532,7 @@ "mail", "mailer" ], - "time": "2017-02-13 07:52:53" + "time": "2017-02-13T07:52:53+00:00" }, { "name": "symfony/monolog-bundle", @@ -1530,7 +1592,7 @@ "log", "logging" ], - "time": "2017-01-02 19:04:26" + "time": "2017-01-02T19:04:26+00:00" }, { "name": "symfony/polyfill-apcu", @@ -1583,7 +1645,7 @@ "portable", "shim" ], - "time": "2016-11-14 01:06:16" + "time": "2016-11-14T01:06:16+00:00" }, { "name": "symfony/polyfill-intl-icu", @@ -1641,7 +1703,7 @@ "portable", "shim" ], - "time": "2016-11-14 01:06:16" + "time": "2016-11-14T01:06:16+00:00" }, { "name": "symfony/polyfill-mbstring", @@ -1700,7 +1762,7 @@ "portable", "shim" ], - "time": "2016-11-14 01:06:16" + "time": "2016-11-14T01:06:16+00:00" }, { "name": "symfony/polyfill-php54", @@ -1758,7 +1820,7 @@ "portable", "shim" ], - "time": "2016-11-14 01:06:16" + "time": "2016-11-14T01:06:16+00:00" }, { "name": "symfony/polyfill-php55", @@ -1814,7 +1876,7 @@ "portable", "shim" ], - "time": "2016-11-14 01:06:16" + "time": "2016-11-14T01:06:16+00:00" }, { "name": "symfony/polyfill-php56", @@ -1870,7 +1932,7 @@ "portable", "shim" ], - "time": "2016-11-14 01:06:16" + "time": "2016-11-14T01:06:16+00:00" }, { "name": "symfony/polyfill-php70", @@ -1929,7 +1991,7 @@ "portable", "shim" ], - "time": "2016-11-14 01:06:16" + "time": "2016-11-14T01:06:16+00:00" }, { "name": "symfony/polyfill-util", @@ -1981,7 +2043,7 @@ "polyfill", "shim" ], - "time": "2016-11-14 01:06:16" + "time": "2016-11-14T01:06:16+00:00" }, { "name": "symfony/security-acl", @@ -2042,7 +2104,7 @@ ], "description": "Symfony Security Component - ACL (Access Control List)", "homepage": "https://symfony.com", - "time": "2015-12-28 09:39:46" + "time": "2015-12-28T09:39:46+00:00" }, { "name": "symfony/swiftmailer-bundle", @@ -2101,7 +2163,7 @@ ], "description": "Symfony SwiftmailerBundle", "homepage": "http://symfony.com", - "time": "2017-03-21 21:47:36" + "time": "2017-03-21T21:47:36+00:00" }, { "name": "symfony/symfony", @@ -2238,7 +2300,7 @@ "keywords": [ "framework" ], - "time": "2017-03-06 03:54:50" + "time": "2017-03-06T03:54:50+00:00" }, { "name": "twig/twig", @@ -2300,7 +2362,7 @@ "keywords": [ "templating" ], - "time": "2017-03-22 15:40:09" + "time": "2017-03-22T15:40:09+00:00" } ], "packages-dev": [ @@ -2356,7 +2418,7 @@ } ], "description": "This bundle generates code for you", - "time": "2017-03-15 01:02:10" + "time": "2017-03-15T01:02:10+00:00" }, { "name": "symfony/phpunit-bridge", @@ -2414,13 +2476,14 @@ ], "description": "Symfony PHPUnit Bridge", "homepage": "https://symfony.com", - "time": "2017-03-01 19:11:57" + "time": "2017-03-01T19:11:57+00:00" } ], "aliases": [], "minimum-stability": "stable", "stability-flags": { - "friendsofsymfony/user-bundle": 20 + "friendsofsymfony/user-bundle": 20, + "genemu/form-bundle": 20 }, "prefer-stable": false, "prefer-lowest": false, diff --git a/src/UBV/SurUbvBundle/Controller/ActividadEstatusController.php b/src/UBV/SurUbvBundle/Controller/ActividadEstatusController.php new file mode 100644 index 0000000..35cc156 --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/ActividadEstatusController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $actividadEstatuses = $em->getRepository('UBVSurUbvBundle:ActividadEstatus')->findAll(); + + return $this->render('actividadestatus/index.html.twig', array( + 'actividadEstatuses' => $actividadEstatuses, + )); + } + + /** + * Creates a new actividadEstatus entity. + * + * @Route("/new", name="actividadestatus_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $actividadEstatus = new Actividadestatus(); + $form = $this->createForm('UBV\SurUbvBundle\Form\ActividadEstatusType', $actividadEstatus); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($actividadEstatus); + $em->flush(); + + return $this->redirectToRoute('actividadestatus_show', array('id' => $actividadEstatus->getId())); + } + + return $this->render('actividadestatus/new.html.twig', array( + 'actividadEstatus' => $actividadEstatus, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a actividadEstatus entity. + * + * @Route("/{id}", name="actividadestatus_show") + * @Method("GET") + */ + public function showAction(ActividadEstatus $actividadEstatus) + { + $deleteForm = $this->createDeleteForm($actividadEstatus); + + return $this->render('actividadestatus/show.html.twig', array( + 'actividadEstatus' => $actividadEstatus, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing actividadEstatus entity. + * + * @Route("/{id}/edit", name="actividadestatus_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, ActividadEstatus $actividadEstatus) + { + $deleteForm = $this->createDeleteForm($actividadEstatus); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\ActividadEstatusType', $actividadEstatus); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('actividadestatus_edit', array('id' => $actividadEstatus->getId())); + } + + return $this->render('actividadestatus/edit.html.twig', array( + 'actividadEstatus' => $actividadEstatus, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a actividadEstatus entity. + * + * @Route("/{id}", name="actividadestatus_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, ActividadEstatus $actividadEstatus) + { + $form = $this->createDeleteForm($actividadEstatus); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($actividadEstatus); + $em->flush(); + } + + return $this->redirectToRoute('actividadestatus_index'); + } + + /** + * Creates a form to delete a actividadEstatus entity. + * + * @param ActividadEstatus $actividadEstatus The actividadEstatus entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(ActividadEstatus $actividadEstatus) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('actividadestatus_delete', array('id' => $actividadEstatus->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/ActividadEtapaController.php b/src/UBV/SurUbvBundle/Controller/ActividadEtapaController.php new file mode 100644 index 0000000..f6c4751 --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/ActividadEtapaController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $actividadEtapas = $em->getRepository('UBVSurUbvBundle:ActividadEtapa')->findAll(); + + return $this->render('actividadetapa/index.html.twig', array( + 'actividadEtapas' => $actividadEtapas, + )); + } + + /** + * Creates a new actividadEtapa entity. + * + * @Route("/new", name="actividadetapa_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $actividadEtapa = new Actividadetapa(); + $form = $this->createForm('UBV\SurUbvBundle\Form\ActividadEtapaType', $actividadEtapa); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($actividadEtapa); + $em->flush(); + + return $this->redirectToRoute('actividadetapa_show', array('id' => $actividadEtapa->getId())); + } + + return $this->render('actividadetapa/new.html.twig', array( + 'actividadEtapa' => $actividadEtapa, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a actividadEtapa entity. + * + * @Route("/{id}", name="actividadetapa_show") + * @Method("GET") + */ + public function showAction(ActividadEtapa $actividadEtapa) + { + $deleteForm = $this->createDeleteForm($actividadEtapa); + + return $this->render('actividadetapa/show.html.twig', array( + 'actividadEtapa' => $actividadEtapa, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing actividadEtapa entity. + * + * @Route("/{id}/edit", name="actividadetapa_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, ActividadEtapa $actividadEtapa) + { + $deleteForm = $this->createDeleteForm($actividadEtapa); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\ActividadEtapaType', $actividadEtapa); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('actividadetapa_edit', array('id' => $actividadEtapa->getId())); + } + + return $this->render('actividadetapa/edit.html.twig', array( + 'actividadEtapa' => $actividadEtapa, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a actividadEtapa entity. + * + * @Route("/{id}", name="actividadetapa_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, ActividadEtapa $actividadEtapa) + { + $form = $this->createDeleteForm($actividadEtapa); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($actividadEtapa); + $em->flush(); + } + + return $this->redirectToRoute('actividadetapa_index'); + } + + /** + * Creates a form to delete a actividadEtapa entity. + * + * @param ActividadEtapa $actividadEtapa The actividadEtapa entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(ActividadEtapa $actividadEtapa) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('actividadetapa_delete', array('id' => $actividadEtapa->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/AldeaMallaCurriculaController.php b/src/UBV/SurUbvBundle/Controller/AldeaMallaCurriculaController.php new file mode 100644 index 0000000..7813ec1 --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/AldeaMallaCurriculaController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $aldeaMallaCurriculas = $em->getRepository('UBVSurUbvBundle:AldeaMallaCurricula')->findAll(); + + return $this->render('aldeamallacurricula/index.html.twig', array( + 'aldeaMallaCurriculas' => $aldeaMallaCurriculas, + )); + } + + /** + * Creates a new aldeaMallaCurricula entity. + * + * @Route("/new", name="aldeamallacurricula_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $aldeaMallaCurricula = new Aldeamallacurricula(); + $form = $this->createForm('UBV\SurUbvBundle\Form\AldeaMallaCurriculaType', $aldeaMallaCurricula); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($aldeaMallaCurricula); + $em->flush(); + + return $this->redirectToRoute('aldeamallacurricula_show', array('id' => $aldeaMallaCurricula->getId())); + } + + return $this->render('aldeamallacurricula/new.html.twig', array( + 'aldeaMallaCurricula' => $aldeaMallaCurricula, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a aldeaMallaCurricula entity. + * + * @Route("/{id}", name="aldeamallacurricula_show") + * @Method("GET") + */ + public function showAction(AldeaMallaCurricula $aldeaMallaCurricula) + { + $deleteForm = $this->createDeleteForm($aldeaMallaCurricula); + + return $this->render('aldeamallacurricula/show.html.twig', array( + 'aldeaMallaCurricula' => $aldeaMallaCurricula, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing aldeaMallaCurricula entity. + * + * @Route("/{id}/edit", name="aldeamallacurricula_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, AldeaMallaCurricula $aldeaMallaCurricula) + { + $deleteForm = $this->createDeleteForm($aldeaMallaCurricula); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\AldeaMallaCurriculaType', $aldeaMallaCurricula); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('aldeamallacurricula_edit', array('id' => $aldeaMallaCurricula->getId())); + } + + return $this->render('aldeamallacurricula/edit.html.twig', array( + 'aldeaMallaCurricula' => $aldeaMallaCurricula, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a aldeaMallaCurricula entity. + * + * @Route("/{id}", name="aldeamallacurricula_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, AldeaMallaCurricula $aldeaMallaCurricula) + { + $form = $this->createDeleteForm($aldeaMallaCurricula); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($aldeaMallaCurricula); + $em->flush(); + } + + return $this->redirectToRoute('aldeamallacurricula_index'); + } + + /** + * Creates a form to delete a aldeaMallaCurricula entity. + * + * @param AldeaMallaCurricula $aldeaMallaCurricula The aldeaMallaCurricula entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(AldeaMallaCurricula $aldeaMallaCurricula) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('aldeamallacurricula_delete', array('id' => $aldeaMallaCurricula->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/AldeaProgramaController.php b/src/UBV/SurUbvBundle/Controller/AldeaProgramaController.php new file mode 100644 index 0000000..350d020 --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/AldeaProgramaController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $aldeaProgramas = $em->getRepository('UBVSurUbvBundle:AldeaPrograma')->findAll(); + + return $this->render('aldeaprograma/index.html.twig', array( + 'aldeaProgramas' => $aldeaProgramas, + )); + } + + /** + * Creates a new aldeaPrograma entity. + * + * @Route("/new", name="aldeaprograma_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $aldeaPrograma = new Aldeaprograma(); + $form = $this->createForm('UBV\SurUbvBundle\Form\AldeaProgramaType', $aldeaPrograma); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($aldeaPrograma); + $em->flush(); + + return $this->redirectToRoute('aldeaprograma_show', array('id' => $aldeaPrograma->getId())); + } + + return $this->render('aldeaprograma/new.html.twig', array( + 'aldeaPrograma' => $aldeaPrograma, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a aldeaPrograma entity. + * + * @Route("/{id}", name="aldeaprograma_show") + * @Method("GET") + */ + public function showAction(AldeaPrograma $aldeaPrograma) + { + $deleteForm = $this->createDeleteForm($aldeaPrograma); + + return $this->render('aldeaprograma/show.html.twig', array( + 'aldeaPrograma' => $aldeaPrograma, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing aldeaPrograma entity. + * + * @Route("/{id}/edit", name="aldeaprograma_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, AldeaPrograma $aldeaPrograma) + { + $deleteForm = $this->createDeleteForm($aldeaPrograma); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\AldeaProgramaType', $aldeaPrograma); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('aldeaprograma_edit', array('id' => $aldeaPrograma->getId())); + } + + return $this->render('aldeaprograma/edit.html.twig', array( + 'aldeaPrograma' => $aldeaPrograma, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a aldeaPrograma entity. + * + * @Route("/{id}", name="aldeaprograma_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, AldeaPrograma $aldeaPrograma) + { + $form = $this->createDeleteForm($aldeaPrograma); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($aldeaPrograma); + $em->flush(); + } + + return $this->redirectToRoute('aldeaprograma_index'); + } + + /** + * Creates a form to delete a aldeaPrograma entity. + * + * @param AldeaPrograma $aldeaPrograma The aldeaPrograma entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(AldeaPrograma $aldeaPrograma) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('aldeaprograma_delete', array('id' => $aldeaPrograma->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/AldeaTelefonoController.php b/src/UBV/SurUbvBundle/Controller/AldeaTelefonoController.php new file mode 100644 index 0000000..a371d64 --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/AldeaTelefonoController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $aldeaTelefonos = $em->getRepository('UBVSurUbvBundle:AldeaTelefono')->findAll(); + + return $this->render('aldeatelefono/index.html.twig', array( + 'aldeaTelefonos' => $aldeaTelefonos, + )); + } + + /** + * Creates a new aldeaTelefono entity. + * + * @Route("/new", name="aldeatelefono_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $aldeaTelefono = new Aldeatelefono(); + $form = $this->createForm('UBV\SurUbvBundle\Form\AldeaTelefonoType', $aldeaTelefono); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($aldeaTelefono); + $em->flush(); + + return $this->redirectToRoute('aldeatelefono_show', array('id' => $aldeaTelefono->getId())); + } + + return $this->render('aldeatelefono/new.html.twig', array( + 'aldeaTelefono' => $aldeaTelefono, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a aldeaTelefono entity. + * + * @Route("/{id}", name="aldeatelefono_show") + * @Method("GET") + */ + public function showAction(AldeaTelefono $aldeaTelefono) + { + $deleteForm = $this->createDeleteForm($aldeaTelefono); + + return $this->render('aldeatelefono/show.html.twig', array( + 'aldeaTelefono' => $aldeaTelefono, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing aldeaTelefono entity. + * + * @Route("/{id}/edit", name="aldeatelefono_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, AldeaTelefono $aldeaTelefono) + { + $deleteForm = $this->createDeleteForm($aldeaTelefono); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\AldeaTelefonoType', $aldeaTelefono); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('aldeatelefono_edit', array('id' => $aldeaTelefono->getId())); + } + + return $this->render('aldeatelefono/edit.html.twig', array( + 'aldeaTelefono' => $aldeaTelefono, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a aldeaTelefono entity. + * + * @Route("/{id}", name="aldeatelefono_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, AldeaTelefono $aldeaTelefono) + { + $form = $this->createDeleteForm($aldeaTelefono); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($aldeaTelefono); + $em->flush(); + } + + return $this->redirectToRoute('aldeatelefono_index'); + } + + /** + * Creates a form to delete a aldeaTelefono entity. + * + * @param AldeaTelefono $aldeaTelefono The aldeaTelefono entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(AldeaTelefono $aldeaTelefono) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('aldeatelefono_delete', array('id' => $aldeaTelefono->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/AmbienteDetalleController.php b/src/UBV/SurUbvBundle/Controller/AmbienteDetalleController.php new file mode 100644 index 0000000..467d03c --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/AmbienteDetalleController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $ambienteDetalles = $em->getRepository('UBVSurUbvBundle:AmbienteDetalle')->findAll(); + + return $this->render('ambientedetalle/index.html.twig', array( + 'ambienteDetalles' => $ambienteDetalles, + )); + } + + /** + * Creates a new ambienteDetalle entity. + * + * @Route("/new", name="ambientedetalle_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $ambienteDetalle = new Ambientedetalle(); + $form = $this->createForm('UBV\SurUbvBundle\Form\AmbienteDetalleType', $ambienteDetalle); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($ambienteDetalle); + $em->flush(); + + return $this->redirectToRoute('ambientedetalle_show', array('id' => $ambienteDetalle->getId())); + } + + return $this->render('ambientedetalle/new.html.twig', array( + 'ambienteDetalle' => $ambienteDetalle, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a ambienteDetalle entity. + * + * @Route("/{id}", name="ambientedetalle_show") + * @Method("GET") + */ + public function showAction(AmbienteDetalle $ambienteDetalle) + { + $deleteForm = $this->createDeleteForm($ambienteDetalle); + + return $this->render('ambientedetalle/show.html.twig', array( + 'ambienteDetalle' => $ambienteDetalle, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing ambienteDetalle entity. + * + * @Route("/{id}/edit", name="ambientedetalle_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, AmbienteDetalle $ambienteDetalle) + { + $deleteForm = $this->createDeleteForm($ambienteDetalle); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\AmbienteDetalleType', $ambienteDetalle); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('ambientedetalle_edit', array('id' => $ambienteDetalle->getId())); + } + + return $this->render('ambientedetalle/edit.html.twig', array( + 'ambienteDetalle' => $ambienteDetalle, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a ambienteDetalle entity. + * + * @Route("/{id}", name="ambientedetalle_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, AmbienteDetalle $ambienteDetalle) + { + $form = $this->createDeleteForm($ambienteDetalle); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($ambienteDetalle); + $em->flush(); + } + + return $this->redirectToRoute('ambientedetalle_index'); + } + + /** + * Creates a form to delete a ambienteDetalle entity. + * + * @param AmbienteDetalle $ambienteDetalle The ambienteDetalle entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(AmbienteDetalle $ambienteDetalle) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('ambientedetalle_delete', array('id' => $ambienteDetalle->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/AmbienteEspacioController.php b/src/UBV/SurUbvBundle/Controller/AmbienteEspacioController.php new file mode 100644 index 0000000..05851ca --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/AmbienteEspacioController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $ambienteEspacios = $em->getRepository('UBVSurUbvBundle:AmbienteEspacio')->findAll(); + + return $this->render('ambienteespacio/index.html.twig', array( + 'ambienteEspacios' => $ambienteEspacios, + )); + } + + /** + * Creates a new ambienteEspacio entity. + * + * @Route("/new", name="ambienteespacio_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $ambienteEspacio = new Ambienteespacio(); + $form = $this->createForm('UBV\SurUbvBundle\Form\AmbienteEspacioType', $ambienteEspacio); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($ambienteEspacio); + $em->flush(); + + return $this->redirectToRoute('ambienteespacio_show', array('id' => $ambienteEspacio->getId())); + } + + return $this->render('ambienteespacio/new.html.twig', array( + 'ambienteEspacio' => $ambienteEspacio, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a ambienteEspacio entity. + * + * @Route("/{id}", name="ambienteespacio_show") + * @Method("GET") + */ + public function showAction(AmbienteEspacio $ambienteEspacio) + { + $deleteForm = $this->createDeleteForm($ambienteEspacio); + + return $this->render('ambienteespacio/show.html.twig', array( + 'ambienteEspacio' => $ambienteEspacio, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing ambienteEspacio entity. + * + * @Route("/{id}/edit", name="ambienteespacio_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, AmbienteEspacio $ambienteEspacio) + { + $deleteForm = $this->createDeleteForm($ambienteEspacio); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\AmbienteEspacioType', $ambienteEspacio); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('ambienteespacio_edit', array('id' => $ambienteEspacio->getId())); + } + + return $this->render('ambienteespacio/edit.html.twig', array( + 'ambienteEspacio' => $ambienteEspacio, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a ambienteEspacio entity. + * + * @Route("/{id}", name="ambienteespacio_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, AmbienteEspacio $ambienteEspacio) + { + $form = $this->createDeleteForm($ambienteEspacio); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($ambienteEspacio); + $em->flush(); + } + + return $this->redirectToRoute('ambienteespacio_index'); + } + + /** + * Creates a form to delete a ambienteEspacio entity. + * + * @param AmbienteEspacio $ambienteEspacio The ambienteEspacio entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(AmbienteEspacio $ambienteEspacio) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('ambienteespacio_delete', array('id' => $ambienteEspacio->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/AmbitoController.php b/src/UBV/SurUbvBundle/Controller/AmbitoController.php new file mode 100644 index 0000000..eee2e93 --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/AmbitoController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $ambitos = $em->getRepository('UBVSurUbvBundle:Ambito')->findAll(); + + return $this->render('ambito/index.html.twig', array( + 'ambitos' => $ambitos, + )); + } + + /** + * Creates a new ambito entity. + * + * @Route("/new", name="ambito_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $ambito = new Ambito(); + $form = $this->createForm('UBV\SurUbvBundle\Form\AmbitoType', $ambito); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($ambito); + $em->flush(); + + return $this->redirectToRoute('ambito_show', array('id' => $ambito->getId())); + } + + return $this->render('ambito/new.html.twig', array( + 'ambito' => $ambito, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a ambito entity. + * + * @Route("/{id}", name="ambito_show") + * @Method("GET") + */ + public function showAction(Ambito $ambito) + { + $deleteForm = $this->createDeleteForm($ambito); + + return $this->render('ambito/show.html.twig', array( + 'ambito' => $ambito, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing ambito entity. + * + * @Route("/{id}/edit", name="ambito_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, Ambito $ambito) + { + $deleteForm = $this->createDeleteForm($ambito); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\AmbitoType', $ambito); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('ambito_edit', array('id' => $ambito->getId())); + } + + return $this->render('ambito/edit.html.twig', array( + 'ambito' => $ambito, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a ambito entity. + * + * @Route("/{id}", name="ambito_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, Ambito $ambito) + { + $form = $this->createDeleteForm($ambito); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($ambito); + $em->flush(); + } + + return $this->redirectToRoute('ambito_index'); + } + + /** + * Creates a form to delete a ambito entity. + * + * @param Ambito $ambito The ambito entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(Ambito $ambito) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('ambito_delete', array('id' => $ambito->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/AporteInstitucionController.php b/src/UBV/SurUbvBundle/Controller/AporteInstitucionController.php new file mode 100644 index 0000000..f6b1b87 --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/AporteInstitucionController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $aporteInstitucions = $em->getRepository('UBVSurUbvBundle:AporteInstitucion')->findAll(); + + return $this->render('aporteinstitucion/index.html.twig', array( + 'aporteInstitucions' => $aporteInstitucions, + )); + } + + /** + * Creates a new aporteInstitucion entity. + * + * @Route("/new", name="aporteinstitucion_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $aporteInstitucion = new Aporteinstitucion(); + $form = $this->createForm('UBV\SurUbvBundle\Form\AporteInstitucionType', $aporteInstitucion); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($aporteInstitucion); + $em->flush(); + + return $this->redirectToRoute('aporteinstitucion_show', array('id' => $aporteInstitucion->getId())); + } + + return $this->render('aporteinstitucion/new.html.twig', array( + 'aporteInstitucion' => $aporteInstitucion, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a aporteInstitucion entity. + * + * @Route("/{id}", name="aporteinstitucion_show") + * @Method("GET") + */ + public function showAction(AporteInstitucion $aporteInstitucion) + { + $deleteForm = $this->createDeleteForm($aporteInstitucion); + + return $this->render('aporteinstitucion/show.html.twig', array( + 'aporteInstitucion' => $aporteInstitucion, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing aporteInstitucion entity. + * + * @Route("/{id}/edit", name="aporteinstitucion_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, AporteInstitucion $aporteInstitucion) + { + $deleteForm = $this->createDeleteForm($aporteInstitucion); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\AporteInstitucionType', $aporteInstitucion); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('aporteinstitucion_edit', array('id' => $aporteInstitucion->getId())); + } + + return $this->render('aporteinstitucion/edit.html.twig', array( + 'aporteInstitucion' => $aporteInstitucion, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a aporteInstitucion entity. + * + * @Route("/{id}", name="aporteinstitucion_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, AporteInstitucion $aporteInstitucion) + { + $form = $this->createDeleteForm($aporteInstitucion); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($aporteInstitucion); + $em->flush(); + } + + return $this->redirectToRoute('aporteinstitucion_index'); + } + + /** + * Creates a form to delete a aporteInstitucion entity. + * + * @param AporteInstitucion $aporteInstitucion The aporteInstitucion entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(AporteInstitucion $aporteInstitucion) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('aporteinstitucion_delete', array('id' => $aporteInstitucion->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/AporteTipoController.php b/src/UBV/SurUbvBundle/Controller/AporteTipoController.php new file mode 100644 index 0000000..7f73e97 --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/AporteTipoController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $aporteTipos = $em->getRepository('UBVSurUbvBundle:AporteTipo')->findAll(); + + return $this->render('aportetipo/index.html.twig', array( + 'aporteTipos' => $aporteTipos, + )); + } + + /** + * Creates a new aporteTipo entity. + * + * @Route("/new", name="aportetipo_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $aporteTipo = new Aportetipo(); + $form = $this->createForm('UBV\SurUbvBundle\Form\AporteTipoType', $aporteTipo); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($aporteTipo); + $em->flush(); + + return $this->redirectToRoute('aportetipo_show', array('id' => $aporteTipo->getId())); + } + + return $this->render('aportetipo/new.html.twig', array( + 'aporteTipo' => $aporteTipo, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a aporteTipo entity. + * + * @Route("/{id}", name="aportetipo_show") + * @Method("GET") + */ + public function showAction(AporteTipo $aporteTipo) + { + $deleteForm = $this->createDeleteForm($aporteTipo); + + return $this->render('aportetipo/show.html.twig', array( + 'aporteTipo' => $aporteTipo, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing aporteTipo entity. + * + * @Route("/{id}/edit", name="aportetipo_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, AporteTipo $aporteTipo) + { + $deleteForm = $this->createDeleteForm($aporteTipo); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\AporteTipoType', $aporteTipo); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('aportetipo_edit', array('id' => $aporteTipo->getId())); + } + + return $this->render('aportetipo/edit.html.twig', array( + 'aporteTipo' => $aporteTipo, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a aporteTipo entity. + * + * @Route("/{id}", name="aportetipo_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, AporteTipo $aporteTipo) + { + $form = $this->createDeleteForm($aporteTipo); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($aporteTipo); + $em->flush(); + } + + return $this->redirectToRoute('aportetipo_index'); + } + + /** + * Creates a form to delete a aporteTipo entity. + * + * @param AporteTipo $aporteTipo The aporteTipo entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(AporteTipo $aporteTipo) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('aportetipo_delete', array('id' => $aporteTipo->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/ArancelController.php b/src/UBV/SurUbvBundle/Controller/ArancelController.php new file mode 100644 index 0000000..6332ba9 --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/ArancelController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $arancels = $em->getRepository('UBVSurUbvBundle:Arancel')->findAll(); + + return $this->render('arancel/index.html.twig', array( + 'arancels' => $arancels, + )); + } + + /** + * Creates a new arancel entity. + * + * @Route("/new", name="arancel_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $arancel = new Arancel(); + $form = $this->createForm('UBV\SurUbvBundle\Form\ArancelType', $arancel); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($arancel); + $em->flush(); + + return $this->redirectToRoute('arancel_show', array('id' => $arancel->getId())); + } + + return $this->render('arancel/new.html.twig', array( + 'arancel' => $arancel, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a arancel entity. + * + * @Route("/{id}", name="arancel_show") + * @Method("GET") + */ + public function showAction(Arancel $arancel) + { + $deleteForm = $this->createDeleteForm($arancel); + + return $this->render('arancel/show.html.twig', array( + 'arancel' => $arancel, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing arancel entity. + * + * @Route("/{id}/edit", name="arancel_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, Arancel $arancel) + { + $deleteForm = $this->createDeleteForm($arancel); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\ArancelType', $arancel); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('arancel_edit', array('id' => $arancel->getId())); + } + + return $this->render('arancel/edit.html.twig', array( + 'arancel' => $arancel, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a arancel entity. + * + * @Route("/{id}", name="arancel_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, Arancel $arancel) + { + $form = $this->createDeleteForm($arancel); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($arancel); + $em->flush(); + } + + return $this->redirectToRoute('arancel_index'); + } + + /** + * Creates a form to delete a arancel entity. + * + * @param Arancel $arancel The arancel entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(Arancel $arancel) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('arancel_delete', array('id' => $arancel->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/AreaConocimientoController.php b/src/UBV/SurUbvBundle/Controller/AreaConocimientoController.php new file mode 100644 index 0000000..ee562de --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/AreaConocimientoController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $areaConocimientos = $em->getRepository('UBVSurUbvBundle:AreaConocimiento')->findAll(); + + return $this->render('areaconocimiento/index.html.twig', array( + 'areaConocimientos' => $areaConocimientos, + )); + } + + /** + * Creates a new areaConocimiento entity. + * + * @Route("/new", name="areaconocimiento_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $areaConocimiento = new Areaconocimiento(); + $form = $this->createForm('UBV\SurUbvBundle\Form\AreaConocimientoType', $areaConocimiento); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($areaConocimiento); + $em->flush(); + + return $this->redirectToRoute('areaconocimiento_show', array('id' => $areaConocimiento->getId())); + } + + return $this->render('areaconocimiento/new.html.twig', array( + 'areaConocimiento' => $areaConocimiento, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a areaConocimiento entity. + * + * @Route("/{id}", name="areaconocimiento_show") + * @Method("GET") + */ + public function showAction(AreaConocimiento $areaConocimiento) + { + $deleteForm = $this->createDeleteForm($areaConocimiento); + + return $this->render('areaconocimiento/show.html.twig', array( + 'areaConocimiento' => $areaConocimiento, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing areaConocimiento entity. + * + * @Route("/{id}/edit", name="areaconocimiento_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, AreaConocimiento $areaConocimiento) + { + $deleteForm = $this->createDeleteForm($areaConocimiento); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\AreaConocimientoType', $areaConocimiento); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('areaconocimiento_edit', array('id' => $areaConocimiento->getId())); + } + + return $this->render('areaconocimiento/edit.html.twig', array( + 'areaConocimiento' => $areaConocimiento, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a areaConocimiento entity. + * + * @Route("/{id}", name="areaconocimiento_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, AreaConocimiento $areaConocimiento) + { + $form = $this->createDeleteForm($areaConocimiento); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($areaConocimiento); + $em->flush(); + } + + return $this->redirectToRoute('areaconocimiento_index'); + } + + /** + * Creates a form to delete a areaConocimiento entity. + * + * @param AreaConocimiento $areaConocimiento The areaConocimiento entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(AreaConocimiento $areaConocimiento) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('areaconocimiento_delete', array('id' => $areaConocimiento->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/AreaConocimientoOpsuController.php b/src/UBV/SurUbvBundle/Controller/AreaConocimientoOpsuController.php new file mode 100644 index 0000000..408c5ef --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/AreaConocimientoOpsuController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $areaConocimientoOpsus = $em->getRepository('UBVSurUbvBundle:AreaConocimientoOpsu')->findAll(); + + return $this->render('areaconocimientoopsu/index.html.twig', array( + 'areaConocimientoOpsus' => $areaConocimientoOpsus, + )); + } + + /** + * Creates a new areaConocimientoOpsu entity. + * + * @Route("/new", name="areaconocimientoopsu_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $areaConocimientoOpsu = new Areaconocimientoopsu(); + $form = $this->createForm('UBV\SurUbvBundle\Form\AreaConocimientoOpsuType', $areaConocimientoOpsu); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($areaConocimientoOpsu); + $em->flush(); + + return $this->redirectToRoute('areaconocimientoopsu_show', array('id' => $areaConocimientoOpsu->getId())); + } + + return $this->render('areaconocimientoopsu/new.html.twig', array( + 'areaConocimientoOpsu' => $areaConocimientoOpsu, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a areaConocimientoOpsu entity. + * + * @Route("/{id}", name="areaconocimientoopsu_show") + * @Method("GET") + */ + public function showAction(AreaConocimientoOpsu $areaConocimientoOpsu) + { + $deleteForm = $this->createDeleteForm($areaConocimientoOpsu); + + return $this->render('areaconocimientoopsu/show.html.twig', array( + 'areaConocimientoOpsu' => $areaConocimientoOpsu, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing areaConocimientoOpsu entity. + * + * @Route("/{id}/edit", name="areaconocimientoopsu_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, AreaConocimientoOpsu $areaConocimientoOpsu) + { + $deleteForm = $this->createDeleteForm($areaConocimientoOpsu); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\AreaConocimientoOpsuType', $areaConocimientoOpsu); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('areaconocimientoopsu_edit', array('id' => $areaConocimientoOpsu->getId())); + } + + return $this->render('areaconocimientoopsu/edit.html.twig', array( + 'areaConocimientoOpsu' => $areaConocimientoOpsu, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a areaConocimientoOpsu entity. + * + * @Route("/{id}", name="areaconocimientoopsu_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, AreaConocimientoOpsu $areaConocimientoOpsu) + { + $form = $this->createDeleteForm($areaConocimientoOpsu); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($areaConocimientoOpsu); + $em->flush(); + } + + return $this->redirectToRoute('areaconocimientoopsu_index'); + } + + /** + * Creates a form to delete a areaConocimientoOpsu entity. + * + * @param AreaConocimientoOpsu $areaConocimientoOpsu The areaConocimientoOpsu entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(AreaConocimientoOpsu $areaConocimientoOpsu) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('areaconocimientoopsu_delete', array('id' => $areaConocimientoOpsu->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/AreaConocimientoUbvController.php b/src/UBV/SurUbvBundle/Controller/AreaConocimientoUbvController.php new file mode 100644 index 0000000..5ab09bf --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/AreaConocimientoUbvController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $areaConocimientoUbvs = $em->getRepository('UBVSurUbvBundle:AreaConocimientoUbv')->findAll(); + + return $this->render('areaconocimientoubv/index.html.twig', array( + 'areaConocimientoUbvs' => $areaConocimientoUbvs, + )); + } + + /** + * Creates a new areaConocimientoUbv entity. + * + * @Route("/new", name="areaconocimientoubv_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $areaConocimientoUbv = new Areaconocimientoubv(); + $form = $this->createForm('UBV\SurUbvBundle\Form\AreaConocimientoUbvType', $areaConocimientoUbv); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($areaConocimientoUbv); + $em->flush(); + + return $this->redirectToRoute('areaconocimientoubv_show', array('id' => $areaConocimientoUbv->getId())); + } + + return $this->render('areaconocimientoubv/new.html.twig', array( + 'areaConocimientoUbv' => $areaConocimientoUbv, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a areaConocimientoUbv entity. + * + * @Route("/{id}", name="areaconocimientoubv_show") + * @Method("GET") + */ + public function showAction(AreaConocimientoUbv $areaConocimientoUbv) + { + $deleteForm = $this->createDeleteForm($areaConocimientoUbv); + + return $this->render('areaconocimientoubv/show.html.twig', array( + 'areaConocimientoUbv' => $areaConocimientoUbv, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing areaConocimientoUbv entity. + * + * @Route("/{id}/edit", name="areaconocimientoubv_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, AreaConocimientoUbv $areaConocimientoUbv) + { + $deleteForm = $this->createDeleteForm($areaConocimientoUbv); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\AreaConocimientoUbvType', $areaConocimientoUbv); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('areaconocimientoubv_edit', array('id' => $areaConocimientoUbv->getId())); + } + + return $this->render('areaconocimientoubv/edit.html.twig', array( + 'areaConocimientoUbv' => $areaConocimientoUbv, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a areaConocimientoUbv entity. + * + * @Route("/{id}", name="areaconocimientoubv_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, AreaConocimientoUbv $areaConocimientoUbv) + { + $form = $this->createDeleteForm($areaConocimientoUbv); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($areaConocimientoUbv); + $em->flush(); + } + + return $this->redirectToRoute('areaconocimientoubv_index'); + } + + /** + * Creates a form to delete a areaConocimientoUbv entity. + * + * @param AreaConocimientoUbv $areaConocimientoUbv The areaConocimientoUbv entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(AreaConocimientoUbv $areaConocimientoUbv) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('areaconocimientoubv_delete', array('id' => $areaConocimientoUbv->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/AspiranteEstatusController.php b/src/UBV/SurUbvBundle/Controller/AspiranteEstatusController.php new file mode 100644 index 0000000..f52bcf5 --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/AspiranteEstatusController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $aspiranteEstatuses = $em->getRepository('UBVSurUbvBundle:AspiranteEstatus')->findAll(); + + return $this->render('aspiranteestatus/index.html.twig', array( + 'aspiranteEstatuses' => $aspiranteEstatuses, + )); + } + + /** + * Creates a new aspiranteEstatus entity. + * + * @Route("/new", name="aspiranteestatus_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $aspiranteEstatus = new Aspiranteestatus(); + $form = $this->createForm('UBV\SurUbvBundle\Form\AspiranteEstatusType', $aspiranteEstatus); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($aspiranteEstatus); + $em->flush(); + + return $this->redirectToRoute('aspiranteestatus_show', array('id' => $aspiranteEstatus->getId())); + } + + return $this->render('aspiranteestatus/new.html.twig', array( + 'aspiranteEstatus' => $aspiranteEstatus, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a aspiranteEstatus entity. + * + * @Route("/{id}", name="aspiranteestatus_show") + * @Method("GET") + */ + public function showAction(AspiranteEstatus $aspiranteEstatus) + { + $deleteForm = $this->createDeleteForm($aspiranteEstatus); + + return $this->render('aspiranteestatus/show.html.twig', array( + 'aspiranteEstatus' => $aspiranteEstatus, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing aspiranteEstatus entity. + * + * @Route("/{id}/edit", name="aspiranteestatus_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, AspiranteEstatus $aspiranteEstatus) + { + $deleteForm = $this->createDeleteForm($aspiranteEstatus); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\AspiranteEstatusType', $aspiranteEstatus); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('aspiranteestatus_edit', array('id' => $aspiranteEstatus->getId())); + } + + return $this->render('aspiranteestatus/edit.html.twig', array( + 'aspiranteEstatus' => $aspiranteEstatus, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a aspiranteEstatus entity. + * + * @Route("/{id}", name="aspiranteestatus_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, AspiranteEstatus $aspiranteEstatus) + { + $form = $this->createDeleteForm($aspiranteEstatus); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($aspiranteEstatus); + $em->flush(); + } + + return $this->redirectToRoute('aspiranteestatus_index'); + } + + /** + * Creates a form to delete a aspiranteEstatus entity. + * + * @param AspiranteEstatus $aspiranteEstatus The aspiranteEstatus entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(AspiranteEstatus $aspiranteEstatus) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('aspiranteestatus_delete', array('id' => $aspiranteEstatus->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/AspiranteTipoController.php b/src/UBV/SurUbvBundle/Controller/AspiranteTipoController.php new file mode 100644 index 0000000..054040a --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/AspiranteTipoController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $aspiranteTipos = $em->getRepository('UBVSurUbvBundle:AspiranteTipo')->findAll(); + + return $this->render('aspirantetipo/index.html.twig', array( + 'aspiranteTipos' => $aspiranteTipos, + )); + } + + /** + * Creates a new aspiranteTipo entity. + * + * @Route("/new", name="aspirantetipo_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $aspiranteTipo = new Aspirantetipo(); + $form = $this->createForm('UBV\SurUbvBundle\Form\AspiranteTipoType', $aspiranteTipo); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($aspiranteTipo); + $em->flush(); + + return $this->redirectToRoute('aspirantetipo_show', array('id' => $aspiranteTipo->getId())); + } + + return $this->render('aspirantetipo/new.html.twig', array( + 'aspiranteTipo' => $aspiranteTipo, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a aspiranteTipo entity. + * + * @Route("/{id}", name="aspirantetipo_show") + * @Method("GET") + */ + public function showAction(AspiranteTipo $aspiranteTipo) + { + $deleteForm = $this->createDeleteForm($aspiranteTipo); + + return $this->render('aspirantetipo/show.html.twig', array( + 'aspiranteTipo' => $aspiranteTipo, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing aspiranteTipo entity. + * + * @Route("/{id}/edit", name="aspirantetipo_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, AspiranteTipo $aspiranteTipo) + { + $deleteForm = $this->createDeleteForm($aspiranteTipo); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\AspiranteTipoType', $aspiranteTipo); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('aspirantetipo_edit', array('id' => $aspiranteTipo->getId())); + } + + return $this->render('aspirantetipo/edit.html.twig', array( + 'aspiranteTipo' => $aspiranteTipo, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a aspiranteTipo entity. + * + * @Route("/{id}", name="aspirantetipo_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, AspiranteTipo $aspiranteTipo) + { + $form = $this->createDeleteForm($aspiranteTipo); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($aspiranteTipo); + $em->flush(); + } + + return $this->redirectToRoute('aspirantetipo_index'); + } + + /** + * Creates a form to delete a aspiranteTipo entity. + * + * @param AspiranteTipo $aspiranteTipo The aspiranteTipo entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(AspiranteTipo $aspiranteTipo) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('aspirantetipo_delete', array('id' => $aspiranteTipo->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/CandidatoController.php b/src/UBV/SurUbvBundle/Controller/CandidatoController.php index 7b8bd43..f000f3f 100644 --- a/src/UBV/SurUbvBundle/Controller/CandidatoController.php +++ b/src/UBV/SurUbvBundle/Controller/CandidatoController.php @@ -2,107 +2,20 @@ namespace UBV\SurUbvBundle\Controller; -use Symfony\Component\HttpFoundation\Request; +use UBV\SurUbvBundle\Entity\Candidato; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; -use UBV\SurUbvBundle\Entity\Candidato; -use UBV\SurUbvBundle\Form\CandidatoType; -use UBV\SurUbvBundle\CsvResponse; -use Symfony\Component\HttpFoundation\JsonResponse; -use Symfony\Component\HttpFoundation\Response; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;use Symfony\Component\HttpFoundation\Request; /** * Candidato controller. * - * @Route("/candidato") + * @Route("candidato") */ class CandidatoController extends Controller { /** - * Prueba CSV - * - * @Route("/pruebaCsv", name="candidato_PruebaCsv") - * @Method("GET") - */ - public function pruebaCsvAction() - { - $candidatosNoCargados= '"1167132","17301568","ALcides","SOLANO","ANA","VIRGINIA","V","F","S","2/17/1986","2003","N","Distrito Capital","4142196033","jacinta.mami@hotmail.com","No Posee1","No Poseee","Educación Comercial, Comercio y Servicios Administrativos","13.50000000","Gestión Ambiental","123","Caracas","II-2016"'; - //$candidatosNoCargados[1]= array("1167132","17301568","ALcides","SOLANO","ANA","VIRGINIA","V","F","S","2/17/1986","2003","N","Distrito Capital","4142196033","jacinta.mami@hotmail.com","No Posee1","No Poseee","Educación Comercial, Comercio y Servicios Administrativos","13.50000000","Gestión Ambiental","123","Caracas","II-2016"); - $data = $candidatosNoCargados; - $response = new Response($data); - $response->headers->set('Content-Type', 'text/csv'); - return $response; - } - - - /** - * generar Csv. - * - * @Route("/generarCsv", name="ajax_generarCsv") - * @Method("POST") - */ - public function ajaxGenerarCsvAction(Request $request) - { - $nombres_campos = array("idOpsu","identificacion","primerApellido","segundoApellido","primerNombre","segundoNombre","nacionalidad", - "genero","estadoCivil","fechaNac","anoGrado","trabaja","estadoRes","telefono","correoElectronico","discapacidad","etnia", - "ramaEduc","promNotas","programaAsig","codPrograma","aldeaAsig","periodoAsig","Errores" - ); - - $candidatosNoCargados =json_decode($request->get('candidatosNoCargados'),true); - - //die(dump($candidatosNoCargados)); - -// foreach ($candidatosNoCargados as $arregloCandidato ){ -// foreach ($arregloCandidato as $clave => $valor ){ -// //unset($valor[23]); -// if(is_object($valor)){ -// $cand[]= $clave; -// }else{ -// $cand[]=$valor; -// } -// -//// die(dump($cand)); -// } -// } - //die(dump($cand)); - - foreach ($candidatosNoCargados as $clave => $valor ){ - unset($valor[23]); - $cand[$clave]=$valor; - //die(dump($cand)); - //break; - } - //die(dump($cand)); - - //die(dump(json_decode($request->get('candidatosNoCargados'),true))); - - //die(dump($request->get('candidatosNoCargados'))); - //$candidatosNoCargados =array(json_decode($request->get('candidatosNoCargados'),true)); - //$data[0]= array("1167132","17301568","ALcides","SOLANO","ANA","VIRGINIA","V","F","S","2/17/1986","2003","N","Distrito Capital","4142196033","jacinta.mami@hotmail.com","No Posee1","No Poseee","Educación Comercial, Comercio y Servicios Administrativos","13.50000000","Gestión Ambiental","123","Caracas","II-2016"); - //$candidatosNoCargados[1]= array("1167132","17301568","ALcides","SOLANO","ANA","VIRGINIA","V","F","S","2/17/1986","2003","N","Distrito Capital","4142196033","jacinta.mami@hotmail.com","No Posee1","No Poseee","Educación Comercial, Comercio y Servicios Administrativos","13.50000000","Gestión Ambiental","123","Caracas","II-2016"); - //die(dump($candidatosNoCargados)); - //$candidatosNoCargados[]= array("1167132","17301568","ALcides","SOLANO","ANA","VIRGINIA","V","F","S","2/17/1986","2003","N","Distrito Capital","4142196033","jacinta.mami@hotmail.com","No Posee1","No Poseee","Educación Comercial, Comercio y Servicios Administrativos","13.50000000","Gestión Ambiental","123","Caracas","II-2016"); - //$candidatosNoCargados[]= array($cand); - //die(dump($candidatosNoCargados)); - //die(dump(array("arregloJson"=>$cand,"arregloText"=>$candidatosNoCargados))); - - - - $response = $this->get('ubv.csv_constructor'); - $response = new CsvResponse($cand,200, $nombres_campos); - $response->setFilename("data.csv"); - //die(dump($response->getFilename())); - //$archivo = $path=$this->get('kernel')->getRootDir() . '/../web'; - //die(dump($response->getContent())); - return $response; - } - - - - - /** - * Lists all Candidato entities. + * Lists all candidato entities. * * @Route("/", name="candidato_index") * @Method("GET") @@ -117,242 +30,9 @@ class CandidatoController extends Controller 'candidatos' => $candidatos, )); } - - /** - * Lists all Candidato a Cargar. - * - * @Route("/cargar_candidatos", name="candidato_resumen") - * @Method("POST") - */ - public function resumenCargaMasivaAction(Request $request) - { - //die(dump($request)); - // $aspiranteTipo = $request->request->get('candidato_carga_masiva')["aspiranteTipo"]; - $form = $this->createForm('UBV\SurUbvBundle\Form\CandidatoCargaMasivaType'); - $form->handleRequest($request); - - $em = $this->getDoctrine()->getManager(); - //die(dump($form['file']->getData())); - $file=$form['file']->getData(); - $aspiranteTipo = $form['aspiranteTipo']->getData(); - $rutaListaCandidatos = $file->getPathname(); - $candidatosNoCargados = array(); - $candidatosCargados = array(); - $candidatosExistentes = array(); - - if (($archivo = fopen($rutaListaCandidatos, "r")) !== FALSE) { - - $nombres_campos = array("idOpsu","identificacion","primerApellido","segundoApellido","primerNombre","segundoNombre","nacionalidad", - "genero","estadoCivil","fechaNac","anoGrado","trabaja","estadoRes","telefono","correoElectronico","discapacidad","etnia", - "ramaEduc","promNotas","programaAsig","codPrograma","aldeaAsig","periodoAsig","aspiranteTipo"); - $num_campos = count($nombres_campos); - - $indice = 0; - while(($datos = fgetcsv($archivo , 1000 , "," )) !== FALSE) { - array_push($datos, $aspiranteTipo); - - $candidato = $this->arrayCandidatos($nombres_campos, $num_campos, $datos); - - if(in_array(null, $candidato,true) === true){ - $errores = ''; - foreach($candidato as $clave => $valor){ - - if(is_null($valor)){ - $error = $clave; - if(empty($errores)){ - $errores = $error; - }else{ - $errores = $errores .' - '.$error; - } - $candidato["Errores"] = $errores; - } - } - $datos[]= $candidato["Errores"]; - $candidatosNoCargadosCsv[]=$datos; - - $candidatosNoCargadosTwig[]=$candidato; - //die(dump($candidatosNoCargadosTwig)); - }else{ - //die(dump($candidato)); - $estatusProc = $this->GuardarCandidatoAction($candidato); - if($estatusProc === true){ - $candidatosCargados[] = $candidato; - }else{ - $candidatosExistentes[] = $candidato; - } - - } - } - return $this->render('candidato/resultadoCarga.html.twig', array( - 'candidatosCargados' => $candidatosCargados, - 'candidatosNoCargadosTwig' => $candidatosNoCargadosTwig, - 'candidatosNoCargadosCsv' => $candidatosNoCargadosCsv, - 'candidatosExistentes' => $candidatosExistentes, - )); - } - } - - private function GuardarCandidatoAction($candidato){ - $em = $this->getDoctrine()->getManager(); - //die(dump($candidato["periodoAsig"])); - $existe = $em->getRepository('UBVSurUbvBundle:Candidato')->findCandidatoByIdenProg($candidato); - if($existe === false){ - $candidatoNuevo = new Candidato(); - $candidatoNuevo->setIdOpsu($candidato["idOpsu"]); - $candidatoNuevo->setIdentificacion($candidato["identificacion"]); - $candidatoNuevo->setPrimerApellido($candidato["primerApellido"]); - $candidatoNuevo->setSegundoApellido($candidato["segundoApellido"]); - $candidatoNuevo->setPrimerNombre($candidato["primerNombre"]); - $candidatoNuevo->setSegundoNombre($candidato["segundoNombre"]); - $candidatoNuevo->setDocumentoIdentidadTipo($candidato["nacionalidad"]); - $candidatoNuevo->setGenero($candidato["genero"]); - $candidatoNuevo->setEstadoCivil($candidato["estadoCivil"]); - $candidatoNuevo->setAnoGrado(new \DateTime($candidato["anoGrado"]."-01-01")); - $candidatoNuevo->setFechaNacimiento(new \DateTime($candidato["fechaNac"])); - $candidatoNuevo->setTrabaja($candidato["trabaja"]); - $candidatoNuevo->setEstado($candidato["estadoRes"]); - $candidatoNuevo->setTelefono($candidato["telefono"]); - $candidatoNuevo->setCorreo($candidato["correoElectronico"]); - $candidatoNuevo->setDiscapacidad($candidato["discapacidad"]); - $candidatoNuevo->setEtnia($candidato["etnia"]); - $candidatoNuevo->setPromedioNota($candidato["promNotas"]); - $candidatoNuevo->setPrograma($candidato["programaAsig"]); - $candidatoNuevo->setAldea($candidato["aldeaAsig"]); - $candidatoNuevo->setPeriodoAcademico($candidato["periodoAsig"]); - $candidatoNuevo->setAspiranteTipo($candidato["aspiranteTipo"]); - $candidatoNuevo->setCorreoTipo($candidato["correoTipo"]); - $candidatoNuevo->setTelefonoCodigoArea($candidato["telefonoCodigoArea"]); - $candidatoNuevo->setAspiranteEstatus($candidato["aspiranteEstatus"]); - - $em->persist($candidatoNuevo); - $em->flush(); - return true; - }else{ - return false; - } - } - - /** - * cargar Candidatos por lotes. - * - * @Route("/cargaMasiva", name="candidato_carga") - * @Method({"GET", "POST"}) - */ - public function cargaMasivaAction(Request $request) - { - $form = $this->createForm('UBV\SurUbvBundle\Form\CandidatoCargaMasivaType'); - $form->handleRequest($request); - - if ($form->isSubmitted() && $form->isValid()) { - $em = $this->getDoctrine()->getManager(); - die(dump($form['file']->getData())); - $file=$form['file']->getData(); - $aspiranteTipo = $form['aspiranteTipo']->getData(); - $rutaListaCandidatos = $file->getPathname(); - - - if (($archivo = fopen($rutaListaCandidatos, "r")) !== FALSE) { - - $nombres_campos = array("idOpsu","identificacion","primerApellido","segundoApellido","primerNombre","segundoNombre","nacionalidad", - "genero","estadoCivil","fechaNac","anoGrado","trabaja","estadoRes","telefono","correoElectronico","discapacidad","etnia", - "ramaEduc","promNotas","programaAsig","codPrograma","aldeaAsig","periodoAsig","aspiranteTipo"); - $num_campos = count($nombres_campos); - //die(dump($num_campos)); - $indice = 0; - while(($datos = fgetcsv($archivo , 1000 , "," )) !== FALSE) { - array_push($datos, $aspiranteTipo); - //die(dump($datos)); - $candidato = $this->arrayCandidatos($nombres_campos, $num_campos, $datos); - if(isset($candidato)){ - $candidatosCargados[] = $candidato; - }else{ - for ($i = 0; $i < $num_campos; $i++) { - $NoCargado[$nombres_campos[$i]] = $datos[$i]; - $candidatosNoCargados[$indice]=$NoCargado; - }$indice = $indice + 1; - } - } - -// foreach($candidatosCargados as $candidatoCargado){ -// $candidatoNuevo = new Candidato(); -// $candidatoNuevo->setIdOpsu($candidatoCargado["idOpsu"]); -// $candidatoNuevo->setIdentificacion($candidatoCargado["identificacion"]); -// $candidatoNuevo->setPrimerApellido($candidatoCargado["primerApellido"]); -// $candidatoNuevo->setSegundoApellido($candidatoCargado["segundoApellido"]); -// $candidatoNuevo->setPrimerNombre($candidatoCargado["primerNombre"]); -// $candidatoNuevo->setSegundoNombre($candidatoCargado["segundoNombre"]); -// $candidatoNuevo->setDocumentoIdentidadTipo($candidatoCargado["nacionalidad"]); -// $candidatoNuevo->setGenero($candidatoCargado["genero"]); -// $candidatoNuevo->setEstadoCivil($candidatoCargado["estadoCivil"]); -// $candidatoNuevo->setAnoGrado(new \DateTime($candidatoCargado["anoGrado"]."-01-01")); -// $candidatoNuevo->setFechaNacimiento(new \DateTime($candidatoCargado["fechaNac"])); -// $candidatoNuevo->setTrabaja($candidatoCargado["trabaja"]); -// $candidatoNuevo->setEstado($candidatoCargado["estadoRes"]); -// $candidatoNuevo->setTelefono($candidatoCargado["telefono"]); -// $candidatoNuevo->setCorreo($candidatoCargado["correoElectronico"]); -// $candidatoNuevo->setDiscapacidad($candidatoCargado["discapacidad"]); -// $candidatoNuevo->setEtnia($candidatoCargado["etnia"]); -// $candidatoNuevo->setPromedioNota($candidatoCargado["promNotas"]); -// $candidatoNuevo->setPrograma($candidatoCargado["programaAsig"]); -// $candidatoNuevo->setAldea($candidatoCargado["aldeaAsig"]); -// $candidatoNuevo->setPeriodoAsignado($candidatoCargado["periodoAsig"]); -// $candidatoNuevo->setAspiranteTipo($candidatoCargado["aspiranteTipo"]); -// $candidatoNuevo->setCorreoTipo($candidatoCargado["correoTipo"]); -// $candidatoNuevo->setTelefonoCodigoArea($candidatoCargado["telefonoCodigoArea"]); -// $candidatoNuevo->setAspiranteEstatus($candidatoCargado["aspiranteEstatus"]); -// -// $em->persist($candidatoNuevo); -// -// } -// $em->flush(); - } - - //$response = $this->get('ubv.csv_constructor'); - - //response = new CsvResponse($candidatosNoCargados,200, $nombres_campos); - //$response->setFilename("data.csv"); - //$archivo = $path=$this->get('kernel')->getRootDir() . '/../web'; - //die(dump($response->getContent())); - //return $response; - - -// $this->forward('UBVSurUbvBundle:Candidato:resumenCargaMasiva',array( -// 'candidatosCargados'=>$candidatosCargados, -// 'candidatosNoCargados'=>$candidatosNoCargados)); - //return $this->redirectToRoute('candidato_index'); - return $this->redirectToRoute('candidato_resumen',array( - 'candidatosCargados' => $candidatosCargados, - 'candidatosNoCargados' => $candidatosNoCargados,)); -// return $this->render('candidato/resultadoCarga.html.twig', array( -// 'candidatosCargados' => $candidatosCargados, -// 'candidatosNoCargados' => $candidatosNoCargados, -// )); - //return $this->redirectToRoute('candidato_carga_resumen',array($candidatosCargados,$candidatosNoCargados)); - } - - return $this->render('candidato/cargaMasiva.html.twig', array( - //'candidato' => $candidato, - 'form' => $form->createView(), - )); - } - - private function arrayCandidatos($nombres_campos, $num_campos, $datos){ - - for ($i = 0; $i < $num_campos; $i++) { - $candidato[$nombres_campos[$i]] = $datos[$i]; - } - - $em = $this->getDoctrine()->getManager(); - $datosCandidatos = $em->getRepository('UBVSurUbvBundle:Candidato')->findDatosParaCandidatos($candidato); - - //die(dump($datosCandidatos)); - - - return $datosCandidatos; - } /** - * Creates a new Candidato entity. + * Creates a new candidato entity. * * @Route("/new", name="candidato_new") * @Method({"GET", "POST"}) @@ -378,7 +58,7 @@ class CandidatoController extends Controller } /** - * Finds and displays a Candidato entity. + * Finds and displays a candidato entity. * * @Route("/{id}", name="candidato_show") * @Method("GET") @@ -394,7 +74,7 @@ class CandidatoController extends Controller } /** - * Displays a form to edit an existing Candidato entity. + * Displays a form to edit an existing candidato entity. * * @Route("/{id}/edit", name="candidato_edit") * @Method({"GET", "POST"}) @@ -406,9 +86,7 @@ class CandidatoController extends Controller $editForm->handleRequest($request); if ($editForm->isSubmitted() && $editForm->isValid()) { - $em = $this->getDoctrine()->getManager(); - $em->persist($candidato); - $em->flush(); + $this->getDoctrine()->getManager()->flush(); return $this->redirectToRoute('candidato_edit', array('id' => $candidato->getId())); } @@ -421,7 +99,7 @@ class CandidatoController extends Controller } /** - * Deletes a Candidato entity. + * Deletes a candidato entity. * * @Route("/{id}", name="candidato_delete") * @Method("DELETE") @@ -441,9 +119,9 @@ class CandidatoController extends Controller } /** - * Creates a form to delete a Candidato entity. + * Creates a form to delete a candidato entity. * - * @param Candidato $candidato The Candidato entity + * @param Candidato $candidato The candidato entity * * @return \Symfony\Component\Form\Form The form */ diff --git a/src/UBV/SurUbvBundle/Controller/CargaAcademicaController.php b/src/UBV/SurUbvBundle/Controller/CargaAcademicaController.php new file mode 100644 index 0000000..ab722df --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/CargaAcademicaController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $cargaAcademicas = $em->getRepository('UBVSurUbvBundle:CargaAcademica')->findAll(); + + return $this->render('cargaacademica/index.html.twig', array( + 'cargaAcademicas' => $cargaAcademicas, + )); + } + + /** + * Creates a new cargaAcademica entity. + * + * @Route("/new", name="cargaacademica_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $cargaAcademica = new Cargaacademica(); + $form = $this->createForm('UBV\SurUbvBundle\Form\CargaAcademicaType', $cargaAcademica); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($cargaAcademica); + $em->flush(); + + return $this->redirectToRoute('cargaacademica_show', array('id' => $cargaAcademica->getId())); + } + + return $this->render('cargaacademica/new.html.twig', array( + 'cargaAcademica' => $cargaAcademica, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a cargaAcademica entity. + * + * @Route("/{id}", name="cargaacademica_show") + * @Method("GET") + */ + public function showAction(CargaAcademica $cargaAcademica) + { + $deleteForm = $this->createDeleteForm($cargaAcademica); + + return $this->render('cargaacademica/show.html.twig', array( + 'cargaAcademica' => $cargaAcademica, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing cargaAcademica entity. + * + * @Route("/{id}/edit", name="cargaacademica_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, CargaAcademica $cargaAcademica) + { + $deleteForm = $this->createDeleteForm($cargaAcademica); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\CargaAcademicaType', $cargaAcademica); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('cargaacademica_edit', array('id' => $cargaAcademica->getId())); + } + + return $this->render('cargaacademica/edit.html.twig', array( + 'cargaAcademica' => $cargaAcademica, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a cargaAcademica entity. + * + * @Route("/{id}", name="cargaacademica_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, CargaAcademica $cargaAcademica) + { + $form = $this->createDeleteForm($cargaAcademica); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($cargaAcademica); + $em->flush(); + } + + return $this->redirectToRoute('cargaacademica_index'); + } + + /** + * Creates a form to delete a cargaAcademica entity. + * + * @param CargaAcademica $cargaAcademica The cargaAcademica entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(CargaAcademica $cargaAcademica) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('cargaacademica_delete', array('id' => $cargaAcademica->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/CentroEstudioController.php b/src/UBV/SurUbvBundle/Controller/CentroEstudioController.php new file mode 100644 index 0000000..1c31cb9 --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/CentroEstudioController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $centroEstudios = $em->getRepository('UBVSurUbvBundle:CentroEstudio')->findAll(); + + return $this->render('centroestudio/index.html.twig', array( + 'centroEstudios' => $centroEstudios, + )); + } + + /** + * Creates a new centroEstudio entity. + * + * @Route("/new", name="centroestudio_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $centroEstudio = new Centroestudio(); + $form = $this->createForm('UBV\SurUbvBundle\Form\CentroEstudioType', $centroEstudio); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($centroEstudio); + $em->flush(); + + return $this->redirectToRoute('centroestudio_show', array('id' => $centroEstudio->getId())); + } + + return $this->render('centroestudio/new.html.twig', array( + 'centroEstudio' => $centroEstudio, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a centroEstudio entity. + * + * @Route("/{id}", name="centroestudio_show") + * @Method("GET") + */ + public function showAction(CentroEstudio $centroEstudio) + { + $deleteForm = $this->createDeleteForm($centroEstudio); + + return $this->render('centroestudio/show.html.twig', array( + 'centroEstudio' => $centroEstudio, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing centroEstudio entity. + * + * @Route("/{id}/edit", name="centroestudio_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, CentroEstudio $centroEstudio) + { + $deleteForm = $this->createDeleteForm($centroEstudio); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\CentroEstudioType', $centroEstudio); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('centroestudio_edit', array('id' => $centroEstudio->getId())); + } + + return $this->render('centroestudio/edit.html.twig', array( + 'centroEstudio' => $centroEstudio, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a centroEstudio entity. + * + * @Route("/{id}", name="centroestudio_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, CentroEstudio $centroEstudio) + { + $form = $this->createDeleteForm($centroEstudio); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($centroEstudio); + $em->flush(); + } + + return $this->redirectToRoute('centroestudio_index'); + } + + /** + * Creates a form to delete a centroEstudio entity. + * + * @param CentroEstudio $centroEstudio The centroEstudio entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(CentroEstudio $centroEstudio) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('centroestudio_delete', array('id' => $centroEstudio->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/ComunidadController.php b/src/UBV/SurUbvBundle/Controller/ComunidadController.php new file mode 100644 index 0000000..685018f --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/ComunidadController.php @@ -0,0 +1,149 @@ +getDoctrine()->getManager(); + + $comunidads = $em->getRepository('UBVSurUbvBundle:Comunidad')->findAll(); + + return $this->render('comunidad/index.html.twig', array( + 'comunidads' => $comunidads, + )); + } + + /** + * Creates a new comunidad entity. + * + * @Route("/new", name="comunidad_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $comunidad = new Comunidad(); + $form = $this->createForm('UBV\SurUbvBundle\Form\ComunidadType', $comunidad); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($comunidad); + $em->flush(); + + return $this->redirectToRoute('comunidad_show', array('id' => $comunidad->getId())); + } + + return $this->render('comunidad/new.html.twig', array( + 'comunidad' => $comunidad, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a comunidad entity. + * + * @Route("/{id}", name="comunidad_show") + * @Method("GET") + */ + public function showAction(Comunidad $comunidad) + { + $deleteForm = $this->createDeleteForm($comunidad); + + return $this->render('comunidad/show.html.twig', array( + 'comunidad' => $comunidad, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing comunidad entity. + * + * @Route("/{id}/edit", name="comunidad_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, Comunidad $comunidad) + { + $deleteForm = $this->createDeleteForm($comunidad); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\ComunidadType', $comunidad); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('comunidad_edit', array('id' => $comunidad->getId())); + } + + return $this->render('comunidad/edit.html.twig', array( + 'comunidad' => $comunidad, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a comunidad entity. + * + * @Route("/{id}", name="comunidad_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, Comunidad $comunidad) + { + $form = $this->createDeleteForm($comunidad); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($comunidad); + $em->flush(); + } + + return $this->redirectToRoute('comunidad_index'); + } + + /** + * Creates a form to delete a comunidad entity. + * + * @param Comunidad $comunidad The comunidad entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(Comunidad $comunidad) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('comunidad_delete', array('id' => $comunidad->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } + + public function ajaxAction(Request $request) + { + $value = $request->get('term'); + + // .... (Search values) + $search = array('Bar', 'Foo'); + + $response = new Response(); + $response->setContent(json_encode($search)); + + return $response; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/ComunidadTipoController.php b/src/UBV/SurUbvBundle/Controller/ComunidadTipoController.php new file mode 100644 index 0000000..66a3f45 --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/ComunidadTipoController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $comunidadTipos = $em->getRepository('UBVSurUbvBundle:ComunidadTipo')->findAll(); + + return $this->render('comunidadtipo/index.html.twig', array( + 'comunidadTipos' => $comunidadTipos, + )); + } + + /** + * Creates a new comunidadTipo entity. + * + * @Route("/new", name="comunidadtipo_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $comunidadTipo = new Comunidadtipo(); + $form = $this->createForm('UBV\SurUbvBundle\Form\ComunidadTipoType', $comunidadTipo); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($comunidadTipo); + $em->flush(); + + return $this->redirectToRoute('comunidadtipo_show', array('id' => $comunidadTipo->getId())); + } + + return $this->render('comunidadtipo/new.html.twig', array( + 'comunidadTipo' => $comunidadTipo, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a comunidadTipo entity. + * + * @Route("/{id}", name="comunidadtipo_show") + * @Method("GET") + */ + public function showAction(ComunidadTipo $comunidadTipo) + { + $deleteForm = $this->createDeleteForm($comunidadTipo); + + return $this->render('comunidadtipo/show.html.twig', array( + 'comunidadTipo' => $comunidadTipo, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing comunidadTipo entity. + * + * @Route("/{id}/edit", name="comunidadtipo_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, ComunidadTipo $comunidadTipo) + { + $deleteForm = $this->createDeleteForm($comunidadTipo); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\ComunidadTipoType', $comunidadTipo); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('comunidadtipo_edit', array('id' => $comunidadTipo->getId())); + } + + return $this->render('comunidadtipo/edit.html.twig', array( + 'comunidadTipo' => $comunidadTipo, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a comunidadTipo entity. + * + * @Route("/{id}", name="comunidadtipo_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, ComunidadTipo $comunidadTipo) + { + $form = $this->createDeleteForm($comunidadTipo); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($comunidadTipo); + $em->flush(); + } + + return $this->redirectToRoute('comunidadtipo_index'); + } + + /** + * Creates a form to delete a comunidadTipo entity. + * + * @param ComunidadTipo $comunidadTipo The comunidadTipo entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(ComunidadTipo $comunidadTipo) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('comunidadtipo_delete', array('id' => $comunidadTipo->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/DocenteAldeaController.php b/src/UBV/SurUbvBundle/Controller/DocenteAldeaController.php new file mode 100644 index 0000000..0e39188 --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/DocenteAldeaController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $docenteAldeas = $em->getRepository('UBVSurUbvBundle:DocenteAldea')->findAll(); + + return $this->render('docentealdea/index.html.twig', array( + 'docenteAldeas' => $docenteAldeas, + )); + } + + /** + * Creates a new docenteAldea entity. + * + * @Route("/new", name="docentealdea_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $docenteAldea = new Docentealdea(); + $form = $this->createForm('UBV\SurUbvBundle\Form\DocenteAldeaType', $docenteAldea); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($docenteAldea); + $em->flush(); + + return $this->redirectToRoute('docentealdea_show', array('id' => $docenteAldea->getId())); + } + + return $this->render('docentealdea/new.html.twig', array( + 'docenteAldea' => $docenteAldea, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a docenteAldea entity. + * + * @Route("/{id}", name="docentealdea_show") + * @Method("GET") + */ + public function showAction(DocenteAldea $docenteAldea) + { + $deleteForm = $this->createDeleteForm($docenteAldea); + + return $this->render('docentealdea/show.html.twig', array( + 'docenteAldea' => $docenteAldea, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing docenteAldea entity. + * + * @Route("/{id}/edit", name="docentealdea_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, DocenteAldea $docenteAldea) + { + $deleteForm = $this->createDeleteForm($docenteAldea); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\DocenteAldeaType', $docenteAldea); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('docentealdea_edit', array('id' => $docenteAldea->getId())); + } + + return $this->render('docentealdea/edit.html.twig', array( + 'docenteAldea' => $docenteAldea, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a docenteAldea entity. + * + * @Route("/{id}", name="docentealdea_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, DocenteAldea $docenteAldea) + { + $form = $this->createDeleteForm($docenteAldea); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($docenteAldea); + $em->flush(); + } + + return $this->redirectToRoute('docentealdea_index'); + } + + /** + * Creates a form to delete a docenteAldea entity. + * + * @param DocenteAldea $docenteAldea The docenteAldea entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(DocenteAldea $docenteAldea) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('docentealdea_delete', array('id' => $docenteAldea->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/DocenteController.php b/src/UBV/SurUbvBundle/Controller/DocenteController.php new file mode 100644 index 0000000..5683d97 --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/DocenteController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $docentes = $em->getRepository('UBVSurUbvBundle:Docente')->findAll(); + + return $this->render('docente/index.html.twig', array( + 'docentes' => $docentes, + )); + } + + /** + * Creates a new docente entity. + * + * @Route("/new", name="docente_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $docente = new Docente(); + $form = $this->createForm('UBV\SurUbvBundle\Form\DocenteType', $docente); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($docente); + $em->flush(); + + return $this->redirectToRoute('docente_show', array('id' => $docente->getId())); + } + + return $this->render('docente/new.html.twig', array( + 'docente' => $docente, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a docente entity. + * + * @Route("/{id}", name="docente_show") + * @Method("GET") + */ + public function showAction(Docente $docente) + { + $deleteForm = $this->createDeleteForm($docente); + + return $this->render('docente/show.html.twig', array( + 'docente' => $docente, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing docente entity. + * + * @Route("/{id}/edit", name="docente_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, Docente $docente) + { + $deleteForm = $this->createDeleteForm($docente); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\DocenteType', $docente); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('docente_edit', array('id' => $docente->getId())); + } + + return $this->render('docente/edit.html.twig', array( + 'docente' => $docente, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a docente entity. + * + * @Route("/{id}", name="docente_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, Docente $docente) + { + $form = $this->createDeleteForm($docente); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($docente); + $em->flush(); + } + + return $this->redirectToRoute('docente_index'); + } + + /** + * Creates a form to delete a docente entity. + * + * @param Docente $docente The docente entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(Docente $docente) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('docente_delete', array('id' => $docente->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/DocenteDedicacionController.php b/src/UBV/SurUbvBundle/Controller/DocenteDedicacionController.php new file mode 100644 index 0000000..435f2b1 --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/DocenteDedicacionController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $docenteDedicacions = $em->getRepository('UBVSurUbvBundle:DocenteDedicacion')->findAll(); + + return $this->render('docentededicacion/index.html.twig', array( + 'docenteDedicacions' => $docenteDedicacions, + )); + } + + /** + * Creates a new docenteDedicacion entity. + * + * @Route("/new", name="docentededicacion_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $docenteDedicacion = new Docentededicacion(); + $form = $this->createForm('UBV\SurUbvBundle\Form\DocenteDedicacionType', $docenteDedicacion); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($docenteDedicacion); + $em->flush(); + + return $this->redirectToRoute('docentededicacion_show', array('id' => $docenteDedicacion->getId())); + } + + return $this->render('docentededicacion/new.html.twig', array( + 'docenteDedicacion' => $docenteDedicacion, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a docenteDedicacion entity. + * + * @Route("/{id}", name="docentededicacion_show") + * @Method("GET") + */ + public function showAction(DocenteDedicacion $docenteDedicacion) + { + $deleteForm = $this->createDeleteForm($docenteDedicacion); + + return $this->render('docentededicacion/show.html.twig', array( + 'docenteDedicacion' => $docenteDedicacion, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing docenteDedicacion entity. + * + * @Route("/{id}/edit", name="docentededicacion_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, DocenteDedicacion $docenteDedicacion) + { + $deleteForm = $this->createDeleteForm($docenteDedicacion); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\DocenteDedicacionType', $docenteDedicacion); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('docentededicacion_edit', array('id' => $docenteDedicacion->getId())); + } + + return $this->render('docentededicacion/edit.html.twig', array( + 'docenteDedicacion' => $docenteDedicacion, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a docenteDedicacion entity. + * + * @Route("/{id}", name="docentededicacion_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, DocenteDedicacion $docenteDedicacion) + { + $form = $this->createDeleteForm($docenteDedicacion); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($docenteDedicacion); + $em->flush(); + } + + return $this->redirectToRoute('docentededicacion_index'); + } + + /** + * Creates a form to delete a docenteDedicacion entity. + * + * @param DocenteDedicacion $docenteDedicacion The docenteDedicacion entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(DocenteDedicacion $docenteDedicacion) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('docentededicacion_delete', array('id' => $docenteDedicacion->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/DocenteEstatusController.php b/src/UBV/SurUbvBundle/Controller/DocenteEstatusController.php new file mode 100644 index 0000000..d595e84 --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/DocenteEstatusController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $docenteEstatuses = $em->getRepository('UBVSurUbvBundle:DocenteEstatus')->findAll(); + + return $this->render('docenteestatus/index.html.twig', array( + 'docenteEstatuses' => $docenteEstatuses, + )); + } + + /** + * Creates a new docenteEstatus entity. + * + * @Route("/new", name="docenteestatus_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $docenteEstatus = new Docenteestatus(); + $form = $this->createForm('UBV\SurUbvBundle\Form\DocenteEstatusType', $docenteEstatus); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($docenteEstatus); + $em->flush(); + + return $this->redirectToRoute('docenteestatus_show', array('id' => $docenteEstatus->getId())); + } + + return $this->render('docenteestatus/new.html.twig', array( + 'docenteEstatus' => $docenteEstatus, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a docenteEstatus entity. + * + * @Route("/{id}", name="docenteestatus_show") + * @Method("GET") + */ + public function showAction(DocenteEstatus $docenteEstatus) + { + $deleteForm = $this->createDeleteForm($docenteEstatus); + + return $this->render('docenteestatus/show.html.twig', array( + 'docenteEstatus' => $docenteEstatus, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing docenteEstatus entity. + * + * @Route("/{id}/edit", name="docenteestatus_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, DocenteEstatus $docenteEstatus) + { + $deleteForm = $this->createDeleteForm($docenteEstatus); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\DocenteEstatusType', $docenteEstatus); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('docenteestatus_edit', array('id' => $docenteEstatus->getId())); + } + + return $this->render('docenteestatus/edit.html.twig', array( + 'docenteEstatus' => $docenteEstatus, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a docenteEstatus entity. + * + * @Route("/{id}", name="docenteestatus_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, DocenteEstatus $docenteEstatus) + { + $form = $this->createDeleteForm($docenteEstatus); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($docenteEstatus); + $em->flush(); + } + + return $this->redirectToRoute('docenteestatus_index'); + } + + /** + * Creates a form to delete a docenteEstatus entity. + * + * @param DocenteEstatus $docenteEstatus The docenteEstatus entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(DocenteEstatus $docenteEstatus) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('docenteestatus_delete', array('id' => $docenteEstatus->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/DocenteProyectoController.php b/src/UBV/SurUbvBundle/Controller/DocenteProyectoController.php new file mode 100644 index 0000000..072d453 --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/DocenteProyectoController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $docenteProyectos = $em->getRepository('UBVSurUbvBundle:DocenteProyecto')->findAll(); + + return $this->render('docenteproyecto/index.html.twig', array( + 'docenteProyectos' => $docenteProyectos, + )); + } + + /** + * Creates a new docenteProyecto entity. + * + * @Route("/new", name="docenteproyecto_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $docenteProyecto = new Docenteproyecto(); + $form = $this->createForm('UBV\SurUbvBundle\Form\DocenteProyectoType', $docenteProyecto); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($docenteProyecto); + $em->flush(); + + return $this->redirectToRoute('docenteproyecto_show', array('id' => $docenteProyecto->getId())); + } + + return $this->render('docenteproyecto/new.html.twig', array( + 'docenteProyecto' => $docenteProyecto, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a docenteProyecto entity. + * + * @Route("/{id}", name="docenteproyecto_show") + * @Method("GET") + */ + public function showAction(DocenteProyecto $docenteProyecto) + { + $deleteForm = $this->createDeleteForm($docenteProyecto); + + return $this->render('docenteproyecto/show.html.twig', array( + 'docenteProyecto' => $docenteProyecto, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing docenteProyecto entity. + * + * @Route("/{id}/edit", name="docenteproyecto_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, DocenteProyecto $docenteProyecto) + { + $deleteForm = $this->createDeleteForm($docenteProyecto); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\DocenteProyectoType', $docenteProyecto); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('docenteproyecto_edit', array('id' => $docenteProyecto->getId())); + } + + return $this->render('docenteproyecto/edit.html.twig', array( + 'docenteProyecto' => $docenteProyecto, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a docenteProyecto entity. + * + * @Route("/{id}", name="docenteproyecto_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, DocenteProyecto $docenteProyecto) + { + $form = $this->createDeleteForm($docenteProyecto); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($docenteProyecto); + $em->flush(); + } + + return $this->redirectToRoute('docenteproyecto_index'); + } + + /** + * Creates a form to delete a docenteProyecto entity. + * + * @param DocenteProyecto $docenteProyecto The docenteProyecto entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(DocenteProyecto $docenteProyecto) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('docenteproyecto_delete', array('id' => $docenteProyecto->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/InstitucionController.php b/src/UBV/SurUbvBundle/Controller/InstitucionController.php new file mode 100644 index 0000000..a2ca48e --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/InstitucionController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $institucions = $em->getRepository('UBVSurUbvBundle:Institucion')->findAll(); + + return $this->render('institucion/index.html.twig', array( + 'institucions' => $institucions, + )); + } + + /** + * Creates a new institucion entity. + * + * @Route("/new", name="institucion_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $institucion = new Institucion(); + $form = $this->createForm('UBV\SurUbvBundle\Form\InstitucionType', $institucion); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($institucion); + $em->flush(); + + return $this->redirectToRoute('institucion_show', array('id' => $institucion->getId())); + } + + return $this->render('institucion/new.html.twig', array( + 'institucion' => $institucion, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a institucion entity. + * + * @Route("/{id}", name="institucion_show") + * @Method("GET") + */ + public function showAction(Institucion $institucion) + { + $deleteForm = $this->createDeleteForm($institucion); + + return $this->render('institucion/show.html.twig', array( + 'institucion' => $institucion, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing institucion entity. + * + * @Route("/{id}/edit", name="institucion_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, Institucion $institucion) + { + $deleteForm = $this->createDeleteForm($institucion); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\InstitucionType', $institucion); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('institucion_edit', array('id' => $institucion->getId())); + } + + return $this->render('institucion/edit.html.twig', array( + 'institucion' => $institucion, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a institucion entity. + * + * @Route("/{id}", name="institucion_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, Institucion $institucion) + { + $form = $this->createDeleteForm($institucion); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($institucion); + $em->flush(); + } + + return $this->redirectToRoute('institucion_index'); + } + + /** + * Creates a form to delete a institucion entity. + * + * @param Institucion $institucion The institucion entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(Institucion $institucion) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('institucion_delete', array('id' => $institucion->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/InstitucionEducativaController.php b/src/UBV/SurUbvBundle/Controller/InstitucionEducativaController.php new file mode 100644 index 0000000..a3ebb8c --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/InstitucionEducativaController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $institucionEducativas = $em->getRepository('UBVSurUbvBundle:InstitucionEducativa')->findAll(); + + return $this->render('institucioneducativa/index.html.twig', array( + 'institucionEducativas' => $institucionEducativas, + )); + } + + /** + * Creates a new institucionEducativa entity. + * + * @Route("/new", name="institucioneducativa_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $institucionEducativa = new Institucioneducativa(); + $form = $this->createForm('UBV\SurUbvBundle\Form\InstitucionEducativaType', $institucionEducativa); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($institucionEducativa); + $em->flush(); + + return $this->redirectToRoute('institucioneducativa_show', array('id' => $institucionEducativa->getId())); + } + + return $this->render('institucioneducativa/new.html.twig', array( + 'institucionEducativa' => $institucionEducativa, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a institucionEducativa entity. + * + * @Route("/{id}", name="institucioneducativa_show") + * @Method("GET") + */ + public function showAction(InstitucionEducativa $institucionEducativa) + { + $deleteForm = $this->createDeleteForm($institucionEducativa); + + return $this->render('institucioneducativa/show.html.twig', array( + 'institucionEducativa' => $institucionEducativa, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing institucionEducativa entity. + * + * @Route("/{id}/edit", name="institucioneducativa_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, InstitucionEducativa $institucionEducativa) + { + $deleteForm = $this->createDeleteForm($institucionEducativa); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\InstitucionEducativaType', $institucionEducativa); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('institucioneducativa_edit', array('id' => $institucionEducativa->getId())); + } + + return $this->render('institucioneducativa/edit.html.twig', array( + 'institucionEducativa' => $institucionEducativa, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a institucionEducativa entity. + * + * @Route("/{id}", name="institucioneducativa_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, InstitucionEducativa $institucionEducativa) + { + $form = $this->createDeleteForm($institucionEducativa); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($institucionEducativa); + $em->flush(); + } + + return $this->redirectToRoute('institucioneducativa_index'); + } + + /** + * Creates a form to delete a institucionEducativa entity. + * + * @param InstitucionEducativa $institucionEducativa The institucionEducativa entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(InstitucionEducativa $institucionEducativa) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('institucioneducativa_delete', array('id' => $institucionEducativa->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/MetodologiaController.php b/src/UBV/SurUbvBundle/Controller/MetodologiaController.php new file mode 100644 index 0000000..0f4f8f8 --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/MetodologiaController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $metodologias = $em->getRepository('UBVSurUbvBundle:Metodologia')->findAll(); + + return $this->render('metodologia/index.html.twig', array( + 'metodologias' => $metodologias, + )); + } + + /** + * Creates a new metodologia entity. + * + * @Route("/new", name="metodologia_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $metodologia = new Metodologia(); + $form = $this->createForm('UBV\SurUbvBundle\Form\MetodologiaType', $metodologia); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($metodologia); + $em->flush(); + + return $this->redirectToRoute('metodologia_show', array('id' => $metodologia->getId())); + } + + return $this->render('metodologia/new.html.twig', array( + 'metodologia' => $metodologia, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a metodologia entity. + * + * @Route("/{id}", name="metodologia_show") + * @Method("GET") + */ + public function showAction(Metodologia $metodologia) + { + $deleteForm = $this->createDeleteForm($metodologia); + + return $this->render('metodologia/show.html.twig', array( + 'metodologia' => $metodologia, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing metodologia entity. + * + * @Route("/{id}/edit", name="metodologia_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, Metodologia $metodologia) + { + $deleteForm = $this->createDeleteForm($metodologia); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\MetodologiaType', $metodologia); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('metodologia_edit', array('id' => $metodologia->getId())); + } + + return $this->render('metodologia/edit.html.twig', array( + 'metodologia' => $metodologia, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a metodologia entity. + * + * @Route("/{id}", name="metodologia_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, Metodologia $metodologia) + { + $form = $this->createDeleteForm($metodologia); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($metodologia); + $em->flush(); + } + + return $this->redirectToRoute('metodologia_index'); + } + + /** + * Creates a form to delete a metodologia entity. + * + * @param Metodologia $metodologia The metodologia entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(Metodologia $metodologia) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('metodologia_delete', array('id' => $metodologia->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/MetodologiaTipoController.php b/src/UBV/SurUbvBundle/Controller/MetodologiaTipoController.php new file mode 100644 index 0000000..fa5228d --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/MetodologiaTipoController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $metodologiaTipos = $em->getRepository('UBVSurUbvBundle:MetodologiaTipo')->findAll(); + + return $this->render('metodologiatipo/index.html.twig', array( + 'metodologiaTipos' => $metodologiaTipos, + )); + } + + /** + * Creates a new metodologiaTipo entity. + * + * @Route("/new", name="metodologiatipo_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $metodologiaTipo = new Metodologiatipo(); + $form = $this->createForm('UBV\SurUbvBundle\Form\MetodologiaTipoType', $metodologiaTipo); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($metodologiaTipo); + $em->flush(); + + return $this->redirectToRoute('metodologiatipo_show', array('id' => $metodologiaTipo->getId())); + } + + return $this->render('metodologiatipo/new.html.twig', array( + 'metodologiaTipo' => $metodologiaTipo, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a metodologiaTipo entity. + * + * @Route("/{id}", name="metodologiatipo_show") + * @Method("GET") + */ + public function showAction(MetodologiaTipo $metodologiaTipo) + { + $deleteForm = $this->createDeleteForm($metodologiaTipo); + + return $this->render('metodologiatipo/show.html.twig', array( + 'metodologiaTipo' => $metodologiaTipo, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing metodologiaTipo entity. + * + * @Route("/{id}/edit", name="metodologiatipo_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, MetodologiaTipo $metodologiaTipo) + { + $deleteForm = $this->createDeleteForm($metodologiaTipo); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\MetodologiaTipoType', $metodologiaTipo); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('metodologiatipo_edit', array('id' => $metodologiaTipo->getId())); + } + + return $this->render('metodologiatipo/edit.html.twig', array( + 'metodologiaTipo' => $metodologiaTipo, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a metodologiaTipo entity. + * + * @Route("/{id}", name="metodologiatipo_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, MetodologiaTipo $metodologiaTipo) + { + $form = $this->createDeleteForm($metodologiaTipo); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($metodologiaTipo); + $em->flush(); + } + + return $this->redirectToRoute('metodologiatipo_index'); + } + + /** + * Creates a form to delete a metodologiaTipo entity. + * + * @param MetodologiaTipo $metodologiaTipo The metodologiaTipo entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(MetodologiaTipo $metodologiaTipo) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('metodologiatipo_delete', array('id' => $metodologiaTipo->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/ObjetivoNivelController.php b/src/UBV/SurUbvBundle/Controller/ObjetivoNivelController.php new file mode 100644 index 0000000..ecd180f --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/ObjetivoNivelController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $objetivoNivels = $em->getRepository('UBVSurUbvBundle:ObjetivoNivel')->findAll(); + + return $this->render('objetivonivel/index.html.twig', array( + 'objetivoNivels' => $objetivoNivels, + )); + } + + /** + * Creates a new objetivoNivel entity. + * + * @Route("/new", name="objetivonivel_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $objetivoNivel = new Objetivonivel(); + $form = $this->createForm('UBV\SurUbvBundle\Form\ObjetivoNivelType', $objetivoNivel); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($objetivoNivel); + $em->flush(); + + return $this->redirectToRoute('objetivonivel_show', array('id' => $objetivoNivel->getId())); + } + + return $this->render('objetivonivel/new.html.twig', array( + 'objetivoNivel' => $objetivoNivel, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a objetivoNivel entity. + * + * @Route("/{id}", name="objetivonivel_show") + * @Method("GET") + */ + public function showAction(ObjetivoNivel $objetivoNivel) + { + $deleteForm = $this->createDeleteForm($objetivoNivel); + + return $this->render('objetivonivel/show.html.twig', array( + 'objetivoNivel' => $objetivoNivel, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing objetivoNivel entity. + * + * @Route("/{id}/edit", name="objetivonivel_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, ObjetivoNivel $objetivoNivel) + { + $deleteForm = $this->createDeleteForm($objetivoNivel); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\ObjetivoNivelType', $objetivoNivel); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('objetivonivel_edit', array('id' => $objetivoNivel->getId())); + } + + return $this->render('objetivonivel/edit.html.twig', array( + 'objetivoNivel' => $objetivoNivel, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a objetivoNivel entity. + * + * @Route("/{id}", name="objetivonivel_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, ObjetivoNivel $objetivoNivel) + { + $form = $this->createDeleteForm($objetivoNivel); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($objetivoNivel); + $em->flush(); + } + + return $this->redirectToRoute('objetivonivel_index'); + } + + /** + * Creates a form to delete a objetivoNivel entity. + * + * @param ObjetivoNivel $objetivoNivel The objetivoNivel entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(ObjetivoNivel $objetivoNivel) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('objetivonivel_delete', array('id' => $objetivoNivel->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/ObjetivoPlanPatriaController.php b/src/UBV/SurUbvBundle/Controller/ObjetivoPlanPatriaController.php new file mode 100644 index 0000000..6a2328d --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/ObjetivoPlanPatriaController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $objetivoPlanPatrias = $em->getRepository('UBVSurUbvBundle:ObjetivoPlanPatria')->findAll(); + + return $this->render('objetivoplanpatria/index.html.twig', array( + 'objetivoPlanPatrias' => $objetivoPlanPatrias, + )); + } + + /** + * Creates a new objetivoPlanPatrium entity. + * + * @Route("/new", name="objetivoplanpatria_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $objetivoPlanPatrium = new Objetivoplanpatrium(); + $form = $this->createForm('UBV\SurUbvBundle\Form\ObjetivoPlanPatriaType', $objetivoPlanPatrium); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($objetivoPlanPatrium); + $em->flush(); + + return $this->redirectToRoute('objetivoplanpatria_show', array('id' => $objetivoPlanPatrium->getId())); + } + + return $this->render('objetivoplanpatria/new.html.twig', array( + 'objetivoPlanPatrium' => $objetivoPlanPatrium, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a objetivoPlanPatrium entity. + * + * @Route("/{id}", name="objetivoplanpatria_show") + * @Method("GET") + */ + public function showAction(ObjetivoPlanPatria $objetivoPlanPatrium) + { + $deleteForm = $this->createDeleteForm($objetivoPlanPatrium); + + return $this->render('objetivoplanpatria/show.html.twig', array( + 'objetivoPlanPatrium' => $objetivoPlanPatrium, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing objetivoPlanPatrium entity. + * + * @Route("/{id}/edit", name="objetivoplanpatria_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, ObjetivoPlanPatria $objetivoPlanPatrium) + { + $deleteForm = $this->createDeleteForm($objetivoPlanPatrium); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\ObjetivoPlanPatriaType', $objetivoPlanPatrium); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('objetivoplanpatria_edit', array('id' => $objetivoPlanPatrium->getId())); + } + + return $this->render('objetivoplanpatria/edit.html.twig', array( + 'objetivoPlanPatrium' => $objetivoPlanPatrium, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a objetivoPlanPatrium entity. + * + * @Route("/{id}", name="objetivoplanpatria_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, ObjetivoPlanPatria $objetivoPlanPatrium) + { + $form = $this->createDeleteForm($objetivoPlanPatrium); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($objetivoPlanPatrium); + $em->flush(); + } + + return $this->redirectToRoute('objetivoplanpatria_index'); + } + + /** + * Creates a form to delete a objetivoPlanPatrium entity. + * + * @param ObjetivoPlanPatria $objetivoPlanPatrium The objetivoPlanPatrium entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(ObjetivoPlanPatria $objetivoPlanPatrium) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('objetivoplanpatria_delete', array('id' => $objetivoPlanPatrium->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/PersonaProyectoController.php b/src/UBV/SurUbvBundle/Controller/PersonaProyectoController.php new file mode 100644 index 0000000..66718ca --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/PersonaProyectoController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $personaProyectos = $em->getRepository('UBVSurUbvBundle:PersonaProyecto')->findAll(); + + return $this->render('personaproyecto/index.html.twig', array( + 'personaProyectos' => $personaProyectos, + )); + } + + /** + * Creates a new personaProyecto entity. + * + * @Route("/new", name="personaproyecto_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $personaProyecto = new Personaproyecto(); + $form = $this->createForm('UBV\SurUbvBundle\Form\PersonaProyectoType', $personaProyecto); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($personaProyecto); + $em->flush(); + + return $this->redirectToRoute('personaproyecto_show', array('id' => $personaProyecto->getId())); + } + + return $this->render('personaproyecto/new.html.twig', array( + 'personaProyecto' => $personaProyecto, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a personaProyecto entity. + * + * @Route("/{id}", name="personaproyecto_show") + * @Method("GET") + */ + public function showAction(PersonaProyecto $personaProyecto) + { + $deleteForm = $this->createDeleteForm($personaProyecto); + + return $this->render('personaproyecto/show.html.twig', array( + 'personaProyecto' => $personaProyecto, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing personaProyecto entity. + * + * @Route("/{id}/edit", name="personaproyecto_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, PersonaProyecto $personaProyecto) + { + $deleteForm = $this->createDeleteForm($personaProyecto); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\PersonaProyectoType', $personaProyecto); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('personaproyecto_edit', array('id' => $personaProyecto->getId())); + } + + return $this->render('personaproyecto/edit.html.twig', array( + 'personaProyecto' => $personaProyecto, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a personaProyecto entity. + * + * @Route("/{id}", name="personaproyecto_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, PersonaProyecto $personaProyecto) + { + $form = $this->createDeleteForm($personaProyecto); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($personaProyecto); + $em->flush(); + } + + return $this->redirectToRoute('personaproyecto_index'); + } + + /** + * Creates a form to delete a personaProyecto entity. + * + * @param PersonaProyecto $personaProyecto The personaProyecto entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(PersonaProyecto $personaProyecto) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('personaproyecto_delete', array('id' => $personaProyecto->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/ProgramaTipoController.php b/src/UBV/SurUbvBundle/Controller/ProgramaTipoController.php new file mode 100644 index 0000000..60e2f04 --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/ProgramaTipoController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $programaTipos = $em->getRepository('UBVSurUbvBundle:ProgramaTipo')->findAll(); + + return $this->render('programatipo/index.html.twig', array( + 'programaTipos' => $programaTipos, + )); + } + + /** + * Creates a new programaTipo entity. + * + * @Route("/new", name="programatipo_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $programaTipo = new Programatipo(); + $form = $this->createForm('UBV\SurUbvBundle\Form\ProgramaTipoType', $programaTipo); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($programaTipo); + $em->flush(); + + return $this->redirectToRoute('programatipo_show', array('id' => $programaTipo->getId())); + } + + return $this->render('programatipo/new.html.twig', array( + 'programaTipo' => $programaTipo, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a programaTipo entity. + * + * @Route("/{id}", name="programatipo_show") + * @Method("GET") + */ + public function showAction(ProgramaTipo $programaTipo) + { + $deleteForm = $this->createDeleteForm($programaTipo); + + return $this->render('programatipo/show.html.twig', array( + 'programaTipo' => $programaTipo, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing programaTipo entity. + * + * @Route("/{id}/edit", name="programatipo_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, ProgramaTipo $programaTipo) + { + $deleteForm = $this->createDeleteForm($programaTipo); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\ProgramaTipoType', $programaTipo); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('programatipo_edit', array('id' => $programaTipo->getId())); + } + + return $this->render('programatipo/edit.html.twig', array( + 'programaTipo' => $programaTipo, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a programaTipo entity. + * + * @Route("/{id}", name="programatipo_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, ProgramaTipo $programaTipo) + { + $form = $this->createDeleteForm($programaTipo); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($programaTipo); + $em->flush(); + } + + return $this->redirectToRoute('programatipo_index'); + } + + /** + * Creates a form to delete a programaTipo entity. + * + * @param ProgramaTipo $programaTipo The programaTipo entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(ProgramaTipo $programaTipo) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('programatipo_delete', array('id' => $programaTipo->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/ProyectoComunidadController.php b/src/UBV/SurUbvBundle/Controller/ProyectoComunidadController.php new file mode 100644 index 0000000..46869f6 --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/ProyectoComunidadController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $proyectoComunidads = $em->getRepository('UBVSurUbvBundle:ProyectoComunidad')->findAll(); + + return $this->render('proyectocomunidad/index.html.twig', array( + 'proyectoComunidads' => $proyectoComunidads, + )); + } + + /** + * Creates a new proyectoComunidad entity. + * + * @Route("/new", name="proyectocomunidad_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $proyectoComunidad = new Proyectocomunidad(); + $form = $this->createForm('UBV\SurUbvBundle\Form\ProyectoComunidadType', $proyectoComunidad); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($proyectoComunidad); + $em->flush(); + + return $this->redirectToRoute('proyectocomunidad_show', array('id' => $proyectoComunidad->getId())); + } + + return $this->render('proyectocomunidad/new.html.twig', array( + 'proyectoComunidad' => $proyectoComunidad, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a proyectoComunidad entity. + * + * @Route("/{id}", name="proyectocomunidad_show") + * @Method("GET") + */ + public function showAction(ProyectoComunidad $proyectoComunidad) + { + $deleteForm = $this->createDeleteForm($proyectoComunidad); + + return $this->render('proyectocomunidad/show.html.twig', array( + 'proyectoComunidad' => $proyectoComunidad, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing proyectoComunidad entity. + * + * @Route("/{id}/edit", name="proyectocomunidad_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, ProyectoComunidad $proyectoComunidad) + { + $deleteForm = $this->createDeleteForm($proyectoComunidad); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\ProyectoComunidadType', $proyectoComunidad); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('proyectocomunidad_edit', array('id' => $proyectoComunidad->getId())); + } + + return $this->render('proyectocomunidad/edit.html.twig', array( + 'proyectoComunidad' => $proyectoComunidad, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a proyectoComunidad entity. + * + * @Route("/{id}", name="proyectocomunidad_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, ProyectoComunidad $proyectoComunidad) + { + $form = $this->createDeleteForm($proyectoComunidad); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($proyectoComunidad); + $em->flush(); + } + + return $this->redirectToRoute('proyectocomunidad_index'); + } + + /** + * Creates a form to delete a proyectoComunidad entity. + * + * @param ProyectoComunidad $proyectoComunidad The proyectoComunidad entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(ProyectoComunidad $proyectoComunidad) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('proyectocomunidad_delete', array('id' => $proyectoComunidad->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/ProyectoController.php b/src/UBV/SurUbvBundle/Controller/ProyectoController.php new file mode 100644 index 0000000..635333c --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/ProyectoController.php @@ -0,0 +1,150 @@ +getDoctrine()->getManager(); + + $proyectos = $em->getRepository('UBVSurUbvBundle:Proyecto')->findAll(); + + return $this->render('proyecto/index.html.twig', array( + 'proyectos' => $proyectos, + )); + } + + /** + * Creates a new proyecto entity. + * + * @Route("/new", name="proyecto_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + + + $proyecto = new Proyecto(); + $form = $this->createForm('UBV\SurUbvBundle\Form\ProyectoType', $proyecto); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $sabers->setCantidad($cantidad); + + + $em->persist($proyecto); + $em->flush(); + + return $this->redirectToRoute('proyecto_show', array('id' => $proyecto->getId())); + } + + return $this->render('proyecto/new.html.twig', array( + + 'proyecto' => $proyecto, + 'form' => $form->createView(), + )); + + + + + + } + + /** + * Finds and displays a proyecto entity. + * + * @Route("/{id}", name="proyecto_show") + * @Method("GET") + */ + public function showAction(Proyecto $proyecto) + { + $deleteForm = $this->createDeleteForm($proyecto); + + return $this->render('proyecto/show.html.twig', array( + 'proyecto' => $proyecto, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing proyecto entity. + * + * @Route("/{id}/edit", name="proyecto_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, Proyecto $proyecto) + { + $deleteForm = $this->createDeleteForm($proyecto); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\ProyectoType', $proyecto); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('proyecto_edit', array('id' => $proyecto->getId())); + } + + return $this->render('proyecto/edit.html.twig', array( + 'proyecto' => $proyecto, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a proyecto entity. + * + * @Route("/{id}", name="proyecto_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, Proyecto $proyecto) + { + $form = $this->createDeleteForm($proyecto); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($proyecto); + $em->flush(); + } + + return $this->redirectToRoute('proyecto_index'); + } + + /** + * Creates a form to delete a proyecto entity. + * + * @param Proyecto $proyecto The proyecto entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(Proyecto $proyecto) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('proyecto_delete', array('id' => $proyecto->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/ProyectoEtapaController.php b/src/UBV/SurUbvBundle/Controller/ProyectoEtapaController.php new file mode 100644 index 0000000..f05a8d7 --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/ProyectoEtapaController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $proyectoEtapas = $em->getRepository('UBVSurUbvBundle:ProyectoEtapa')->findAll(); + + return $this->render('proyectoetapa/index.html.twig', array( + 'proyectoEtapas' => $proyectoEtapas, + )); + } + + /** + * Creates a new proyectoEtapa entity. + * + * @Route("/new", name="proyectoetapa_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $proyectoEtapa = new Proyectoetapa(); + $form = $this->createForm('UBV\SurUbvBundle\Form\ProyectoEtapaType', $proyectoEtapa); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($proyectoEtapa); + $em->flush(); + + return $this->redirectToRoute('proyectoetapa_show', array('id' => $proyectoEtapa->getId())); + } + + return $this->render('proyectoetapa/new.html.twig', array( + 'proyectoEtapa' => $proyectoEtapa, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a proyectoEtapa entity. + * + * @Route("/{id}", name="proyectoetapa_show") + * @Method("GET") + */ + public function showAction(ProyectoEtapa $proyectoEtapa) + { + $deleteForm = $this->createDeleteForm($proyectoEtapa); + + return $this->render('proyectoetapa/show.html.twig', array( + 'proyectoEtapa' => $proyectoEtapa, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing proyectoEtapa entity. + * + * @Route("/{id}/edit", name="proyectoetapa_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, ProyectoEtapa $proyectoEtapa) + { + $deleteForm = $this->createDeleteForm($proyectoEtapa); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\ProyectoEtapaType', $proyectoEtapa); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('proyectoetapa_edit', array('id' => $proyectoEtapa->getId())); + } + + return $this->render('proyectoetapa/edit.html.twig', array( + 'proyectoEtapa' => $proyectoEtapa, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a proyectoEtapa entity. + * + * @Route("/{id}", name="proyectoetapa_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, ProyectoEtapa $proyectoEtapa) + { + $form = $this->createDeleteForm($proyectoEtapa); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($proyectoEtapa); + $em->flush(); + } + + return $this->redirectToRoute('proyectoetapa_index'); + } + + /** + * Creates a form to delete a proyectoEtapa entity. + * + * @param ProyectoEtapa $proyectoEtapa The proyectoEtapa entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(ProyectoEtapa $proyectoEtapa) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('proyectoetapa_delete', array('id' => $proyectoEtapa->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/ProyectoPlanPatriaController.php b/src/UBV/SurUbvBundle/Controller/ProyectoPlanPatriaController.php new file mode 100644 index 0000000..0ce54fc --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/ProyectoPlanPatriaController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $proyectoPlanPatrias = $em->getRepository('UBVSurUbvBundle:ProyectoPlanPatria')->findAll(); + + return $this->render('proyectoplanpatria/index.html.twig', array( + 'proyectoPlanPatrias' => $proyectoPlanPatrias, + )); + } + + /** + * Creates a new proyectoPlanPatrium entity. + * + * @Route("/new", name="proyectoplanpatria_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $proyectoPlanPatria = new Proyectoplanpatria(); + $form = $this->createForm('UBV\SurUbvBundle\Form\ProyectoPlanPatriaType', $proyectoPlanPatria); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($proyectoPlanPatria); + $em->flush(); + + return $this->redirectToRoute('proyectoplanpatria_show', array('id' => $proyectoPlanPatria->getId())); + } + + return $this->render('proyectoplanpatria/new.html.twig', array( + 'proyectoPlanPatria' => $proyectoPlanPatria, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a proyectoPlanPatrium entity. + * + * @Route("/{id}", name="proyectoplanpatria_show") + * @Method("GET") + */ + public function showAction(ProyectoPlanPatria $proyectoPlanPatria) + { + $deleteForm = $this->createDeleteForm($proyectoPlanPatria); + + return $this->render('proyectoplanpatria/show.html.twig', array( + 'proyectoPlanPatria' => $proyectoPlanPatria, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing proyectoPlanPatrium entity. + * + * @Route("/{id}/edit", name="proyectoplanpatria_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, ProyectoPlanPatria $proyectoPlanPatria) + { + $deleteForm = $this->createDeleteForm($proyectoPlanPatria); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\ProyectoPlanPatriaType', $proyectoPlanPatria); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('proyectoplanpatria_edit', array('id' => $proyectoPlanPatria->getId())); + } + + return $this->render('proyectoplanpatria/edit.html.twig', array( + 'proyectoPlanPatria' => $proyectoPlanPatria, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a proyectoPlanPatrium entity. + * + * @Route("/{id}", name="proyectoplanpatria_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, ProyectoPlanPatria $proyectoPlanPatria) + { + $form = $this->createDeleteForm($proyectoPlanPatria); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($proyectoPlanPatria); + $em->flush(); + } + + return $this->redirectToRoute('proyectoplanpatria_index'); + } + + /** + * Creates a form to delete a proyectoPlanPatrium entity. + * + * @param ProyectoPlanPatria $proyectoPlanPatria The proyectoPlanPatria entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(ProyectoPlanPatria $proyectoPlanPatria) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('proyectoplanpatria_delete', array('id' => $proyectoPlanPatria->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/SaberController.php b/src/UBV/SurUbvBundle/Controller/SaberController.php new file mode 100644 index 0000000..4f368d8 --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/SaberController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $sabers = $em->getRepository('UBVSurUbvBundle:Saber')->findAll(); + + return $this->render('saber/index.html.twig', array( + 'sabers' => $sabers, + )); + } + + /** + * Creates a new saber entity. + * + * @Route("/new", name="saber_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $saber = new Saber(); + $form = $this->createForm('UBV\SurUbvBundle\Form\SaberType', $saber); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($saber); + $em->flush(); + + return $this->redirectToRoute('saber_show', array('id' => $saber->getId())); + } + + return $this->render('saber/new.html.twig', array( + 'saber' => $saber, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a saber entity. + * + * @Route("/{id}", name="saber_show") + * @Method("GET") + */ + public function showAction(Saber $saber) + { + $deleteForm = $this->createDeleteForm($saber); + + return $this->render('saber/show.html.twig', array( + 'saber' => $saber, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing saber entity. + * + * @Route("/{id}/edit", name="saber_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, Saber $saber) + { + $deleteForm = $this->createDeleteForm($saber); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\SaberType', $saber); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('saber_edit', array('id' => $saber->getId())); + } + + return $this->render('saber/edit.html.twig', array( + 'saber' => $saber, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a saber entity. + * + * @Route("/{id}", name="saber_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, Saber $saber) + { + $form = $this->createDeleteForm($saber); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($saber); + $em->flush(); + } + + return $this->redirectToRoute('saber_index'); + } + + /** + * Creates a form to delete a saber entity. + * + * @param Saber $saber The saber entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(Saber $saber) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('saber_delete', array('id' => $saber->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/TutorEstudiosController.php b/src/UBV/SurUbvBundle/Controller/TutorEstudiosController.php new file mode 100644 index 0000000..752850a --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/TutorEstudiosController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $tutorEstudios = $em->getRepository('UBVSurUbvBundle:TutorEstudios')->findAll(); + + return $this->render('tutorestudios/index.html.twig', array( + 'tutorEstudios' => $tutorEstudios, + )); + } + + /** + * Creates a new tutorEstudio entity. + * + * @Route("/new", name="tutorestudios_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $tutorEstudio = new Tutorestudio(); + $form = $this->createForm('UBV\SurUbvBundle\Form\TutorEstudiosType', $tutorEstudio); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($tutorEstudio); + $em->flush(); + + return $this->redirectToRoute('tutorestudios_show', array('id' => $tutorEstudio->getId())); + } + + return $this->render('tutorestudios/new.html.twig', array( + 'tutorEstudio' => $tutorEstudio, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a tutorEstudio entity. + * + * @Route("/{id}", name="tutorestudios_show") + * @Method("GET") + */ + public function showAction(TutorEstudios $tutorEstudio) + { + $deleteForm = $this->createDeleteForm($tutorEstudio); + + return $this->render('tutorestudios/show.html.twig', array( + 'tutorEstudio' => $tutorEstudio, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing tutorEstudio entity. + * + * @Route("/{id}/edit", name="tutorestudios_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, TutorEstudios $tutorEstudio) + { + $deleteForm = $this->createDeleteForm($tutorEstudio); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\TutorEstudiosType', $tutorEstudio); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('tutorestudios_edit', array('id' => $tutorEstudio->getId())); + } + + return $this->render('tutorestudios/edit.html.twig', array( + 'tutorEstudio' => $tutorEstudio, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a tutorEstudio entity. + * + * @Route("/{id}", name="tutorestudios_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, TutorEstudios $tutorEstudio) + { + $form = $this->createDeleteForm($tutorEstudio); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($tutorEstudio); + $em->flush(); + } + + return $this->redirectToRoute('tutorestudios_index'); + } + + /** + * Creates a form to delete a tutorEstudio entity. + * + * @param TutorEstudios $tutorEstudio The tutorEstudio entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(TutorEstudios $tutorEstudio) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('tutorestudios_delete', array('id' => $tutorEstudio->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Controller/TutorInstitucionalController.php b/src/UBV/SurUbvBundle/Controller/TutorInstitucionalController.php new file mode 100644 index 0000000..7f06832 --- /dev/null +++ b/src/UBV/SurUbvBundle/Controller/TutorInstitucionalController.php @@ -0,0 +1,136 @@ +getDoctrine()->getManager(); + + $tutorInstitucionals = $em->getRepository('UBVSurUbvBundle:TutorInstitucional')->findAll(); + + return $this->render('tutorinstitucional/index.html.twig', array( + 'tutorInstitucionals' => $tutorInstitucionals, + )); + } + + /** + * Creates a new tutorInstitucional entity. + * + * @Route("/new", name="tutorinstitucional_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $tutorInstitucional = new Tutorinstitucional(); + $form = $this->createForm('UBV\SurUbvBundle\Form\TutorInstitucionalType', $tutorInstitucional); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($tutorInstitucional); + $em->flush(); + + return $this->redirectToRoute('tutorinstitucional_show', array('id' => $tutorInstitucional->getId())); + } + + return $this->render('tutorinstitucional/new.html.twig', array( + 'tutorInstitucional' => $tutorInstitucional, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a tutorInstitucional entity. + * + * @Route("/{id}", name="tutorinstitucional_show") + * @Method("GET") + */ + public function showAction(TutorInstitucional $tutorInstitucional) + { + $deleteForm = $this->createDeleteForm($tutorInstitucional); + + return $this->render('tutorinstitucional/show.html.twig', array( + 'tutorInstitucional' => $tutorInstitucional, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing tutorInstitucional entity. + * + * @Route("/{id}/edit", name="tutorinstitucional_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, TutorInstitucional $tutorInstitucional) + { + $deleteForm = $this->createDeleteForm($tutorInstitucional); + $editForm = $this->createForm('UBV\SurUbvBundle\Form\TutorInstitucionalType', $tutorInstitucional); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('tutorinstitucional_edit', array('id' => $tutorInstitucional->getId())); + } + + return $this->render('tutorinstitucional/edit.html.twig', array( + 'tutorInstitucional' => $tutorInstitucional, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a tutorInstitucional entity. + * + * @Route("/{id}", name="tutorinstitucional_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, TutorInstitucional $tutorInstitucional) + { + $form = $this->createDeleteForm($tutorInstitucional); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($tutorInstitucional); + $em->flush(); + } + + return $this->redirectToRoute('tutorinstitucional_index'); + } + + /** + * Creates a form to delete a tutorInstitucional entity. + * + * @param TutorInstitucional $tutorInstitucional The tutorInstitucional entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(TutorInstitucional $tutorInstitucional) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('tutorinstitucional_delete', array('id' => $tutorInstitucional->getId()))) + ->setMethod('DELETE') + ->getForm() + ; + } +} diff --git a/src/UBV/SurUbvBundle/Entity/ActividadEstatus.php b/src/UBV/SurUbvBundle/Entity/ActividadEstatus.php new file mode 100644 index 0000000..5dea4de --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/ActividadEstatus.php @@ -0,0 +1,132 @@ +actividadEtapas = new ArrayCollection(); + } + + /** + * Set the value of id. + * + * @param integer $id + * @return \UBV\SurUbvBundle\Entity\ActividadEstatus + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\ActividadEstatus + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add ActividadEtapa entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\ActividadEtapa $actividadEtapa + * @return \UBV\SurUbvBundle\Entity\ActividadEstatus + */ + public function addActividadEtapa(ActividadEtapa $actividadEtapa) + { + $this->actividadEtapas[] = $actividadEtapa; + + return $this; + } + + /** + * Remove ActividadEtapa entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\ActividadEtapa $actividadEtapa + * @return \UBV\SurUbvBundle\Entity\ActividadEstatus + */ + public function removeActividadEtapa(ActividadEtapa $actividadEtapa) + { + $this->actividadEtapas->removeElement($actividadEtapa); + + return $this; + } + + /** + * Get ActividadEtapa entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getActividadEtapas() + { + return $this->actividadEtapas; + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + public function __toString() { + return $this->descripcion; + } + +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/ActividadEstatusRepository.php b/src/UBV/SurUbvBundle/Entity/ActividadEstatusRepository.php new file mode 100644 index 0000000..9ef4ad8 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/ActividadEstatusRepository.php @@ -0,0 +1,15 @@ +id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\ActividadEtapa + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set the value of tiempo_ejecucion. + * + * @param integer $tiempo_ejecucion + * @return \UBV\SurUbvBundle\Entity\ActividadEtapa + */ + public function setTiempoEjecucion($tiempo_ejecucion) + { + $this->tiempo_ejecucion = $tiempo_ejecucion; + + return $this; + } + + /** + * Get the value of tiempo_ejecucion. + * + * @return integer + */ + public function getTiempoEjecucion() + { + return $this->tiempo_ejecucion; + } + + /** + * Set ProyectoEtapa entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\ProyectoEtapa $proyectoEtapa + * @return \UBV\SurUbvBundle\Entity\ActividadEtapa + */ + public function setProyectoEtapa(ProyectoEtapa $proyectoEtapa = null) + { + $this->proyectoEtapa = $proyectoEtapa; + + return $this; + } + + /** + * Get ProyectoEtapa entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\ProyectoEtapa + */ + public function getProyectoEtapa() + { + return $this->proyectoEtapa; + } + + /** + * Set ActividadEstatus entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\ActividadEstatus $actividadEstatus + * @return \UBV\SurUbvBundle\Entity\ActividadEtapa + */ + public function setActividadEstatus(ActividadEstatus $actividadEstatus = null) + { + $this->actividadEstatus = $actividadEstatus; + + return $this; + } + + /** + * Get ActividadEstatus entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\ActividadEstatus + */ + public function getActividadEstatus() + { + return $this->actividadEstatus; + } + + + public function __sleep() + { + return array('id', 'descripcion', 'tiempo_ejecucion', 'proyecto_etapa_id', 'actividad_estatus_id'); + } + + public function __toString() { + return $this->descripcion; + } + +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/ActividadEtapaRepository.php b/src/UBV/SurUbvBundle/Entity/ActividadEtapaRepository.php new file mode 100644 index 0000000..6b6786d --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/ActividadEtapaRepository.php @@ -0,0 +1,15 @@ +proyecto = new ArrayCollection(); } public function __sleep() @@ -124,4 +133,44 @@ class AldeaPrograma { return $this->programa; } -} + + /** + * Add proyecto + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyectos + * @return AldeaPrograma + */ + public function addProyecto(\UBV\SurUbvBundle\Entity\Proyecto $proyecto) + { + $this->proyecto[] = $proyecto; + + return $this; + } + + /** + * Remove proyecto + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyectos + */ + public function removeProyecto(\UBV\SurUbvBundle\Entity\Proyecto $proyecto) + { + $this->proyecto->removeElement($proyecto); + } + + /** + * Get proyecto + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getProyecto() + { + return $this->proyecto; + } + + public function __toString() + { + return $this->aldea(); + } + + } + diff --git a/src/UBV/SurUbvBundle/Entity/AldeaTipoHasAldeaPrograma.php b/src/UBV/SurUbvBundle/Entity/AldeaTipoHasAldeaPrograma.php new file mode 100644 index 0000000..8ae68d3 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/AldeaTipoHasAldeaPrograma.php @@ -0,0 +1,167 @@ +aldea_tipo_id = $aldea_tipo_id; + + return $this; + } + + /** + * Get the value of aldea_tipo_id. + * + * @return integer + */ + public function getAldeaTipoId() + { + return $this->aldea_tipo_id; + } + + /** + * Set the value of aldea_programa_id. + * + * @param integer $aldea_programa_id + * @return \UBV\SurUbvBundle\Entity\AldeaTipoHasAldeaPrograma + */ + public function setAldeaProgramaId($aldea_programa_id) + { + $this->aldea_programa_id = $aldea_programa_id; + + return $this; + } + + /** + * Get the value of aldea_programa_id. + * + * @return integer + */ + public function getAldeaProgramaId() + { + return $this->aldea_programa_id; + } + + /** + * Set the value of prueba. + * + * @param string $prueba + * @return \UBV\SurUbvBundle\Entity\AldeaTipoHasAldeaPrograma + */ + public function setPrueba($prueba) + { + $this->prueba = $prueba; + + return $this; + } + + /** + * Get the value of prueba. + * + * @return string + */ + public function getPrueba() + { + return $this->prueba; + } + + /** + * Set AldeaTipo entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\AldeaTipo $aldeaTipo + * @return \UBV\SurUbvBundle\Entity\AldeaTipoHasAldeaPrograma + */ + public function setAldeaTipo(AldeaTipo $aldeaTipo = null) + { + $this->aldeaTipo = $aldeaTipo; + + return $this; + } + + /** + * Get AldeaTipo entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\AldeaTipo + */ + public function getAldeaTipo() + { + return $this->aldeaTipo; + } + + /** + * Set AldeaPrograma entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\AldeaPrograma $aldeaPrograma + * @return \UBV\SurUbvBundle\Entity\AldeaTipoHasAldeaPrograma + */ + public function setAldeaPrograma(AldeaPrograma $aldeaPrograma = null) + { + $this->aldeaPrograma = $aldeaPrograma; + + return $this; + } + + /** + * Get AldeaPrograma entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\AldeaPrograma + */ + public function getAldeaPrograma() + { + return $this->aldeaPrograma; + } + + public function __sleep() + { + return array('aldea_tipo_id', 'aldea_programa_id', 'prueba'); + } +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/AldeaTipoHasAldeaProgramaRepository.php b/src/UBV/SurUbvBundle/Entity/AldeaTipoHasAldeaProgramaRepository.php new file mode 100644 index 0000000..78e579b --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/AldeaTipoHasAldeaProgramaRepository.php @@ -0,0 +1,15 @@ +aldeas = new ArrayCollection(); @@ -321,5 +329,31 @@ class Ambiente public function __toString() { return $this->getDescripcion(); + + + } + + /** + * Setmunicipio + * + * @param \UBV\SurUbvBundle\Entity\Municipio $municipio + * @return Ambiente + */ + public function setMunicipio(\UBV\SurUbvBundle\Entity\Municipio $municipio) + { + $this->municipio = $municipio; + + return $this; + } + + /** + * Get parroquia + * + * @return \UBV\SurUbvBundle\Entity\Municipio + */ + public function getMunicipio() + { + return $this->municipio; } + } diff --git a/src/UBV/SurUbvBundle/Entity/Ambito.php b/src/UBV/SurUbvBundle/Entity/Ambito.php new file mode 100644 index 0000000..9f2a500 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/Ambito.php @@ -0,0 +1,131 @@ +proyectos = new ArrayCollection(); + } + + /** + * Set the value of id. + * + * @param integer $id + * @return \UBV\SurUbvBundle\Entity\Ambito + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\Ambito + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add Proyecto entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\Ambito + */ + public function addProyecto(Proyecto $proyecto) + { + $this->proyectos[] = $proyecto; + + return $this; + } + + /** + * Remove Proyecto entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\Ambito + */ + public function removeProyecto(Proyecto $proyecto) + { + $this->proyectos->removeElement($proyecto); + + return $this; + } + + /** + * Get Proyecto entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getProyectos() + { + return $this->proyectos; + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + public function __toString() { + return $this->descripcion; + } + +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/AmbitoRepository.php b/src/UBV/SurUbvBundle/Entity/AmbitoRepository.php new file mode 100644 index 0000000..cb6de79 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/AmbitoRepository.php @@ -0,0 +1,15 @@ +id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\AporteInstitucion + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set the value of concepto. + * + * @param string $concepto + * @return \UBV\SurUbvBundle\Entity\AporteInstitucion + */ + public function setConcepto($concepto) + { + $this->concepto = $concepto; + + return $this; + } + + /** + * Get the value of concepto. + * + * @return string + */ + public function getConcepto() + { + return $this->concepto; + } + + /** + * Set the value of cantidad. + * + * @param string $cantidad + * @return \UBV\SurUbvBundle\Entity\AporteInstitucion + */ + public function setCantidad($cantidad) + { + $this->cantidad = $cantidad; + + return $this; + } + + /** + * Get the value of cantidad. + * + * @return string + */ + public function getCantidad() + { + return $this->cantidad; + } + + /** + * Set the value of fecha_recepcion. + * + * @param \DateTime $fecha_recepcion + * @return \UBV\SurUbvBundle\Entity\AporteInstitucion + */ + public function setFechaRecepcion($fecha_recepcion) + { + $this->fecha_recepcion = $fecha_recepcion; + + return $this; + } + + /** + * Get the value of fecha_recepcion. + * + * @return \DateTime + */ + public function getFechaRecepcion() + { + return $this->fecha_recepcion; + } + + /** + * Set Proyecto entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\AporteInstitucion + */ + public function setProyecto(Proyecto $proyecto = null) + { + $this->proyecto = $proyecto; + + return $this; + } + + /** + * Get Proyecto entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function getProyecto() + { + return $this->proyecto; + } + + /** + * Set AporteTipo entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\AporteTipo $aporteTipo + * @return \UBV\SurUbvBundle\Entity\AporteInstitucion + */ + public function setAporteTipo(AporteTipo $aporteTipo = null) + { + $this->aporteTipo = $aporteTipo; + + return $this; + } + + /** + * Get AporteTipo entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\AporteTipo + */ + public function getAporteTipo() + { + return $this->aporteTipo; + } + + /** + * Set Institucion entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Institucion $institucion + * @return \UBV\SurUbvBundle\Entity\AporteInstitucion + */ + public function setInstitucion(Institucion $institucion = null) + { + $this->institucion = $institucion; + + return $this; + } + + /** + * Get Institucion entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\Institucion + */ + public function getInstitucion() + { + return $this->institucion; + } + + public function __sleep() + { + return array('id', 'descripcion', 'concepto', 'proyecto_id', 'aporte_tipo_id', 'cantidad', 'fecha_recepcion', 'institucion_id'); + } +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/AporteInstitucionRepository.php b/src/UBV/SurUbvBundle/Entity/AporteInstitucionRepository.php new file mode 100644 index 0000000..cc8795d --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/AporteInstitucionRepository.php @@ -0,0 +1,15 @@ +aporteInstitucions = new ArrayCollection(); + $this->requerimientoProyectos = new ArrayCollection(); + } + + /** + * Set the value of id. + * + * @param integer $id + * @return \UBV\SurUbvBundle\Entity\AporteTipo + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\AporteTipo + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add AporteInstitucion entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\AporteInstitucion $aporteInstitucion + * @return \UBV\SurUbvBundle\Entity\AporteTipo + */ + public function addAporteInstitucion(AporteInstitucion $aporteInstitucion) + { + $this->aporteInstitucions[] = $aporteInstitucion; + + return $this; + } + + /** + * Remove AporteInstitucion entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\AporteInstitucion $aporteInstitucion + * @return \UBV\SurUbvBundle\Entity\AporteTipo + */ + public function removeAporteInstitucion(AporteInstitucion $aporteInstitucion) + { + $this->aporteInstitucions->removeElement($aporteInstitucion); + + return $this; + } + + /** + * Get AporteInstitucion entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getAporteInstitucions() + { + return $this->aporteInstitucions; + } + + /** + * Add RequerimientoProyecto entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\RequerimientoProyecto $requerimientoProyecto + * @return \UBV\SurUbvBundle\Entity\AporteTipo + */ + public function addRequerimientoProyecto(RequerimientoProyecto $requerimientoProyecto) + { + $this->requerimientoProyectos[] = $requerimientoProyecto; + + return $this; + } + + /** + * Remove RequerimientoProyecto entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\RequerimientoProyecto $requerimientoProyecto + * @return \UBV\SurUbvBundle\Entity\AporteTipo + */ + public function removeRequerimientoProyecto(RequerimientoProyecto $requerimientoProyecto) + { + $this->requerimientoProyectos->removeElement($requerimientoProyecto); + + return $this; + } + + /** + * Get RequerimientoProyecto entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getRequerimientoProyectos() + { + return $this->requerimientoProyectos; + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + public function __toString() { + return $this->descripcion; + } +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/AporteTipoRepository.php b/src/UBV/SurUbvBundle/Entity/AporteTipoRepository.php new file mode 100644 index 0000000..2b5f850 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/AporteTipoRepository.php @@ -0,0 +1,15 @@ +areaConocimientoUbvs = new ArrayCollection(); + } + + /** + * Set the value of id. + * + * @param integer $id + * @return \UBV\SurUbvBundle\Entity\AreaConocimientoOpsu + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\AreaConocimientoOpsu + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set the value of codigo. + * + * @param string $codigo + * @return \UBV\SurUbvBundle\Entity\AreaConocimientoOpsu + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get the value of codigo. + * + * @return string + */ + public function getCodigo() + { + return $this->codigo; + } + + /** + * Set AreaConocimientoUbv entity (one to one). + * + * @param \UBV\SurUbvBundle\Entity\AreaConocimientoUbv $areaConocimientoUbv + * @return \UBV\SurUbvBundle\Entity\AreaConocimientoOpsu + */ + public function setAreaConocimientoUbv(AreaConocimientoUbv $areaConocimientoUbv = null) + { + $areaConocimientoUbv->setAreaConocimientoOpsu($this); + $this->areaConocimientoUbv = $areaConocimientoUbv; + + return $this; + } + + /** + * Get AreaConocimientoUbv entity (one to one). + * + * @return \UBV\SurUbvBundle\Entity\AreaConocimientoUbv + */ + public function getAreaConocimientoUbv() + { + return $this->areaConocimientoUbv; + } + + public function __sleep() + { + return array('id', 'descripcion', 'codigo'); + } +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/AreaConocimientoOpsuRepository.php b/src/UBV/SurUbvBundle/Entity/AreaConocimientoOpsuRepository.php new file mode 100644 index 0000000..357d7f3 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/AreaConocimientoOpsuRepository.php @@ -0,0 +1,15 @@ +centroEstudios = new ArrayCollection(); + } + + /** + * Set the value of id. + * + * @param integer $id + * @return \UBV\SurUbvBundle\Entity\AreaConocimientoUbv + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\AreaConocimientoUbv + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set the value of codigo. + * + * @param string $codigo + * @return \UBV\SurUbvBundle\Entity\AreaConocimientoUbv + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get the value of codigo. + * + * @return string + */ + public function getCodigo() + { + return $this->codigo; + } + + /** + * Set the value of estatus. + * + * @param boolean $estatus + * @return \UBV\SurUbvBundle\Entity\AreaConocimientoUbv + */ + public function setEstatus($estatus) + { + $this->estatus = $estatus; + + return $this; + } + + /** + * Get the value of estatus. + * + * @return boolean + */ + public function getEstatus() + { + return $this->estatus; + } + + /** + * Set CentroEstudio entity (one to one). + * + * @param \UBV\SurUbvBundle\Entity\CentroEstudio $centroEstudio + * @return \UBV\SurUbvBundle\Entity\AreaConocimientoUbv + */ + public function setCentroEstudio(CentroEstudio $centroEstudio = null) + { + $centroEstudio->setAreaConocimientoUbv($this); + $this->centroEstudio = $centroEstudio; + + return $this; + } + + /** + * Get CentroEstudio entity (one to one). + * + * @return \UBV\SurUbvBundle\Entity\CentroEstudio + */ + public function getCentroEstudio() + { + return $this->centroEstudio; + } + + /** + * Set AreaConocimientoOpsu entity (one to one). + * + * @param \UBV\SurUbvBundle\Entity\AreaConocimientoOpsu $areaConocimientoOpsu + * @return \UBV\SurUbvBundle\Entity\AreaConocimientoUbv + */ + public function setAreaConocimientoOpsu(AreaConocimientoOpsu $areaConocimientoOpsu) + { + $this->areaConocimientoOpsu = $areaConocimientoOpsu; + + return $this; + } + + /** + * Get AreaConocimientoOpsu entity (one to one). + * + * @return \UBV\SurUbvBundle\Entity\AreaConocimientoOpsu + */ + public function getAreaConocimientoOpsu() + { + return $this->areaConocimientoOpsu; + } + + public function __sleep() + { + return array('id', 'descripcion', 'codigo', 'estatus', 'area_conocimiento_opsu_id'); + } +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/AreaConocimientoUbvRepository.php b/src/UBV/SurUbvBundle/Entity/AreaConocimientoUbvRepository.php new file mode 100644 index 0000000..f4d922b --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/AreaConocimientoUbvRepository.php @@ -0,0 +1,15 @@ +areaConocimiento; } + + public function __toString() { + return $this->descripcion; + } } diff --git a/src/UBV/SurUbvBundle/Entity/Ciudad.php b/src/UBV/SurUbvBundle/Entity/Ciudad.php index 2acd15f..3308c5d 100644 --- a/src/UBV/SurUbvBundle/Entity/Ciudad.php +++ b/src/UBV/SurUbvBundle/Entity/Ciudad.php @@ -136,4 +136,9 @@ class Ciudad { return $this->estado; } + + public function __toString() { + return $this->descripcion; + } + } diff --git a/src/UBV/SurUbvBundle/Entity/Comunidad.php b/src/UBV/SurUbvBundle/Entity/Comunidad.php new file mode 100644 index 0000000..139f9cf --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/Comunidad.php @@ -0,0 +1,163 @@ +proyectoComunidads = new ArrayCollection(); + } + + /** + * Set the value of id. + * + * @param integer $id + * @return \UBV\SurUbvBundle\Entity\Comunidad + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\Comunidad + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add ProyectoComunidad entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\ProyectoComunidad $proyectoComunidad + * @return \UBV\SurUbvBundle\Entity\Comunidad + */ + public function addProyectoComunidad(ProyectoComunidad $proyectoComunidad) + { + $this->proyectoComunidads[] = $proyectoComunidad; + + return $this; + } + + /** + * Remove ProyectoComunidad entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\ProyectoComunidad $proyectoComunidad + * @return \UBV\SurUbvBundle\Entity\Comunidad + */ + public function removeProyectoComunidad(ProyectoComunidad $proyectoComunidad) + { + $this->proyectoComunidads->removeElement($proyectoComunidad); + + return $this; + } + + /** + * Get ProyectoComunidad entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getProyectoComunidads() + { + return $this->proyectoComunidads; + } + + /** + * Set ComunidadTipo entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\ComunidadTipo $comunidadTipo + * @return \UBV\SurUbvBundle\Entity\Comunidad + */ + public function setComunidadTipo(ComunidadTipo $comunidadTipo = null) + { + $this->comunidadTipo = $comunidadTipo; + + return $this; + } + + /** + * Get ComunidadTipo entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\ComunidadTipo + */ + public function getComunidadTipo() + { + return $this->comunidadTipo; + } + + public function __sleep() + { + return array('id', 'descripcion', 'comunidad_tipo_id'); + } + + public function __toString() { + return $this->descripcion; + } + + +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/ComunidadRepository.php b/src/UBV/SurUbvBundle/Entity/ComunidadRepository.php new file mode 100644 index 0000000..621a149 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/ComunidadRepository.php @@ -0,0 +1,15 @@ +comunidads = new ArrayCollection(); + } + + /** + * Set the value of id. + * + * @param integer $id + * @return \UBV\SurUbvBundle\Entity\ComunidadTipo + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\ComunidadTipo + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add Comunidad entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\Comunidad $comunidad + * @return \UBV\SurUbvBundle\Entity\ComunidadTipo + */ + public function addComunidad(Comunidad $comunidad) + { + $this->comunidads[] = $comunidad; + + return $this; + } + + /** + * Remove Comunidad entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\Comunidad $comunidad + * @return \UBV\SurUbvBundle\Entity\ComunidadTipo + */ + public function removeComunidad(Comunidad $comunidad) + { + $this->comunidads->removeElement($comunidad); + + return $this; + } + + /** + * Get Comunidad entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getComunidads() + { + return $this->comunidads; + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + public function __toString() { + return $this->descripcion; + } + +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/ComunidadTipoRepository.php b/src/UBV/SurUbvBundle/Entity/ComunidadTipoRepository.php new file mode 100644 index 0000000..98b94f5 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/ComunidadTipoRepository.php @@ -0,0 +1,15 @@ +descripcion; } - /** - * Add candidatos - * - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos - * @return Convenio - */ - public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) - { - $this->candidatos[] = $candidatos; - - return $this; - } - - /** - * Remove candidatos - * - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos - */ - public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) - { - $this->candidatos->removeElement($candidatos); - } - - /** - * Get candidatos - * - * @return \Doctrine\Common\Collections\Collection - */ - public function getCandidatos() - { - return $this->candidatos; - } + + public function __toString() { + return $this->descripcion; + } + } diff --git a/src/UBV/SurUbvBundle/Entity/Discapacidad.php b/src/UBV/SurUbvBundle/Entity/Discapacidad.php index f66083b..ec9f522 100644 --- a/src/UBV/SurUbvBundle/Entity/Discapacidad.php +++ b/src/UBV/SurUbvBundle/Entity/Discapacidad.php @@ -38,6 +38,10 @@ class Discapacidad */ protected $candidatos; + + + + public function __construct() { $this->personaDiscapacidads = new ArrayCollection(); @@ -147,4 +151,8 @@ class Discapacidad { return $this->candidatos; } + + public function __toString() { + return $this->descripcion; + } } diff --git a/src/UBV/SurUbvBundle/Entity/Docente.php b/src/UBV/SurUbvBundle/Entity/Docente.php index 25f7545..2417688 100644 --- a/src/UBV/SurUbvBundle/Entity/Docente.php +++ b/src/UBV/SurUbvBundle/Entity/Docente.php @@ -333,4 +333,6 @@ class Docente { return $this->docenteEstatus; } + + } diff --git a/src/UBV/SurUbvBundle/Entity/DocenteProyecto.php b/src/UBV/SurUbvBundle/Entity/DocenteProyecto.php new file mode 100644 index 0000000..6b2bb93 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/DocenteProyecto.php @@ -0,0 +1,169 @@ +id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of estatus. + * + * @param boolean $estatus + * @return \UBV\SurUbvBundle\Entity\DocenteProyecto + */ + public function setEstatus($estatus) + { + $this->estatus = $estatus; + + return $this; + } + + /** + * Get the value of estatus. + * + * @return boolean + */ + public function getEstatus() + { + return $this->estatus; + } + + /** + * Set Docente entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Docente $docente + * @return \UBV\SurUbvBundle\Entity\DocenteProyecto + */ + public function setDocente(Docente $docente = null) + { + $this->docente = $docente; + + return $this; + } + + /** + * Get Docente entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\Docente + */ + public function getDocente() + { + return $this->docente; + } + + /** + * Set Proyecto entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\DocenteProyecto + */ + public function setProyecto(Proyecto $proyecto = null) + { + $this->proyecto = $proyecto; + + return $this; + } + + /** + * Get Proyecto entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function getProyecto() + { + return $this->proyecto; + } + + /** + * Set VinculacionProyecto entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\VinculacionProyecto $vinculacionProyecto + * @return \UBV\SurUbvBundle\Entity\DocenteProyecto + */ + public function setVinculacionProyecto(VinculacionProyecto $vinculacionProyecto = null) + { + $this->vinculacionProyecto = $vinculacionProyecto; + + return $this; + } + + /** + * Get VinculacionProyecto entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\VinculacionProyecto + */ + public function getVinculacionProyecto() + { + return $this->vinculacionProyecto; + } + + public function __sleep() + { + return array('id', 'estatus', 'docente_id', 'proyecto_id', 'vinculacion_proyecto_id'); + } +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/DocenteProyectoRepository.php b/src/UBV/SurUbvBundle/Entity/DocenteProyectoRepository.php new file mode 100644 index 0000000..7be99cb --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/DocenteProyectoRepository.php @@ -0,0 +1,15 @@ +ejeRegional = $ejeRegional; + $this->ejeregional = $ejeregional; return $this; } @@ -166,6 +166,6 @@ class EjeMunicipal */ public function getEjeRegional() { - return $this->ejeRegional; + return $this->ejeregional; } } diff --git a/src/UBV/SurUbvBundle/Entity/EspacioTipo.php b/src/UBV/SurUbvBundle/Entity/EspacioTipo.php new file mode 100644 index 0000000..4fdb8a3 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/EspacioTipo.php @@ -0,0 +1,126 @@ +ambienteEspacios = new ArrayCollection(); + } + + /** + * Set the value of id. + * + * @param integer $id + * @return \UBV\SurUbvBundle\Entity\EspacioTipo + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\EspacioTipo + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add AmbienteEspacio entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\AmbienteEspacio $ambienteEspacio + * @return \UBV\SurUbvBundle\Entity\EspacioTipo + */ + public function addAmbienteEspacio(AmbienteEspacio $ambienteEspacio) + { + $this->ambienteEspacios[] = $ambienteEspacio; + + return $this; + } + + /** + * Remove AmbienteEspacio entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\AmbienteEspacio $ambienteEspacio + * @return \UBV\SurUbvBundle\Entity\EspacioTipo + */ + public function removeAmbienteEspacio(AmbienteEspacio $ambienteEspacio) + { + $this->ambienteEspacios->removeElement($ambienteEspacio); + + return $this; + } + + /** + * Get AmbienteEspacio entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getAmbienteEspacios() + { + return $this->ambienteEspacios; + } + + public function __sleep() + { + return array('id', 'descripcion'); + } +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/EspacioTipoRepository.php b/src/UBV/SurUbvBundle/Entity/EspacioTipoRepository.php new file mode 100644 index 0000000..933643a --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/EspacioTipoRepository.php @@ -0,0 +1,15 @@ +ciudads = new ArrayCollection(); diff --git a/src/UBV/SurUbvBundle/Entity/EstudianteProyecto.php b/src/UBV/SurUbvBundle/Entity/EstudianteProyecto.php new file mode 100644 index 0000000..1b0f3fc --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/EstudianteProyecto.php @@ -0,0 +1,141 @@ +id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set EstudianteDetalle entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalle + * @return \UBV\SurUbvBundle\Entity\EstudianteProyecto + */ + public function setEstudianteDetalle(EstudianteDetalle $estudianteDetalle = null) + { + $this->estudianteDetalle = $estudianteDetalle; + + return $this; + } + + /** + * Get EstudianteDetalle entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\EstudianteDetalle + */ + public function getEstudianteDetalle() + { + return $this->estudianteDetalle; + } + + /** + * Set Proyecto entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\EstudianteProyecto + */ + public function setProyecto(Proyecto $proyecto = null) + { + $this->proyecto = $proyecto; + + return $this; + } + + /** + * Get Proyecto entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function getProyecto() + { + return $this->proyecto; + } + + /** + * Set VinculacionProyecto entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\VinculacionProyecto $vinculacionProyecto + * @return \UBV\SurUbvBundle\Entity\EstudianteProyecto + */ + public function setVinculacionProyecto(VinculacionProyecto $vinculacionProyecto = null) + { + $this->vinculacionProyecto = $vinculacionProyecto; + + return $this; + } + + /** + * Get VinculacionProyecto entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\VinculacionProyecto + */ + public function getVinculacionProyecto() + { + return $this->vinculacionProyecto; + } + + public function __sleep() + { + return array('id', 'estudiante_detalle_id', 'proyecto_id', 'vinculacion_proyecto_id'); + } +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/EstudianteProyectoRepository.php b/src/UBV/SurUbvBundle/Entity/EstudianteProyectoRepository.php new file mode 100644 index 0000000..ed581b4 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/EstudianteProyectoRepository.php @@ -0,0 +1,15 @@ +aporteInstitucions = new ArrayCollection(); + } + + /** + * Set the value of id. + * + * @param integer $id + * @return \UBV\SurUbvBundle\Entity\Institucion + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\Institucion + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add AporteInstitucion entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\AporteInstitucion $aporteInstitucion + * @return \UBV\SurUbvBundle\Entity\Institucion + */ + public function addAporteInstitucion(AporteInstitucion $aporteInstitucion) + { + $this->aporteInstitucions[] = $aporteInstitucion; + + return $this; + } + + /** + * Remove AporteInstitucion entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\AporteInstitucion $aporteInstitucion + * @return \UBV\SurUbvBundle\Entity\Institucion + */ + public function removeAporteInstitucion(AporteInstitucion $aporteInstitucion) + { + $this->aporteInstitucions->removeElement($aporteInstitucion); + + return $this; + } + + /** + * Get AporteInstitucion entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getAporteInstitucions() + { + return $this->aporteInstitucions; + } + + /** + * Set Pais entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Pais $pais + * @return \UBV\SurUbvBundle\Entity\Institucion + */ + public function setPais(Pais $pais = null) + { + $this->pais = $pais; + + return $this; + } + + /** + * Get Pais entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\Pais + */ + public function getPais() + { + return $this->pais; + } + + /** + * Set InstitucionTipo entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\InstitucionTipo $institucionTipo + * @return \UBV\SurUbvBundle\Entity\Institucion + */ + public function setInstitucionTipo(InstitucionTipo $institucionTipo = null) + { + $this->institucionTipo = $institucionTipo; + + return $this; + } + + /** + * Get InstitucionTipo entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\InstitucionTipo + */ + public function getInstitucionTipo() + { + return $this->institucionTipo; + } + + public function __sleep() + { + return array('id', 'descripcion', 'pais_id', 'institucion_tipo_id'); + } + + public function __toString() { + return $this->descripcion; + } +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/InstitucionEducativa.php b/src/UBV/SurUbvBundle/Entity/InstitucionEducativa.php new file mode 100644 index 0000000..8620740 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/InstitucionEducativa.php @@ -0,0 +1,158 @@ +tutorEstudios = new ArrayCollection(); + } + + /** + * Set the value of id. + * + * @param integer $id + * @return \UBV\SurUbvBundle\Entity\InstitucionEducativa + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\InstitucionEducativa + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add TutorEstudios entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\TutorEstudios $tutorEstudios + * @return \UBV\SurUbvBundle\Entity\InstitucionEducativa + */ + public function addTutorEstudios(TutorEstudios $tutorEstudios) + { + $this->tutorEstudios[] = $tutorEstudios; + + return $this; + } + + /** + * Remove TutorEstudios entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\TutorEstudios $tutorEstudios + * @return \UBV\SurUbvBundle\Entity\InstitucionEducativa + */ + public function removeTutorEstudios(TutorEstudios $tutorEstudios) + { + $this->tutorEstudios->removeElement($tutorEstudios); + + return $this; + } + + /** + * Get TutorEstudios entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getTutorEstudios() + { + return $this->tutorEstudios; + } + + /** + * Set InstitucionTipo entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\InstitucionTipo $institucionTipo + * @return \UBV\SurUbvBundle\Entity\InstitucionEducativa + */ + public function setInstitucionTipo(InstitucionTipo $institucionTipo = null) + { + $this->institucionTipo = $institucionTipo; + + return $this; + } + + /** + * Get InstitucionTipo entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\InstitucionTipo + */ + public function getInstitucionTipo() + { + return $this->institucionTipo; + } + + public function __sleep() + { + return array('id', 'descripcion', 'institucion_tipo_id'); + } + public function __toString() { + return $this->descripcion; + } +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/InstitucionEducativaRepository.php b/src/UBV/SurUbvBundle/Entity/InstitucionEducativaRepository.php new file mode 100644 index 0000000..9d50cfe --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/InstitucionEducativaRepository.php @@ -0,0 +1,15 @@ +institucions = new ArrayCollection(); + $this->institucionEducativas = new ArrayCollection(); + } + + /** + * Set the value of id. + * + * @param integer $id + * @return \UBV\SurUbvBundle\Entity\InstitucionTipo + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\InstitucionTipo + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add Institucion entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\Institucion $institucion + * @return \UBV\SurUbvBundle\Entity\InstitucionTipo + */ + public function addInstitucion(Institucion $institucion) + { + $this->institucions[] = $institucion; + + return $this; + } + + /** + * Remove Institucion entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\Institucion $institucion + * @return \UBV\SurUbvBundle\Entity\InstitucionTipo + */ + public function removeInstitucion(Institucion $institucion) + { + $this->institucions->removeElement($institucion); + + return $this; + } + + /** + * Get Institucion entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getInstitucions() + { + return $this->institucions; + } + + /** + * Add InstitucionEducativa entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\InstitucionEducativa $institucionEducativa + * @return \UBV\SurUbvBundle\Entity\InstitucionTipo + */ + public function addInstitucionEducativa(InstitucionEducativa $institucionEducativa) + { + $this->institucionEducativas[] = $institucionEducativa; + + return $this; + } + + /** + * Remove InstitucionEducativa entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\InstitucionEducativa $institucionEducativa + * @return \UBV\SurUbvBundle\Entity\InstitucionTipo + */ + public function removeInstitucionEducativa(InstitucionEducativa $institucionEducativa) + { + $this->institucionEducativas->removeElement($institucionEducativa); + + return $this; + } + + /** + * Get InstitucionEducativa entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getInstitucionEducativas() + { + return $this->institucionEducativas; + } + + public function __sleep() + { + return array('id', 'descripcion'); + + } + + public function __toString() { + return $this->descripcion; + } +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/InstitucionTipoRepository.php b/src/UBV/SurUbvBundle/Entity/InstitucionTipoRepository.php new file mode 100644 index 0000000..c0dcbf7 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/InstitucionTipoRepository.php @@ -0,0 +1,15 @@ +programa; } + + public function __toString() { + return $this->descripcion; + } } diff --git a/src/UBV/SurUbvBundle/Entity/Metodologia.php b/src/UBV/SurUbvBundle/Entity/Metodologia.php new file mode 100644 index 0000000..2ea1ed3 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/Metodologia.php @@ -0,0 +1,159 @@ +id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\Metodologia + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add Proyecto entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\Metodologia + */ + public function addProyecto(Proyecto $proyecto) + { + $this->proyectos[] = $proyecto; + + return $this; + } + + /** + * Remove Proyecto entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\Metodologia + */ + public function removeProyecto(Proyecto $proyecto) + { + $this->proyectos->removeElement($proyecto); + + return $this; + } + + /** + * Get Proyecto entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getProyectos() + { + return $this->proyectos; + } + + /** + * Set MetodologiaTipo entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\MetodologiaTipo $metodologiaTipo + * @return \UBV\SurUbvBundle\Entity\Metodologia + */ + public function setMetodologiaTipo(MetodologiaTipo $metodologiaTipo = null) + { + $this->metodologiaTipo = $metodologiaTipo; + + return $this; + } + + /** + * Get MetodologiaTipo entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\MetodologiaTipo + */ + public function getMetodologiaTipo() + { + return $this->metodologiaTipo; + } + + public function __sleep() + { + return array('id', 'descripcion', 'metodologia_tipo_id'); + } + + public function __toString() { + return $this->descripcion; + } +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/MetodologiaRepository.php b/src/UBV/SurUbvBundle/Entity/MetodologiaRepository.php new file mode 100644 index 0000000..11c0259 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/MetodologiaRepository.php @@ -0,0 +1,15 @@ +metodologias = new ArrayCollection(); + } + + /** + * Set the value of id. + * + * @param integer $id + * @return \UBV\SurUbvBundle\Entity\MetodologiaTipo + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\MetodologiaTipo + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add Metodologia entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\Metodologia $metodologia + * @return \UBV\SurUbvBundle\Entity\MetodologiaTipo + */ + public function addMetodologia(Metodologia $metodologia) + { + $this->metodologias[] = $metodologia; + + return $this; + } + + /** + * Remove Metodologia entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\Metodologia $metodologia + * @return \UBV\SurUbvBundle\Entity\MetodologiaTipo + */ + public function removeMetodologia(Metodologia $metodologia) + { + $this->metodologias->removeElement($metodologia); + + return $this; + } + + /** + * Get Metodologia entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getMetodologias() + { + return $this->metodologias; + } + + + public function __sleep() + { + return array('id', 'descripcion'); + } + + public function __toString() { + return $this->descripcion; + } + +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/MetodologiaTipoRepository.php b/src/UBV/SurUbvBundle/Entity/MetodologiaTipoRepository.php new file mode 100644 index 0000000..cb46d27 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/MetodologiaTipoRepository.php @@ -0,0 +1,15 @@ +parroquias = new ArrayCollection(); diff --git a/src/UBV/SurUbvBundle/Entity/NucleoAcademico.php b/src/UBV/SurUbvBundle/Entity/NucleoAcademico.php new file mode 100644 index 0000000..1db9c27 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/NucleoAcademico.php @@ -0,0 +1,244 @@ +proyectoRelatedByNucleoAcademicoIds = new ArrayCollection(); + $this->proyectoRelatedByNucleoAcademicoId1s = new ArrayCollection(); + $this->lineaInvestigacions = new ArrayCollection(); + } + + /** + * Set the value of id. + * + * @param integer $id + * @return \UBV\SurUbvBundle\Entity\NucleoAcademico + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\NucleoAcademico + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add Proyecto entity related by `nucleo_academico_id` to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\NucleoAcademico + */ + public function addProyectoRelatedByNucleoAcademicoId(Proyecto $proyecto) + { + $this->proyectoRelatedByNucleoAcademicoIds[] = $proyecto; + + return $this; + } + + /** + * Remove Proyecto entity related by `nucleo_academico_id` from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\NucleoAcademico + */ + public function removeProyectoRelatedByNucleoAcademicoId(Proyecto $proyecto) + { + $this->proyectoRelatedByNucleoAcademicoIds->removeElement($proyecto); + + return $this; + } + + /** + * Get Proyecto entity related by `nucleo_academico_id` collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getProyectoRelatedByNucleoAcademicoIds() + { + return $this->proyectoRelatedByNucleoAcademicoIds; + } + + /** + * Add Proyecto entity related by `nucleo_academico_id1` to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\NucleoAcademico + */ + public function addProyectoRelatedByNucleoAcademicoId1(Proyecto $proyecto) + { + $this->proyectoRelatedByNucleoAcademicoId1s[] = $proyecto; + + return $this; + } + + /** + * Remove Proyecto entity related by `nucleo_academico_id1` from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\NucleoAcademico + */ + public function removeProyectoRelatedByNucleoAcademicoId1(Proyecto $proyecto) + { + $this->proyectoRelatedByNucleoAcademicoId1s->removeElement($proyecto); + + return $this; + } + + /** + * Get Proyecto entity related by `nucleo_academico_id1` collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getProyectoRelatedByNucleoAcademicoId1s() + { + return $this->proyectoRelatedByNucleoAcademicoId1s; + } + + /** + * Set CentroEstudio entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\CentroEstudio $centroEstudio + * @return \UBV\SurUbvBundle\Entity\NucleoAcademico + */ + public function setCentroEstudio(CentroEstudio $centroEstudio = null) + { + $this->centroEstudio = $centroEstudio; + + return $this; + } + + /** + * Get CentroEstudio entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\CentroEstudio + */ + public function getCentroEstudio() + { + return $this->centroEstudio; + } + + /** + * Add LineaInvestigacion entity to collection. + * + * @param \UBV\SurUbvBundle\Entity\LineaInvestigacion $lineaInvestigacion + * @return \UBV\SurUbvBundle\Entity\NucleoAcademico + */ + public function addLineaInvestigacion(LineaInvestigacion $lineaInvestigacion) + { + $this->lineaInvestigacions[] = $lineaInvestigacion; + + return $this; + } + + /** + * Remove LineaInvestigacion entity from collection. + * + * @param \UBV\SurUbvBundle\Entity\LineaInvestigacion $lineaInvestigacion + * @return \UBV\SurUbvBundle\Entity\NucleoAcademico + */ + public function removeLineaInvestigacion(LineaInvestigacion $lineaInvestigacion) + { + $this->lineaInvestigacions->removeElement($lineaInvestigacion); + + return $this; + } + + /** + * Get LineaInvestigacion entity collection. + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getLineaInvestigacions() + { + return $this->lineaInvestigacions; + } + + public function __sleep() + { + return array('id', 'descripcion', 'centro_estudio_id'); + } + + public function __toString() { + return $this->descripcion; + } +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/NucleoAcademicoRepository.php b/src/UBV/SurUbvBundle/Entity/NucleoAcademicoRepository.php new file mode 100644 index 0000000..fea7d0b --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/NucleoAcademicoRepository.php @@ -0,0 +1,15 @@ +id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of objetivo_numero. + * + * @param integer $objetivo_numero + * @return \UBV\SurUbvBundle\Entity\ObjetivoEspecifico + */ + public function setObjetivoNumero($objetivo_numero) + { + $this->objetivo_numero = $objetivo_numero; + + return $this; + } + + /** + * Get the value of objetivo_numero. + * + * @return integer + */ + public function getObjetivoNumero() + { + return $this->objetivo_numero; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\ObjetivoEspecifico + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set Proyecto entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\ObjetivoEspecifico + */ + public function setProyecto(Proyecto $proyecto = null) + { + $this->proyecto = $proyecto; + + return $this; + } + + /** + * Get Proyecto entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function getProyecto() + { + return $this->proyecto; + } + + public function __sleep() + { + return array('id', 'objetivo_numero', 'descripcion', 'proyecto_id'); + } + + public function __toString() { + return $this->descripcion; + } + + +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/ObjetivoEspecificoRepository.php b/src/UBV/SurUbvBundle/Entity/ObjetivoEspecificoRepository.php new file mode 100644 index 0000000..a774ed8 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/ObjetivoEspecificoRepository.php @@ -0,0 +1,15 @@ +objetivoPlanPatrias = new ArrayCollection(); + } + + /** + * Set the value of id. + * + * @param integer $id + * @return \UBV\SurUbvBundle\Entity\ObjetivoNivel + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\ObjetivoNivel + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add ObjetivoPlanPatria entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\ObjetivoPlanPatria $objetivoPlanPatria + * @return \UBV\SurUbvBundle\Entity\ObjetivoNivel + */ + public function addObjetivoPlanPatria(ObjetivoPlanPatria $objetivoPlanPatria) + { + $this->objetivoPlanPatrias[] = $objetivoPlanPatria; + + return $this; + } + + /** + * Remove ObjetivoPlanPatria entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\ObjetivoPlanPatria $objetivoPlanPatria + * @return \UBV\SurUbvBundle\Entity\ObjetivoNivel + */ + public function removeObjetivoPlanPatria(ObjetivoPlanPatria $objetivoPlanPatria) + { + $this->objetivoPlanPatrias->removeElement($objetivoPlanPatria); + + return $this; + } + + /** + * Get ObjetivoPlanPatria entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getObjetivoPlanPatrias() + { + return $this->objetivoPlanPatrias; + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + public function __toString() { + return $this->descripcion; + } +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/ObjetivoNivelRepository.php b/src/UBV/SurUbvBundle/Entity/ObjetivoNivelRepository.php new file mode 100644 index 0000000..d73db67 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/ObjetivoNivelRepository.php @@ -0,0 +1,15 @@ +objetivoPlanPatrias = new ArrayCollection(); + $this->proyectos = new ArrayCollection(); + } + + /** + * Set the value of id. + * + * @param integer $id + * @return \UBV\SurUbvBundle\Entity\ObjetivoPlanPatria + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of indice_objetivo. + * + * @param string $indice_objetivo + * @return \UBV\SurUbvBundle\Entity\ObjetivoPlanPatria + */ + public function setIndiceObjetivo($indice_objetivo) + { + $this->indice_objetivo = $indice_objetivo; + + return $this; + } + + /** + * Get the value of indice_objetivo. + * + * @return string + */ + public function getIndiceObjetivo() + { + return $this->indice_objetivo; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\ObjetivoPlanPatria + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add ObjetivoPlanPatria entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\ObjetivoPlanPatria $objetivoPlanPatria + * @return \UBV\SurUbvBundle\Entity\ObjetivoPlanPatria + */ + public function addObjetivoPlanPatria(ObjetivoPlanPatria $objetivoPlanPatria) + { + $this->objetivoPlanPatrias[] = $objetivoPlanPatria; + + return $this; + } + + /** + * Remove ObjetivoPlanPatria entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\ObjetivoPlanPatria $objetivoPlanPatria + * @return \UBV\SurUbvBundle\Entity\ObjetivoPlanPatria + */ + public function removeObjetivoPlanPatria(ObjetivoPlanPatria $objetivoPlanPatria) + { + $this->objetivoPlanPatrias->removeElement($objetivoPlanPatria); + + return $this; + } + + /** + * Get ObjetivoPlanPatria entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getObjetivoPlanPatrias() + { + return $this->objetivoPlanPatrias; + } + + /** + * Set ObjetivoNivel entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\ObjetivoNivel $objetivoNivel + * @return \UBV\SurUbvBundle\Entity\ObjetivoPlanPatria + */ + public function setObjetivoNivel(ObjetivoNivel $objetivoNivel = null) + { + $this->objetivoNivel = $objetivoNivel; + + return $this; + } + + /** + * Get ObjetivoNivel entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\ObjetivoNivel + */ + public function getObjetivoNivel() + { + return $this->objetivoNivel; + } + + /** + * Set ObjetivoPlanPatria entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\ObjetivoPlanPatria $objetivoPlanPatria + * @return \UBV\SurUbvBundle\Entity\ObjetivoPlanPatria + */ + public function setObjetivoPlanPatria(ObjetivoPlanPatria $objetivoPlanPatria = null) + { + $this->objetivoPlanPatria = $objetivoPlanPatria; + + return $this; + } + + /** + * Get ObjetivoPlanPatria entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\ObjetivoPlanPatria + */ + public function getObjetivoPlanPatria() + { + return $this->objetivoPlanPatria; + } + + /** + * Add Proyecto entity to collection. + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\ObjetivoPlanPatria + */ + public function addProyecto(Proyecto $proyecto) + { + $proyecto->addObjetivoPlanPatria($this); + $this->proyectos[] = $proyecto; + + return $this; + } + + /** + * Remove Proyecto entity from collection. + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\ObjetivoPlanPatria + */ + public function removeProyecto(Proyecto $proyecto) + { + $proyecto->removeObjetivoPlanPatria($this); + $this->proyectos->removeElement($proyecto); + + return $this; + } + + /** + * Get Proyecto entity collection. + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getProyectos() + { + return $this->proyectos; + } + + public function __sleep() + { + return array('id', 'indice_objetivo', 'descripcion', 'objetivo_nivel_id', 'dependencia_id'); + } + + public function getObjePlanPatria() + + { + + return $this->indice_objetivo . " " . $this->objetivoPlanPatria; + } + + + public function __toString() { + return $this->descripcion; + } +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/ObjetivoPlanPatriaRepository.php b/src/UBV/SurUbvBundle/Entity/ObjetivoPlanPatriaRepository.php new file mode 100644 index 0000000..907dd3a --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/ObjetivoPlanPatriaRepository.php @@ -0,0 +1,15 @@ +estados = new ArrayCollection(); @@ -209,4 +211,5 @@ class Pais { return $this->getDescripcion(); } + } diff --git a/src/UBV/SurUbvBundle/Entity/PaisRepository.php b/src/UBV/SurUbvBundle/Entity/PaisRepository.php new file mode 100644 index 0000000..a230632 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/PaisRepository.php @@ -0,0 +1,15 @@ +periodoEstatus; } - /** - * Add candidatos - * - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos - * @return PeriodoAcademico - */ - public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) - { - $this->candidatos[] = $candidatos; - - return $this; - } - - /** - * Remove candidatos - * - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos - */ - public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) - { - $this->candidatos->removeElement($candidatos); - } - - /** - * Get candidatos - * - * @return \Doctrine\Common\Collections\Collection - */ - public function getCandidatos() - { - return $this->candidatos; - } + } diff --git a/src/UBV/SurUbvBundle/Entity/PersonaProyecto.php b/src/UBV/SurUbvBundle/Entity/PersonaProyecto.php new file mode 100644 index 0000000..e9d9d3d --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/PersonaProyecto.php @@ -0,0 +1,370 @@ +proyectoComunidads = new ArrayCollection(); + $this->tutorEstudios = new ArrayCollection(); + $this->tutorInstitucionals = new ArrayCollection(); + } + + /** + * Set the value of id. + * + * @param integer $id + * @return \UBV\SurUbvBundle\Entity\PersonaProyecto + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of identificacion. + * + * @param integer $identificacion + * @return \UBV\SurUbvBundle\Entity\PersonaProyecto + */ + public function setIdentificacion($identificacion) + { + $this->identificacion = $identificacion; + + return $this; + } + + /** + * Get the value of identificacion. + * + * @return integer + */ + public function getIdentificacion() + { + return $this->identificacion; + } + + /** + * Set the value of nombre. + * + * @param string $nombre + * @return \UBV\SurUbvBundle\Entity\PersonaProyecto + */ + public function setNombre($nombre) + { + $this->nombre = $nombre; + + return $this; + } + + /** + * Get the value of nombre. + * + * @return string + */ + public function getNombre() + { + return $this->nombre; + } + + /** + * Set the value of apellido. + * + * @param string $apellido + * @return \UBV\SurUbvBundle\Entity\PersonaProyecto + */ + public function setApellido($apellido) + { + $this->apellido = $apellido; + + return $this; + } + + /** + * Get the value of apellido. + * + * @return string + */ + public function getApellido() + { + return $this->apellido; + } + + /** + * Set the value of correo. + * + * @param string $correo + * @return \UBV\SurUbvBundle\Entity\PersonaProyecto + */ + public function setCorreo($correo) + { + $this->correo = $correo; + + return $this; + } + + /** + * Get the value of correo. + * + * @return string + */ + public function getCorreo() + { + return $this->correo; + } + + /** + * Set the value of telefono. + * + * @param integer $telefono + * @return \UBV\SurUbvBundle\Entity\PersonaProyecto + */ + public function setTelefono($telefono) + { + $this->telefono = $telefono; + + return $this; + } + + /** + * Get the value of telefono. + * + * @return integer + */ + public function getTelefono() + { + return $this->telefono; + } + + /** + * Add ProyectoComunidad entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\ProyectoComunidad $proyectoComunidad + * @return \UBV\SurUbvBundle\Entity\PersonaProyecto + */ + public function addProyectoComunidad(ProyectoComunidad $proyectoComunidad) + { + $this->proyectoComunidads[] = $proyectoComunidad; + + return $this; + } + + /** + * Remove ProyectoComunidad entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\ProyectoComunidad $proyectoComunidad + * @return \UBV\SurUbvBundle\Entity\PersonaProyecto + */ + public function removeProyectoComunidad(ProyectoComunidad $proyectoComunidad) + { + $this->proyectoComunidads->removeElement($proyectoComunidad); + + return $this; + } + + /** + * Get ProyectoComunidad entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getProyectoComunidads() + { + return $this->proyectoComunidads; + } + + /** + * Add TutorEstudios entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\TutorEstudios $tutorEstudios + * @return \UBV\SurUbvBundle\Entity\PersonaProyecto + */ + public function addTutorEstudios(TutorEstudios $tutorEstudios) + { + $this->tutorEstudios[] = $tutorEstudios; + + return $this; + } + + /** + * Remove TutorEstudios entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\TutorEstudios $tutorEstudios + * @return \UBV\SurUbvBundle\Entity\PersonaProyecto + */ + public function removeTutorEstudios(TutorEstudios $tutorEstudios) + { + $this->tutorEstudios->removeElement($tutorEstudios); + + return $this; + } + + /** + * Get TutorEstudios entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getTutorEstudios() + { + return $this->tutorEstudios; + } + + /** + * Add TutorInstitucional entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\TutorInstitucional $tutorInstitucional + * @return \UBV\SurUbvBundle\Entity\PersonaProyecto + */ + public function addTutorInstitucional(TutorInstitucional $tutorInstitucional) + { + $this->tutorInstitucionals[] = $tutorInstitucional; + + return $this; + } + + /** + * Remove TutorInstitucional entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\TutorInstitucional $tutorInstitucional + * @return \UBV\SurUbvBundle\Entity\PersonaProyecto + */ + public function removeTutorInstitucional(TutorInstitucional $tutorInstitucional) + { + $this->tutorInstitucionals->removeElement($tutorInstitucional); + + return $this; + } + + /** + * Get TutorInstitucional entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getTutorInstitucionals() + { + return $this->tutorInstitucionals; + } + + /** + * Set TelefonoCodigoArea entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\TelefonoCodigoArea $telefonoCodigoArea + * @return \UBV\SurUbvBundle\Entity\PersonaProyecto + */ + public function setTelefonoCodigoArea(TelefonoCodigoArea $telefonoCodigoArea = null) + { + $this->telefonoCodigoArea = $telefonoCodigoArea; + + return $this; + } + + /** + * Get TelefonoCodigoArea entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\TelefonoCodigoArea + */ + public function getTelefonoCodigoArea() + { + return $this->telefonoCodigoArea; + } + + public function getVocero() + + { + + return $this->nombre . " " . $this->apellido; + } + + + + + + public function __sleep() + { + return array('id', 'identificacion', 'nombre', 'apellido', 'correo', 'telefono', 'telefono_codigo_area_id'); + } + + + +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/PersonaProyectoRepository.php b/src/UBV/SurUbvBundle/Entity/PersonaProyectoRepository.php new file mode 100644 index 0000000..a8348e4 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/PersonaProyectoRepository.php @@ -0,0 +1,15 @@ +id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set LineaInvestigacion entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\LineaInvestigacion $lineaInvestigacion + * @return \UBV\SurUbvBundle\Entity\ProgramaLineaInvestigacion + */ + public function setLineaInvestigacion(LineaInvestigacion $lineaInvestigacion = null) + { + $this->lineaInvestigacion = $lineaInvestigacion; + + return $this; + } + + /** + * Get LineaInvestigacion entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\LineaInvestigacion + */ + public function getLineaInvestigacion() + { + return $this->lineaInvestigacion; + } + + /** + * Set Programa entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Programa $programa + * @return \UBV\SurUbvBundle\Entity\ProgramaLineaInvestigacion + */ + public function setPrograma(Programa $programa = null) + { + $this->programa = $programa; + + return $this; + } + + /** + * Get Programa entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\Programa + */ + public function getPrograma() + { + return $this->programa; + } + + public function __sleep() + { + return array('id', 'linea_investigacion_id', 'programa_id'); + } +} diff --git a/src/UBV/SurUbvBundle/Entity/ProgramaLineaInvestigacionRepository.php b/src/UBV/SurUbvBundle/Entity/ProgramaLineaInvestigacionRepository.php new file mode 100644 index 0000000..0475d87 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/ProgramaLineaInvestigacionRepository.php @@ -0,0 +1,15 @@ +programas = new ArrayCollection(); @@ -202,4 +205,6 @@ class ProgramaTipo { return $this->requisitoInscripcions; } + + } diff --git a/src/UBV/SurUbvBundle/Entity/Proyecto.php b/src/UBV/SurUbvBundle/Entity/Proyecto.php new file mode 100644 index 0000000..d094a70 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/Proyecto.php @@ -0,0 +1,1999 @@ +id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of titulo. + * + * @param string $titulo + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setTitulo($titulo) + { + $this->titulo = $titulo; + + return $this; + } + + /** + * Get the value of titulo. + * + * @return string + */ + public function getTitulo() + { + return $this->titulo; + } + + /** + * Set the value of objetivo_general. + * + * @param string $objetivo_general + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setObjetivoGeneral($objetivo_general) + { + $this->objetivo_general = $objetivo_general; + + return $this; + } + + /** + * Get the value of objetivo_general. + * + * @return string + */ + public function getObjetivoGeneral() + { + return $this->objetivo_general; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set the value of beneficiarios_directos. + * + * @param string $beneficiarios_directos + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setBeneficiariosDirectos($beneficiarios_directos) + { + $this->beneficiarios_directos = $beneficiarios_directos; + + return $this; + } + + /** + * Get the value of beneficiarios_directos. + * + * @return string + */ + public function getBeneficiariosDirectos() + { + return $this->beneficiarios_directos; + } + + /** + * Set the value of beneficiarios_indirectos. + * + * @param string $beneficiarios_indirectos + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setBeneficiariosIndirectos($beneficiarios_indirectos) + { + $this->beneficiarios_indirectos = $beneficiarios_indirectos; + + return $this; + } + + /** + * Get the value of beneficiarios_indirectos. + * + * @return string + */ + public function getBeneficiariosIndirectos() + { + return $this->beneficiarios_indirectos; + } + + /** + * Set the value of fecha_inicio. + * + * @param \DateTime $fecha_inicio + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setFechaInicio($fecha_inicio) + { + $this->fecha_inicio = $fecha_inicio; + + return $this; + } + + /** + * Get the value of fecha_inicio. + * + * @return \DateTime + */ + public function getFechaInicio() + { + return $this->fecha_inicio; + } + + /** + * Set the value of fecha_fin. + * + * @param \DateTime $fecha_fin + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setFechaFin($fecha_fin) + { + $this->fecha_fin = $fecha_fin; + + return $this; + } + + /** + * Get the value of fecha_fin. + * + * @return \DateTime + */ + public function getFechaFin() + { + return $this->fecha_fin; + } + + /** + * Set the value of vinculacion_plan_patria. + * + * @param string $vinculacion_plan_patria + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setVinculacionPlanPatria($vinculacion_plan_patria) + { + $this->vinculacion_plan_patria = $vinculacion_plan_patria; + + return $this; + } + + /** + * Get the value of vinculacion_plan_patria. + * + * @return string + */ + public function getVinculacionPlanPatria() + { + return $this->vinculacion_plan_patria; + } + + /** + * Set the value of proyectos_estrategicos. + * + * @param string $proyectos_estrategicos + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setProyectosEstrategicos($proyectos_estrategicos) + { + $this->proyectos_estrategicos = $proyectos_estrategicos; + + return $this; + } + + /** + * Get the value of proyectos_estrategicos. + * + * @return string + */ + public function getProyectosEstrategicos() + { + return $this->proyectos_estrategicos; + } + + /** + * Set the value of proyectocol. + * + * @param string $proyectocol + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setProyectocol($proyectocol) + { + $this->proyectocol = $proyectocol; + + return $this; + } + + /** + * Get the value of proyectocol. + * + * @return string + */ + public function getProyectocol() + { + return $this->proyectocol; + } + + /** + * Set the value of direccion. + * + * @param string $direccion + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setDireccion($direccion) + { + $this->direccion = $direccion; + + return $this; + } + + /** + * Get the value of direccion. + * + * @return string + */ + public function getDireccion() + { + return $this->direccion; + } + + /** + * Set the value of coordenada_latitud. + * + * @param string $coordenada_latitud + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setCoordenadaLatitud($coordenada_latitud) + { + $this->coordenada_latitud = $coordenada_latitud; + + return $this; + } + + /** + * Get the value of coordenada_latitud. + * + * @return string + */ + public function getCoordenadaLatitud() + { + return $this->coordenada_latitud; + } + + /** + * Set the value of coordenada_longitud. + * + * @param string $coordenada_longitud + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setCoordenadaLongitud($coordenada_longitud) + { + $this->coordenada_longitud = $coordenada_longitud; + + return $this; + } + + /** + * Get the value of coordenada_longitud. + * + * @return string + */ + public function getCoordenadaLongitud() + { + return $this->coordenada_longitud; + } + + /** + * Set the value of fecha_registro. + * + * @param \DateTime $fecha_registro + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setFechaRegistro($fecha_registro) + { + $this->fecha_registro = $fecha_registro; + + return $this; + } + + /** + * Get the value of fecha_registro. + * + * @return \DateTime + */ + public function getFechaRegistro() + { + return $this->fecha_registro; + } + + /** + * Set the value of resumes_ruta. + * + * @param string $resumes_ruta + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setResumesRuta($resumes_ruta) + { + $this->resumes_ruta = $resumes_ruta; + + return $this; + } + + /** + * Get the value of resumes_ruta. + * + * @return string + */ + public function getResumesRuta() + { + return $this->resumes_ruta; + } + + /** + * Add AporteInstitucion entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\AporteInstitucion $aporteInstitucion + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function addAporteInstitucion(AporteInstitucion $aporteInstitucion) + { + $this->aporteInstitucions[] = $aporteInstitucion; + + return $this; + } + + /** + * Remove AporteInstitucion entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\AporteInstitucion $aporteInstitucion + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function removeAporteInstitucion(AporteInstitucion $aporteInstitucion) + { + $this->aporteInstitucions->removeElement($aporteInstitucion); + + return $this; + } + + /** + * Get AporteInstitucion entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getAporteInstitucions() + { + return $this->aporteInstitucions; + + } + + + /** + * set AporteInstitucion entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + + public function setAporteInstitucion(AporteInstitucion $aporteInstitucion = null) + { + $this->aporteInstitucion = $aporteInstitucion; + } + + + + + + + + /** + * Add DocenteProyecto entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\DocenteProyecto $docenteProyecto + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function addDocenteProyecto(DocenteProyecto $docenteProyecto) + { + $this->docenteProyectos[] = $docenteProyecto; + + return $this; + } + + /** + * Remove DocenteProyecto entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\DocenteProyecto $docenteProyecto + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function removeDocenteProyecto(DocenteProyecto $docenteProyecto) + { + $this->docenteProyectos->removeElement($docenteProyecto); + + return $this; + } + + /** + * Get DocenteProyecto entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getDocenteProyectos() + { + return $this->docenteProyectos; + } + + /** + * Add EstudianteProyecto entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\EstudianteProyecto $estudianteProyecto + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function addEstudianteProyecto(EstudianteProyecto $estudianteProyecto) + { + $this->estudianteProyectos[] = $estudianteProyecto; + + return $this; + } + + /** + * Remove EstudianteProyecto entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\EstudianteProyecto $estudianteProyecto + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function removeEstudianteProyecto(EstudianteProyecto $estudianteProyecto) + { + $this->estudianteProyectos->removeElement($estudianteProyecto); + + return $this; + } + + /** + * Get EstudianteProyecto entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getEstudianteProyectos() + { + return $this->estudianteProyectos; + } + + /** + * Add ObjetivoEspecifico entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\ObjetivoEspecifico $objetivoEspecifico + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function addObjetivoEspecifico(ObjetivoEspecifico $objetivoEspecifico) + { + $this->objetivoEspecificos[] = $objetivoEspecifico; + + return $this; + } + + /** + * Remove ObjetivoEspecifico entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\ObjetivoEspecifico $objetivoEspecifico + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function removeObjetivoEspecifico(ObjetivoEspecifico $objetivoEspecifico) + { + $this->objetivoEspecifico->removeElement($objetivoEspecifico); + + return $this; + } + + /** + * Get ObjetivoEspecifico entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getObjetivoEspecifico() + { + return $this->objetivoEspecificos; + } + + /** + * Add ProyectoComunidad entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\ProyectoComunidad $proyectoComunidad + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function addProyectoComunidad(ProyectoComunidad $proyectoComunidad) + { + $this->proyectoComunidads[] = $proyectoComunidad; + + return $this; + } + + /** + * Remove ProyectoComunidad entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\ProyectoComunidad $proyectoComunidad + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function removeProyectoComunidad(ProyectoComunidad $proyectoComunidad) + { + $this->proyectoComunidads->removeElement($proyectoComunidad); + + return $this; + } + + /** + * Get ProyectoComunidad entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getProyectoComunidads() + { + return $this->proyectoComunidads; + } + + /** + * Add ProyectoDetalle entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\ProyectoDetalle $proyectoDetalle + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function addProyectoDetalle(ProyectoDetalle $proyectoDetalle) + { + $this->proyectoDetalles[] = $proyectoDetalle; + + return $this; + } + + /** + * Remove ProyectoDetalle entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\ProyectoDetalle $proyectoDetalle + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function removeProyectoDetalle(ProyectoDetalle $proyectoDetalle) + { + $this->proyectoDetalles->removeElement($proyectoDetalle); + + return $this; + } + + /** + * Get ProyectoDetalle entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getProyectoDetalles() + { + return $this->proyectoDetalles; + } + + /** + * Add ProyectoEtapa entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\ProyectoEtapa $proyectoEtapa + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function addProyectoEtapa(ProyectoEtapa $proyectoEtapa) + { + $this->proyectoEtapas[] = $proyectoEtapa; + + return $this; + } + + /** + * Remove ProyectoEtapa entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\ProyectoEtapa $proyectoEtapa + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function removeProyectoEtapa(ProyectoEtapa $proyectoEtapa) + { + $this->proyectoEtapas->removeElement($proyectoEtapa); + + return $this; + } + + /** + * Get ProyectoEtapa entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getProyectoEtapas() + { + return $this->proyectoEtapas; + } + + /** + * Add Saber entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\Saber $saber + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function addSaber(Saber $saber) + { + $this->sabers[] = $saber; + + return $this; + } + + /** + * Remove Saber entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\Saber $saber + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function removeSaber(Saber $saber) + { + $this->sabers->removeElement($saber); + + return $this; + } + + /** + * Get Saber entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getSabers() + { + return $this->sabers; + } + + public function setSabers(Saber $saber = null) + { + $this->saber = $saber; + } + + + /** + * Add TutorInstitucional entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\TutorInstitucional $tutorInstitucional + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function addTutorInstitucional(TutorInstitucional $tutorInstitucional) + { + $this->tutorInstitucionals[] = $tutorInstitucional; + + return $this; + } + + /** + * Remove TutorInstitucional entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\TutorInstitucional $tutorInstitucional + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function removeTutorInstitucional(TutorInstitucional $tutorInstitucional) + { + $this->tutorInstitucionals->removeElement($tutorInstitucional); + + return $this; + } + + /** + * Get TutorInstitucional entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getTutorInstitucionals() + { + return $this->tutorInstitucionals; + } + + /** + * Set Metodologia entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Metodologia $metodologia + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setMetodologia(Metodologia $metodologia = null) + { + $this->metodologia = $metodologia; + + return $this; + } + + /** + * Get Metodologia entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\Metodologia + */ + public function getMetodologia() + { + return $this->metodologia; + } + + /** + * Set LineaInvestigacion entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\LineaInvestigacion $lineaInvestigacion + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setLineaInvestigacion(LineaInvestigacion $lineaInvestigacion = null) + { + $this->lineaInvestigacion = $lineaInvestigacion; + + return $this; + } + + /** + * Get LineaInvestigacion entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\LineaInvestigacion + */ + public function getLineaInvestigacion() + { + return $this->lineaInvestigacion; + } + + /** + * Set Ambito entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Ambito $ambito + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setAmbito(Ambito $ambito = null) + { + $this->ambito = $ambito; + + return $this; + } + + /** + * Get Ambito entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\Ambito + */ + public function getAmbito() + { + return $this->ambito; + } + + /** + * Set Parroquia entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Parroquia $parroquia + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setParroquia(Parroquia $parroquia = null) + { + $this->parroquia = $parroquia; + + return $this; + } + + /** + * Get Parroquia entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\Parroquia + */ + public function getParroquia() + { + return $this->parroquia; + } + + /** + * Set Ciudad entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Ciudad $ciudad + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setCiudad(Ciudad $ciudad = null) + { + $this->ciudad = $ciudad; + + return $this; + } + + /** + * Get Ciudad entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\Ciudad + */ + public function getCiudad() + { + return $this->ciudad; + } + + /** + * Set ProyectoTipo entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\ProyectoTipo $proyectoTipo + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setProyectoTipo(ProyectoTipo $proyectoTipo = null) + { + $this->proyectoTipo = $proyectoTipo; + + return $this; + } + + /** + * Get ProyectoTipo entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\ProyectoTipo + */ + public function getProyectoTipo() + { + return $this->proyectoTipo; + } + + /** + * Set ProyectoEstatus entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\ProyectoEstatus $proyectoEstatus + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setProyectoEstatus(ProyectoEstatus $proyectoEstatus = null) + { + $this->proyectoEstatus = $proyectoEstatus; + + return $this; + } + + /** + * Get ProyectoEstatus entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\ProyectoEstatus + */ + public function getProyectoEstatus() + { + return $this->proyectoEstatus; + } + + /** + * Set AldeaPrograma entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\AldeaPrograma $aldeaPrograma + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setAldeaPrograma(AldeaPrograma $aldeaPrograma = null) + { + $this->aldeaPrograma = $aldeaPrograma; + + return $this; + } + + /** + * Get AldeaPrograma entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\AldeaPrograma + */ + public function getAldeaPrograma() + { + return $this->aldeaPrograma; + } + + /** + * Set NucleoAcademico entity related by `nucleo_academico_id` (many to one). + * + * @param \UBV\SurUbvBundle\Entity\NucleoAcademico $nucleoAcademico + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setNucleoAcademicoRelatedByNucleoAcademicoId(NucleoAcademico $nucleoAcademico = null) + { + $this->nucleoAcademicoRelatedByNucleoAcademicoId = $nucleoAcademico; + + return $this; + } + + /** + * Get NucleoAcademico entity related by `nucleo_academico_id` (many to one). + * + * @return \UBV\SurUbvBundle\Entity\NucleoAcademico + */ + public function getNucleoAcademicoRelatedByNucleoAcademicoId() + { + return $this->nucleoAcademicoRelatedByNucleoAcademicoId; + } + + /** + * Set ResgistroEstatus entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\ResgistroEstatus $resgistroEstatus + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setResgistroEstatus(ResgistroEstatus $resgistroEstatus = null) + { + $this->resgistroEstatus = $resgistroEstatus; + + return $this; + } + + /** + * Get ResgistroEstatus entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\ResgistroEstatus + */ + public function getResgistroEstatus() + { + return $this->resgistroEstatus; + } + + /** + * Set NucleoAcademico entity related by `nucleo_academico_id1` (many to one). + * + * @param \UBV\SurUbvBundle\Entity\NucleoAcademico $nucleoAcademico + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setNucleoAcademicoRelatedByNucleoAcademicoId1(NucleoAcademico $nucleoAcademico = null) + { + $this->nucleoAcademicoRelatedByNucleoAcademicoId1 = $nucleoAcademico; + + return $this; + } + + /** + * Get NucleoAcademico entity related by `nucleo_academico_id1` (many to one). + * + * @return \UBV\SurUbvBundle\Entity\NucleoAcademico + */ + public function getNucleoAcademicoRelatedByNucleoAcademicoId1() + { + return $this->nucleoAcademicoRelatedByNucleoAcademicoId1; + } + + /** + * Add ObjetivoPlanPatria entity to collection. + * + * @param \UBV\SurUbvBundle\Entity\ObjetivoPlanPatria $objetivoPlanPatria + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function addObjetivoPlanPatria(ObjetivoPlanPatria $objetivoPlanPatria) + { + $this->objetivoPlanPatrias[] = $objetivoPlanPatria; + + return $this; + } + + /** + * Remove ObjetivoPlanPatria entity from collection. + * + * @param \UBV\SurUbvBundle\Entity\ObjetivoPlanPatria $objetivoPlanPatria + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function removeObjetivoPlanPatria(ObjetivoPlanPatria $objetivoPlanPatria) + { + $this->objetivoPlanPatrias->removeElement($objetivoPlanPatria); + + return $this; + } + + /** + * Get ObjetivoPlanPatria entity collection. + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getObjetivoPlanPatrias() + { + return $this->objetivoPlanPatrias; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /** + * Set ActividadEstatus entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\ActividadEstatus $actividadEstatus + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setActividadEstatus(ActividadEstatus $actividadEstatus = null) + { + $this->actividadEstatus = $actividadEstatus; + + return $this; + } + + /** + * Get ActividadEstatus entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\ActividadEstatus + */ + public function getActividadEstatus() + { + return $this->actividadEstatus; + } + + + + /** + * Set ActividadEtapa entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\ActividadEtapa $actividadEtapa + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setActividadEtapa(ActividadEtapa $actividadEtapa = null) + { + $this->actividadEtapa = $actividadEtapa; + + return $this; + } + + /** + * Get ActividadEtapa entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\ActividadEtapa + */ + public function getActividadEtapa() + { + return $this->actividadEtapa; + } + + + + + /** + * Set ComunidadTipo entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\ComunidadTipo $comunidadTipo + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setComunidadTipo(ComunidadTipo $comunidadTipo = null) + { + $this->comunidadTipo = $comunidadTipo; + + return $this; + } + + /** + * Get ComunidadTipo entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\ComunidadTipo + */ + public function getComunidadTipo() + { + return $this->comunidadTipo; + } + + + + + + /** + * Set Comunidad entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Comunidad $comunidad + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setComunidad(Comunidad $comunidad = null) + { + $this->comunidad = $comunidad; + + return $this; + } + + /** + * Get Comunidad entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\Comunidad + */ + public function getComunidad() + { + return $this->comunidad; + } + + + + /** + * Set PersonaProyecto entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\PersonaProyecto $personaProyecto + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setPersonaProyecto(PersonaProyecto $personaProyecto = null) + { + $this->personaProyecto = $personaProyecto; + + return $this; + } + + /** + * Get PersonaProyecto entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\PersonaProyecto + */ + public function getPersonaProyecto() + { + return $this->personaProyecto; + } + + + + /** + * Set InstitucionTipo entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\InstitucionTipo $institucionTipo + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setInstitucionTipo(InstitucionTipo $institucionTipo = null) + { + $this->institucionTipo = $institucionTipo; + + return $this; + } + + /** + * Get InstitucionTipo entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\InstitucionTipo + */ + public function getInstitucionTipo() + { + return $this->institucionTipo; + } + + + + /** + * Set Pais entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Pais $pais + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setPais(Pais $pais = null) + { + $this->pais = $pais; + + return $this; + } + + /** + * Get Pais entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\Pais + */ + public function getPais() + { + return $this->pais; + } + + + /** + * Set Estado entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Estado $estado + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setEstado(Estado $estado = null) + { + $this->estado = $estado; + + return $this; + } + + /** + * Get Estado entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\Estado + */ + public function getEstado() + { + return $this->estado; + } + + +/** + * Set Municipio entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Municipio $municipio + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setMunicipio(Municipio $municipio = null) + { + $this->municipio = $municipio; + + return $this; + } + + /** + * Get Municipio entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\Municipio + */ + public function getMunicipio() + { + return $this->municipio; + } + + +/** + * Set SaberTipo entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\SaberTipo $saberTipo + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setSaberTipo(SaberTipo $saberTipo = null) + { + $this->saberTipo = $saberTipo; + + return $this; + } + + /** + * Get SaberTipo entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\SaberTipo + */ + public function getSaberTipo() + { + return $this->saberTipo; + } + + +/** + * Set Ambiente entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Ambiente $ambiente + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setAmbiente(Ambiente $ambiente = null) + { + $this->ambiente = $ambiente; + + return $this; + } + + /** + * Get Ambiente entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\Ambiente + */ + public function getAmbiente() + { + return $this->ambiente; + } + + + + /** + * Set ProgramaTipo entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\ProgramaTipo $programaTipo + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setProgramaTipo(ProgramaTipo $programaTipo = null) + { + $this->programaTipo = $programaTipo; + + return $this; + } + + /** + * Get ProgramaTipo entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\ProyectoTipo + */ + public function getProgramaTipo() + { + return $this->programaTipo; + } + + + + + + /** + * Set Institucion entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Institucion $institucion + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setInstitucion(Institucion $institucion = null) + { + $this->institucion = $institucion; + + return $this; + } + + /** + * Get Institucion entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\ProyectoTipo + */ + public function getInstitucion() + { + return $this->institucion; + } + + + + + /** + * Set AporteTipo entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\AporteTipo $aporteTipo + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setAporteTipo(AporteTipo $aporteTipo = null) + { + $this->aporteTipo = $aporteTipo; + + return $this; + } + + /** + * Get AporteTipo entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\AporteTipo + */ + public function getAporteTipo() + { + return $this->aporteTipo; + } + + + + /** + * Set DocenteProyecto entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\DocenteProyecto $docenteProyecto + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setDocenteProyecto(DocenteProyecto $docenteProyecto = null) + { + $this->docenteProyecto = $docenteProyecto; + + return $this; + } + + /** + * Get DocenteProyecto entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\DocenteProyecto + */ + public function getDocenteProyecto() + { + return $this->docenteProyecto; + } + + + /** + * Set InstitucionEducativa entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\InstitucionEducativa $institucionEducativa + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setInstitucionEducativa(InstitucionEducativa $institucionEducativa = null) + { + $this->institucionEducativa = $institucionEducativa; + + return $this; + } + + /** + * Get InstitucionEducativa entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\InstitucionEducativa + */ + public function getInstitucionEducativa() + { + return $this->institucionEducativa; + } + + + /** + * Set MetodologiaTipo entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\MetodologiaTipo $metodologiaTipo + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function setMetodologiaTipo(MetodologiaTipo $metodologiaTipo = null) + { + $this->metodologiaTipo = $metodologiaTipo; + + return $this; + } + + /** + * Get MetodologiaTipo entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\MetodologiaTipo + */ + public function getMetodologiaTipo() + { + return $this->metodologiaTipo; + } + + + + + public function __toString() { + return $this->descripcion; + } + + + + + + + + + + + + + +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/ProyectoComunidad.php b/src/UBV/SurUbvBundle/Entity/ProyectoComunidad.php new file mode 100644 index 0000000..d4eeb1d --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/ProyectoComunidad.php @@ -0,0 +1,144 @@ +id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set Proyecto entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\ProyectoComunidad + */ + public function setProyecto(Proyecto $proyecto = null) + { + $this->proyecto = $proyecto; + + return $this; + } + + /** + * Get Proyecto entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function getProyecto() + { + return $this->proyecto; + } + + /** + * Set Comunidad entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Comunidad $comunidad + * @return \UBV\SurUbvBundle\Entity\ProyectoComunidad + */ + public function setComunidad(Comunidad $comunidad = null) + { + $this->comunidad = $comunidad; + + return $this; + } + + /** + * Get Comunidad entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\Comunidad + */ + public function getComunidad() + { + return $this->comunidad; + } + + /** + * Set PersonaProyecto entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\PersonaProyecto $personaProyecto + * @return \UBV\SurUbvBundle\Entity\ProyectoComunidad + */ + public function setPersonaProyecto(PersonaProyecto $personaProyecto = null) + { + $this->personaProyecto = $personaProyecto; + + return $this; + } + + /** + * Get PersonaProyecto entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\PersonaProyecto + */ + public function getPersonaProyecto() + { + return $this->personaProyecto; + } + + + + + public function __sleep() + { + return array('id', 'proyecto_id', 'comunidad_id', 'persona_proyecto_id'); + } +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/ProyectoComunidadRepository.php b/src/UBV/SurUbvBundle/Entity/ProyectoComunidadRepository.php new file mode 100644 index 0000000..35240c0 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/ProyectoComunidadRepository.php @@ -0,0 +1,15 @@ +ejeFormacions = new ArrayCollection(); + } + + /** + * Set the value of id. + * + * @param integer $id + * @return \UBV\SurUbvBundle\Entity\ProyectoDetalle + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of numero_estudiantes. + * + * @param integer $numero_estudiantes + * @return \UBV\SurUbvBundle\Entity\ProyectoDetalle + */ + public function setNumeroEstudiantes($numero_estudiantes) + { + $this->numero_estudiantes = $numero_estudiantes; + + return $this; + } + + /** + * Get the value of numero_estudiantes. + * + * @return integer + */ + public function getNumeroEstudiantes() + { + return $this->numero_estudiantes; + } + + /** + * Set the value of impacto. + * + * @param string $impacto + * @return \UBV\SurUbvBundle\Entity\ProyectoDetalle + */ + public function setImpacto($impacto) + { + $this->impacto = $impacto; + + return $this; + } + + /** + * Get the value of impacto. + * + * @return string + */ + public function getImpacto() + { + return $this->impacto; + } + + /** + * Set the value of alcance. + * + * @param string $alcance + * @return \UBV\SurUbvBundle\Entity\ProyectoDetalle + */ + public function setAlcance($alcance) + { + $this->alcance = $alcance; + + return $this; + } + + /** + * Get the value of alcance. + * + * @return string + */ + public function getAlcance() + { + return $this->alcance; + } + + /** + * Set the value of metas_produccion. + * + * @param string $metas_produccion + * @return \UBV\SurUbvBundle\Entity\ProyectoDetalle + */ + public function setMetasProduccion($metas_produccion) + { + $this->metas_produccion = $metas_produccion; + + return $this; + } + + /** + * Get the value of metas_produccion. + * + * @return string + */ + public function getMetasProduccion() + { + return $this->metas_produccion; + } + + /** + * Set Proyecto entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\ProyectoDetalle + */ + public function setProyecto(Proyecto $proyecto = null) + { + $this->proyecto = $proyecto; + + return $this; + } + + /** + * Get Proyecto entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function getProyecto() + { + return $this->proyecto; + } + + /** + * Set Trayecto entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Trayecto $trayecto + * @return \UBV\SurUbvBundle\Entity\ProyectoDetalle + */ + public function setTrayecto(Trayecto $trayecto = null) + { + $this->trayecto = $trayecto; + + return $this; + } + + /** + * Get Trayecto entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\Trayecto + */ + public function getTrayecto() + { + return $this->trayecto; + } + + /** + * Add EjeFormacion entity to collection. + * + * @param \UBV\SurUbvBundle\Entity\EjeFormacion $ejeFormacion + * @return \UBV\SurUbvBundle\Entity\ProyectoDetalle + */ + public function addEjeFormacion(EjeFormacion $ejeFormacion) + { + $this->ejeFormacions[] = $ejeFormacion; + + return $this; + } + + /** + * Remove EjeFormacion entity from collection. + * + * @param \UBV\SurUbvBundle\Entity\EjeFormacion $ejeFormacion + * @return \UBV\SurUbvBundle\Entity\ProyectoDetalle + */ + public function removeEjeFormacion(EjeFormacion $ejeFormacion) + { + $this->ejeFormacions->removeElement($ejeFormacion); + + return $this; + } + + /** + * Get EjeFormacion entity collection. + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getEjeFormacions() + { + return $this->ejeFormacions; + } + + public function __sleep() + { + return array('id', 'numero_estudiantes', 'impacto', 'alcance', 'metas_produccion', 'proyecto_id', 'trayecto_id'); + } +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/ProyectoDetalleRepository.php b/src/UBV/SurUbvBundle/Entity/ProyectoDetalleRepository.php new file mode 100644 index 0000000..4354f67 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/ProyectoDetalleRepository.php @@ -0,0 +1,15 @@ +id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set ProyectoDetalle entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\ProyectoDetalle $proyectoDetalle + * @return \UBV\SurUbvBundle\Entity\ProyectoEjeFormacion + */ + public function setProyectoDetalle(ProyectoDetalle $proyectoDetalle = null) + { + $this->proyectoDetalle = $proyectoDetalle; + + return $this; + } + + /** + * Get ProyectoDetalle entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\ProyectoDetalle + */ + public function getProyectoDetalle() + { + return $this->proyectoDetalle; + } + + /** + * Set EjeFormacion entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\EjeFormacion $ejeFormacion + * @return \UBV\SurUbvBundle\Entity\ProyectoEjeFormacion + */ + public function setEjeFormacion(EjeFormacion $ejeFormacion = null) + { + $this->ejeFormacion = $ejeFormacion; + + return $this; + } + + /** + * Get EjeFormacion entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\EjeFormacion + */ + public function getEjeFormacion() + { + return $this->ejeFormacion; + } + + public function __sleep() + { + return array('id', 'proyecto_detalle_id', 'eje_formacion_id'); + } +} diff --git a/src/UBV/SurUbvBundle/Entity/ProyectoEjeFormacionRepository.php b/src/UBV/SurUbvBundle/Entity/ProyectoEjeFormacionRepository.php new file mode 100644 index 0000000..b9a8753 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/ProyectoEjeFormacionRepository.php @@ -0,0 +1,15 @@ +proyectos = new ArrayCollection(); + } + + /** + * Set the value of id. + * + * @param integer $id + * @return \UBV\SurUbvBundle\Entity\ProyectoEstatus + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\ProyectoEstatus + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add Proyecto entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\ProyectoEstatus + */ + public function addProyecto(Proyecto $proyecto) + { + $this->proyectos[] = $proyecto; + + return $this; + } + + /** + * Remove Proyecto entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\ProyectoEstatus + */ + public function removeProyecto(Proyecto $proyecto) + { + $this->proyectos->removeElement($proyecto); + + return $this; + } + + /** + * Get Proyecto entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getProyectos() + { + return $this->proyectos; + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + public function __toString() { + return $this->descripcion; + } +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/ProyectoEstatusRepository.php b/src/UBV/SurUbvBundle/Entity/ProyectoEstatusRepository.php new file mode 100644 index 0000000..2f44fea --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/ProyectoEstatusRepository.php @@ -0,0 +1,15 @@ +actividadEtapas = new ArrayCollection(); + $this->requerimientoProyectos = new ArrayCollection(); + } + + /** + * Set the value of id. + * + * @param integer $id + * @return \UBV\SurUbvBundle\Entity\ProyectoEtapa + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\ProyectoEtapa + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add ActividadEtapa entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\ActividadEtapa $actividadEtapa + * @return \UBV\SurUbvBundle\Entity\ProyectoEtapa + */ + public function addActividadEtapa(ActividadEtapa $actividadEtapa) + { + $this->actividadEtapas[] = $actividadEtapa; + + return $this; + } + + /** + * Remove ActividadEtapa entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\ActividadEtapa $actividadEtapa + * @return \UBV\SurUbvBundle\Entity\ProyectoEtapa + */ + public function removeActividadEtapa(ActividadEtapa $actividadEtapa) + { + $this->actividadEtapas->removeElement($actividadEtapa); + + return $this; + } + + /** + * Get ActividadEtapa entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getActividadEtapas() + { + return $this->actividadEtapas; + } + + /** + * Add RequerimientoProyecto entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\RequerimientoProyecto $requerimientoProyecto + * @return \UBV\SurUbvBundle\Entity\ProyectoEtapa + */ + public function addRequerimientoProyecto(RequerimientoProyecto $requerimientoProyecto) + { + $this->requerimientoProyectos[] = $requerimientoProyecto; + + return $this; + } + + /** + * Remove RequerimientoProyecto entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\RequerimientoProyecto $requerimientoProyecto + * @return \UBV\SurUbvBundle\Entity\ProyectoEtapa + */ + public function removeRequerimientoProyecto(RequerimientoProyecto $requerimientoProyecto) + { + $this->requerimientoProyectos->removeElement($requerimientoProyecto); + + return $this; + } + + /** + * Get RequerimientoProyecto entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getRequerimientoProyectos() + { + return $this->requerimientoProyectos; + } + + /** + * Set Proyecto entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\ProyectoEtapa + */ + public function setProyecto(Proyecto $proyecto = null) + { + $this->proyecto = $proyecto; + + return $this; + } + + /** + * Get Proyecto entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function getProyecto() + { + return $this->proyecto; + } + + public function __sleep() + { + return array('id', 'descripcion', 'proyecto_id'); + } + + + +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/ProyectoEtapaRepository.php b/src/UBV/SurUbvBundle/Entity/ProyectoEtapaRepository.php new file mode 100644 index 0000000..eb00d6e --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/ProyectoEtapaRepository.php @@ -0,0 +1,15 @@ +id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set ObjetivoPlanPatria entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\ObjetivoPlanPatria $objetivoPlanPatria + * @return \UBV\SurUbvBundle\Entity\ProyectoPlanPatria + */ + public function setObjetivoPlanPatria(ObjetivoPlanPatria $objetivoPlanPatria = null) + { + $this->objetivoPlanPatria = $objetivoPlanPatria; + + return $this; + } + + /** + * Get ObjetivoPlanPatria entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\ObjetivoPlanPatria + */ + public function getObjetivoPlanPatria() + { + return $this->objetivoPlanPatria; + } + + /** + * Set Proyecto entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\ProyectoPlanPatria + */ + public function setProyecto(Proyecto $proyecto = null) + { + $this->proyecto = $proyecto; + + return $this; + } + + /** + * Get Proyecto entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function getProyecto() + { + return $this->proyecto; + } + + public function __sleep() + { + return array('id', 'objetivo_plan_patria_id', 'proyecto_id'); + } +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/ProyectoPlanPatriaRepository.php b/src/UBV/SurUbvBundle/Entity/ProyectoPlanPatriaRepository.php new file mode 100644 index 0000000..381aea1 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/ProyectoPlanPatriaRepository.php @@ -0,0 +1,15 @@ +proyectos = new ArrayCollection(); + } + + /** + * Set the value of id. + * + * @param integer $id + * @return \UBV\SurUbvBundle\Entity\ProyectoTipo + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\ProyectoTipo + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add Proyecto entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\ProyectoTipo + */ + public function addProyecto(Proyecto $proyecto) + { + $this->proyectos[] = $proyecto; + + return $this; + } + + /** + * Remove Proyecto entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\ProyectoTipo + */ + public function removeProyecto(Proyecto $proyecto) + { + $this->proyectos->removeElement($proyecto); + + return $this; + } + + /** + * Get Proyecto entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getProyectos() + { + return $this->proyectos; + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + public function __toString() { + return $this->descripcion; + } +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/ProyectoTipoRepository.php b/src/UBV/SurUbvBundle/Entity/ProyectoTipoRepository.php new file mode 100644 index 0000000..3c5bb8e --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/ProyectoTipoRepository.php @@ -0,0 +1,15 @@ +id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of concepto. + * + * @param string $concepto + * @return \UBV\SurUbvBundle\Entity\RequerimientoProyecto + */ + public function setConcepto($concepto) + { + $this->concepto = $concepto; + + return $this; + } + + /** + * Get the value of concepto. + * + * @return string + */ + public function getConcepto() + { + return $this->concepto; + } + + /** + * Set the value of cantidad. + * + * @param integer $cantidad + * @return \UBV\SurUbvBundle\Entity\RequerimientoProyecto + */ + public function setCantidad($cantidad) + { + $this->cantidad = $cantidad; + + return $this; + } + + /** + * Get the value of cantidad. + * + * @return integer + */ + public function getCantidad() + { + return $this->cantidad; + } + + /** + * Set the value of costo. + * + * @param string $costo + * @return \UBV\SurUbvBundle\Entity\RequerimientoProyecto + */ + public function setCosto($costo) + { + $this->costo = $costo; + + return $this; + } + + /** + * Get the value of costo. + * + * @return string + */ + public function getCosto() + { + return $this->costo; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\RequerimientoProyecto + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set the value of proposito. + * + * @param string $proposito + * @return \UBV\SurUbvBundle\Entity\RequerimientoProyecto + */ + public function setProposito($proposito) + { + $this->proposito = $proposito; + + return $this; + } + + /** + * Get the value of proposito. + * + * @return string + */ + public function getProposito() + { + return $this->proposito; + } + + /** + * Set ProyectoEtapa entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\ProyectoEtapa $proyectoEtapa + * @return \UBV\SurUbvBundle\Entity\RequerimientoProyecto + */ + public function setProyectoEtapa(ProyectoEtapa $proyectoEtapa = null) + { + $this->proyectoEtapa = $proyectoEtapa; + + return $this; + } + + /** + * Get ProyectoEtapa entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\ProyectoEtapa + */ + public function getProyectoEtapa() + { + return $this->proyectoEtapa; + } + + /** + * Set AporteTipo entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\AporteTipo $aporteTipo + * @return \UBV\SurUbvBundle\Entity\RequerimientoProyecto + */ + public function setAporteTipo(AporteTipo $aporteTipo = null) + { + $this->aporteTipo = $aporteTipo; + + return $this; + } + + /** + * Get AporteTipo entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\AporteTipo + */ + public function getAporteTipo() + { + return $this->aporteTipo; + } + + public function __sleep() + { + return array('id', 'proyecto_etapa_id', 'concepto', 'cantidad', 'costo', 'descripcion', 'proposito', 'aporte_tipo_id'); + } +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/RequerimientoProyectoRepository.php b/src/UBV/SurUbvBundle/Entity/RequerimientoProyectoRepository.php new file mode 100644 index 0000000..63f26fb --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/RequerimientoProyectoRepository.php @@ -0,0 +1,15 @@ +proyectos = new ArrayCollection(); + } + + /** + * Set the value of id. + * + * @param integer $id + * @return \UBV\SurUbvBundle\Entity\ResgistroEstatus + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\ResgistroEstatus + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add Proyecto entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\ResgistroEstatus + */ + public function addProyecto(Proyecto $proyecto) + { + $this->proyectos[] = $proyecto; + + return $this; + } + + /** + * Remove Proyecto entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\ResgistroEstatus + */ + public function removeProyecto(Proyecto $proyecto) + { + $this->proyectos->removeElement($proyecto); + + return $this; + } + + /** + * Get Proyecto entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getProyectos() + { + return $this->proyectos; + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + public function __toString() { + return $this->descripcion; + } +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/ResgistroEstatusRepository.php b/src/UBV/SurUbvBundle/Entity/ResgistroEstatusRepository.php new file mode 100644 index 0000000..80d71eb --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/ResgistroEstatusRepository.php @@ -0,0 +1,15 @@ +id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of cantidad. + * + * @param integer $cantidad + * @return \UBV\SurUbvBundle\Entity\Saber + */ + public function setCantidad($cantidad) + { + $this->cantidad = $cantidad; + + return $this; + } + + /** + * Get the value of cantidad. + * + * @return integer + */ + public function getCantidad() + { + return $this->cantidad; + } + + /** + * Set Proyecto entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\Saber + */ + public function setProyecto(Proyecto $proyecto = null) + { + $this->proyecto = $proyecto; + + return $this; + } + + /** + * Get Proyecto entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function getProyecto() + { + return $this->proyecto; + } + + /** + * Set SaberTipo entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\SaberTipo $saberTipo + * @return \UBV\SurUbvBundle\Entity\Saber + */ + public function setSaberTipo(SaberTipo $saberTipo = null) + { + $this->saberTipo = $saberTipo; + + return $this; + } + + /** + * Get SaberTipo entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\SaberTipo + */ + public function getSaberTipo() + { + return $this->saberTipo; + } + + public function __sleep() + { + return array('id', 'cantidad', 'proyecto_id', 'saber_tipo_id'); + } + + public function __toString() { + return $this->cantidad; + } + + + +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/SaberRepository.php b/src/UBV/SurUbvBundle/Entity/SaberRepository.php new file mode 100644 index 0000000..f043bb3 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/SaberRepository.php @@ -0,0 +1,15 @@ +sabers = new ArrayCollection(); + } + + /** + * Set the value of id. + * + * @param integer $id + * @return \UBV\SurUbvBundle\Entity\SaberTipo + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\SaberTipo + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add Saber entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\Saber $saber + * @return \UBV\SurUbvBundle\Entity\SaberTipo + */ + public function addSaber(Saber $saber) + { + $this->sabers[] = $saber; + + return $this; + } + + /** + * Remove Saber entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\Saber $saber + * @return \UBV\SurUbvBundle\Entity\SaberTipo + */ + public function removeSaber(Saber $saber) + { + $this->sabers->removeElement($saber); + + return $this; + } + + /** + * Get Saber entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getSabers() + { + return $this->sabers; + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + public function __toString() { + return $this->descripcion; + } + + + +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/SaberTipoRepository.php b/src/UBV/SurUbvBundle/Entity/SaberTipoRepository.php new file mode 100644 index 0000000..da5b80b --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/SaberTipoRepository.php @@ -0,0 +1,15 @@ +id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of año_grado. + * + * @param string $año_grado + * @return \UBV\SurUbvBundle\Entity\TutorEstudios + */ + public function setAñoGrado($año_grado) + { + $this->año_grado = $año_grado; + + return $this; + } + + /** + * Get the value of año_grado. + * + * @return string + */ + public function getAñoGrado() + { + return $this->año_grado; + } + + /** + * Set InstitucionEducativa entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\InstitucionEducativa $institucionEducativa + * @return \UBV\SurUbvBundle\Entity\TutorEstudios + */ + public function setInstitucionEducativa(InstitucionEducativa $institucionEducativa = null) + { + $this->institucionEducativa = $institucionEducativa; + + return $this; + } + + /** + * Get InstitucionEducativa entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\InstitucionEducativa + */ + public function getInstitucionEducativa() + { + return $this->institucionEducativa; + } + + /** + * Set GradoAcademico entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\GradoAcademico $gradoAcademico + * @return \UBV\SurUbvBundle\Entity\TutorEstudios + */ + public function setGradoAcademico(GradoAcademico $gradoAcademico = null) + { + $this->gradoAcademico = $gradoAcademico; + + return $this; + } + + /** + * Get GradoAcademico entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\GradoAcademico + */ + public function getGradoAcademico() + { + return $this->gradoAcademico; + } + + /** + * Set PersonaProyecto entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\PersonaProyecto $personaProyecto + * @return \UBV\SurUbvBundle\Entity\TutorEstudios + */ + public function setPersonaProyecto(PersonaProyecto $personaProyecto = null) + { + $this->personaProyecto = $personaProyecto; + + return $this; + } + + /** + * Get PersonaProyecto entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\PersonaProyecto + */ + public function getPersonaProyecto() + { + return $this->personaProyecto; + } + + public function __sleep() + { + return array('id', 'año_grado', 'institucion_educativa_id', 'grado_academico_id', 'persona_proyecto_id'); + } +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/TutorEstudiosRepository.php b/src/UBV/SurUbvBundle/Entity/TutorEstudiosRepository.php new file mode 100644 index 0000000..fad2ac5 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/TutorEstudiosRepository.php @@ -0,0 +1,15 @@ +id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of carta_aceptacion_ruta. + * + * @param string $carta_aceptacion_ruta + * @return \UBV\SurUbvBundle\Entity\TutorInstitucional + */ + public function setCartaAceptacionRuta($carta_aceptacion_ruta) + { + $this->carta_aceptacion_ruta = $carta_aceptacion_ruta; + + return $this; + } + + /** + * Get the value of carta_aceptacion_ruta. + * + * @return string + */ + public function getCartaAceptacionRuta() + { + return $this->carta_aceptacion_ruta; + } + + /** + * Set Proyecto entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto + * @return \UBV\SurUbvBundle\Entity\TutorInstitucional + */ + public function setProyecto(Proyecto $proyecto = null) + { + $this->proyecto = $proyecto; + + return $this; + } + + /** + * Get Proyecto entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\Proyecto + */ + public function getProyecto() + { + return $this->proyecto; + } + + /** + * Set PersonaProyecto entity (many to one). + * + * @param \UBV\SurUbvBundle\Entity\PersonaProyecto $personaProyecto + * @return \UBV\SurUbvBundle\Entity\TutorInstitucional + */ + public function setPersonaProyecto(PersonaProyecto $personaProyecto = null) + { + $this->personaProyecto = $personaProyecto; + + return $this; + } + + /** + * Get PersonaProyecto entity (many to one). + * + * @return \UBV\SurUbvBundle\Entity\PersonaProyecto + */ + public function getPersonaProyecto() + { + return $this->personaProyecto; + } + + + + + public function __sleep() + { + return array('id', 'proyecto_id', 'persona_proyecto_id', 'carta_aceptacion_ruta'); + } + + + + + + + + + + + + + + + + + + +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/TutorInstitucionalRepository.php b/src/UBV/SurUbvBundle/Entity/TutorInstitucionalRepository.php new file mode 100644 index 0000000..9b46f4c --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/TutorInstitucionalRepository.php @@ -0,0 +1,15 @@ +docenteProyectos = new ArrayCollection(); + $this->estudianteProyectos = new ArrayCollection(); + } + + /** + * Set the value of id. + * + * @param integer $id + * @return \UBV\SurUbvBundle\Entity\VinculacionProyecto + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * Get the value of id. + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set the value of descripcion. + * + * @param string $descripcion + * @return \UBV\SurUbvBundle\Entity\VinculacionProyecto + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get the value of descripcion. + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add DocenteProyecto entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\DocenteProyecto $docenteProyecto + * @return \UBV\SurUbvBundle\Entity\VinculacionProyecto + */ + public function addDocenteProyecto(DocenteProyecto $docenteProyecto) + { + $this->docenteProyectos[] = $docenteProyecto; + + return $this; + } + + /** + * Remove DocenteProyecto entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\DocenteProyecto $docenteProyecto + * @return \UBV\SurUbvBundle\Entity\VinculacionProyecto + */ + public function removeDocenteProyecto(DocenteProyecto $docenteProyecto) + { + $this->docenteProyectos->removeElement($docenteProyecto); + + return $this; + } + + /** + * Get DocenteProyecto entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getDocenteProyectos() + { + return $this->docenteProyectos; + } + + /** + * Add EstudianteProyecto entity to collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\EstudianteProyecto $estudianteProyecto + * @return \UBV\SurUbvBundle\Entity\VinculacionProyecto + */ + public function addEstudianteProyecto(EstudianteProyecto $estudianteProyecto) + { + $this->estudianteProyectos[] = $estudianteProyecto; + + return $this; + } + + /** + * Remove EstudianteProyecto entity from collection (one to many). + * + * @param \UBV\SurUbvBundle\Entity\EstudianteProyecto $estudianteProyecto + * @return \UBV\SurUbvBundle\Entity\VinculacionProyecto + */ + public function removeEstudianteProyecto(EstudianteProyecto $estudianteProyecto) + { + $this->estudianteProyectos->removeElement($estudianteProyecto); + + return $this; + } + + /** + * Get EstudianteProyecto entity collection (one to many). + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getEstudianteProyectos() + { + return $this->estudianteProyectos; + } + + public function __sleep() + { + return array('id', 'descripcion'); + } +} \ No newline at end of file diff --git a/src/UBV/SurUbvBundle/Entity/VinculacionProyectoRepository.php b/src/UBV/SurUbvBundle/Entity/VinculacionProyectoRepository.php new file mode 100644 index 0000000..d2beef7 --- /dev/null +++ b/src/UBV/SurUbvBundle/Entity/VinculacionProyectoRepository.php @@ -0,0 +1,15 @@ +add('descripcion'); + ->add('descripcion', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:ActividadEstatus', + 'label' =>"Estatus del Proyectos DUDA", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + ; + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\ActividadEstatus' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_actividadestatus'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/ActividadEtapaType.php b/src/UBV/SurUbvBundle/Form/ActividadEtapaType.php new file mode 100644 index 0000000..86517d8 --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/ActividadEtapaType.php @@ -0,0 +1,90 @@ +add('descripcion') + ->add('descripcion', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'Descripcion de la Actividad', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control','placeholder'=>'Maximo 250 Caracteres'), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('tiempo_ejecucion') + ->add('tiempo_ejecucion', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'Duracion de la Actividad', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control','placeholder'=>'Un Numero en Semanas '), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('proyectoEtapa') + ->add('proyectoEtapa', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:ProyectoEtapa', + 'label' =>"Etapa del Proyectos DUDA", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + + #->add('actividadEstatus') + ->add('actividadEstatus', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:ActividadEstatus', + 'label' =>"Estatus de la Actividad", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + + + ; + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\ActividadEtapa' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_actividadetapa'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/AldeaMallaCurriculaType.php b/src/UBV/SurUbvBundle/Form/AldeaMallaCurriculaType.php new file mode 100644 index 0000000..ae7e203 --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/AldeaMallaCurriculaType.php @@ -0,0 +1,38 @@ +add('estatus')->add('aldea')->add('mallaCurricular')->add('turno'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\AldeaMallaCurricula' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_aldeamallacurricula'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/AldeaProgramaType.php b/src/UBV/SurUbvBundle/Form/AldeaProgramaType.php new file mode 100644 index 0000000..8561aaf --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/AldeaProgramaType.php @@ -0,0 +1,38 @@ +add('codigo_opsu')->add('aldea')->add('programa'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\AldeaPrograma' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_aldeaprograma'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/AldeaTelefonoType.php b/src/UBV/SurUbvBundle/Form/AldeaTelefonoType.php new file mode 100644 index 0000000..5b99b9e --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/AldeaTelefonoType.php @@ -0,0 +1,38 @@ +add('descripcion')->add('telefonoCodigoArea')->add('aldea'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\AldeaTelefono' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_aldeatelefono'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/AldeaType.php b/src/UBV/SurUbvBundle/Form/AldeaType.php index 609338b..3f2f836 100644 --- a/src/UBV/SurUbvBundle/Form/AldeaType.php +++ b/src/UBV/SurUbvBundle/Form/AldeaType.php @@ -16,9 +16,10 @@ use UBV\SurUbvBundle\Entity\Pais; use UBV\SurUbvBundle\Entity\Estado; use UBV\SurUbvBundle\Entity\Municipio; use UBV\SurUbvBundle\Entity\Ambiente; +use UBV\SurUbvBundle\Entity\Parroquia; use UBV\SurUbvBundle\Entity\EjeMunicipal; use UBV\SurUbvBundle\Entity\EjeRegional; - +use Symfony\Component\Validator\Constraints\NotBlank; class AldeaType extends AbstractType { /** @@ -40,7 +41,17 @@ class AldeaType extends AbstractType ->addEventSubscriber(new AddAmbienteFieldSubscriber($propertyPathToAmbiente)) ->addEventSubscriber(new AddEjeRegionalFieldSubscriber($propertyPathToAmbiente)) ->addEventSubscriber(new AddEjeMunicipalFieldSubscriber($propertyPathToAmbiente)) - ->add('descripcion') + + #->add('descripcion') + ->add('descripcion', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control'), + 'label_attr' => array('class' => 'control-label'), + )) + + ->add('codigo_sucre') ->add('codigo_aldea') ->add('estatus') diff --git a/src/UBV/SurUbvBundle/Form/AmbienteDetalleType.php b/src/UBV/SurUbvBundle/Form/AmbienteDetalleType.php new file mode 100644 index 0000000..c537a62 --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/AmbienteDetalleType.php @@ -0,0 +1,38 @@ +add('descripcion')->add('estatus')->add('ambiente')->add('ambienteDetalle'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\AmbienteDetalle' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_ambientedetalle'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/AmbienteEspacioType.php b/src/UBV/SurUbvBundle/Form/AmbienteEspacioType.php new file mode 100644 index 0000000..35d23b5 --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/AmbienteEspacioType.php @@ -0,0 +1,38 @@ +add('descripcion')->add('capacidad')->add('tipoEspacio')->add('ambienteDetalle'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\AmbienteEspacio' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_ambienteespacio'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/AmbienteType.php b/src/UBV/SurUbvBundle/Form/AmbienteType.php index 1f780b2..7c5f484 100644 --- a/src/UBV/SurUbvBundle/Form/AmbienteType.php +++ b/src/UBV/SurUbvBundle/Form/AmbienteType.php @@ -6,6 +6,27 @@ use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; +use Symfony\Bridge\Doctrine\Form\Type\EntityType; +use UBV\SurUbvBundle\Form\PersonaNacionalidadType; +use Symfony\Component\Form\Extension\Core\Type\DateTimeType; +use UBV\SurUbvBundle\Form\EventListener\AddPaisFieldSubscriber; +use UBV\SurUbvBundle\Form\EventListener\AddEstadoFieldSubscriber; +use UBV\SurUbvBundle\Form\EventListener\AddMunicipioFieldSubscriber; +use UBV\SurUbvBundle\Form\EventListener\AddParroquiaFieldSubscriber; +use Symfony\Component\Form\Extension\Core\Type\CollectionType; +use UBV\SurUbvBundle\Form\EventListener\AddAldeaFieldSubscriber; +use Symfony\Component\Validator\Constraints\NotBlank; +use Symfony\Component\Validator\Constraints\Length; +use Symfony\Component\EventDispatcher\EventSubscriberInterface; +use UBV\SurUbvBundle\Entity\Pais; +use UBV\SurUbvBundle\Entity\Estado; +use UBV\SurUbvBundle\Entity\Municipio; +use UBV\SurUbvBundle\Entity\Parroquia; +use UBV\SurUbvBundle\Entity\Aldea; +use Symfony\Component\PropertyAccess\PropertyAccess; +use FOS\UserBundle\Util\LegacyFormHelper; + + class AmbienteType extends AbstractType { /** @@ -14,7 +35,19 @@ class AmbienteType extends AbstractType */ public function buildForm(FormBuilderInterface $builder, array $options) { + + + $propertyPathToAldea = 'estado'; + $propertyPathToAldea = 'municipio'; + + + $builder + + + ->addEventSubscriber(new AddEstadoFieldSubscriber($propertyPathToAldea)) + ->addEventSubscriber(new AddMunicipioFieldSubscriber($propertyPathToAldea)) + ->addEventSubscriber(new AddParroquiaFieldSubscriber($propertyPathToAldea)) ->add('descripcion', null, array( 'label'=> 'Nombre del Ambiente Universitario', 'attr' => array('class' => 'form-control','placeholder'=>'Descripcion del Ambiente Universitario'), diff --git a/src/UBV/SurUbvBundle/Form/AmbitoType.php b/src/UBV/SurUbvBundle/Form/AmbitoType.php new file mode 100644 index 0000000..f61f555 --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/AmbitoType.php @@ -0,0 +1,38 @@ +add('descripcion'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\Ambito' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_ambito'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/AporteInstitucionType.php b/src/UBV/SurUbvBundle/Form/AporteInstitucionType.php new file mode 100644 index 0000000..d377acc --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/AporteInstitucionType.php @@ -0,0 +1,96 @@ +add('descripcion') + ->add('descripcion', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'Descripcion del Material', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + + #->add('concepto') + ->add('concepto', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'Concepto o Motivo por el que se Recibe', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + + + #->add('cantidad') + ->add('cantidad', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'Cantidad', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + + #->add('fecha_recepcion') + ->add('fecha_recepcion', "Symfony\Component\Form\Extension\Core\Type\DateType", array( + 'disabled'=>false, + 'mapped'=>true, + 'label'=>'Fecha de Inicio', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'widget' => 'single_text', + 'format' => 'dd-MM-yyyy', + 'label'=> 'Fecha de Inicio', + 'attr' => array('class' => 'datepicker-default form-control','data-date-format'=>"dd/mm/yyyy",'placeholder'=>'' ), + 'label_attr' => array('class' => 'control-label') + )) + + ->add('proyecto') + + ->add('aporteTipo') + + ->add('institucion'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\AporteInstitucion' + )); + } + + + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_aporteinstitucion'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/AporteTipoType.php b/src/UBV/SurUbvBundle/Form/AporteTipoType.php new file mode 100644 index 0000000..d0d8240 --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/AporteTipoType.php @@ -0,0 +1,56 @@ +add('descripcion') + ->add('descripcion', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:AporteTipo', + 'label' =>"Tipo de Aporte", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + ; + + + + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\AporteTipo' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_aportetipo'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/ArancelType.php b/src/UBV/SurUbvBundle/Form/ArancelType.php new file mode 100644 index 0000000..c871c6b --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/ArancelType.php @@ -0,0 +1,38 @@ +add('fecha_inicio')->add('fecha_fin')->add('descripcion')->add('cantidad_ut')->add('estatus')->add('clase')->add('depositos'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\Arancel' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_arancel'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/AreaConocimientoOpsuType.php b/src/UBV/SurUbvBundle/Form/AreaConocimientoOpsuType.php new file mode 100644 index 0000000..4665097 --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/AreaConocimientoOpsuType.php @@ -0,0 +1,38 @@ +add('descripcion')->add('codigo')->add('areaConocimientoUbv'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\AreaConocimientoOpsu' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_areaconocimientoopsu'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/AreaConocimientoType.php b/src/UBV/SurUbvBundle/Form/AreaConocimientoType.php new file mode 100644 index 0000000..7683e5d --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/AreaConocimientoType.php @@ -0,0 +1,38 @@ +add('descripcion')->add('centroEstudio'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\AreaConocimiento' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_areaconocimiento'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/AreaConocimientoUbvType.php b/src/UBV/SurUbvBundle/Form/AreaConocimientoUbvType.php new file mode 100644 index 0000000..7131be6 --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/AreaConocimientoUbvType.php @@ -0,0 +1,38 @@ +add('descripcion')->add('codigo')->add('estatus')->add('centroEstudio')->add('areaConocimientoOpsu'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\AreaConocimientoUbv' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_areaconocimientoubv'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/AspiranteEstatusType.php b/src/UBV/SurUbvBundle/Form/AspiranteEstatusType.php new file mode 100644 index 0000000..6fce4ad --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/AspiranteEstatusType.php @@ -0,0 +1,38 @@ +add('descripcion'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\AspiranteEstatus' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_aspiranteestatus'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/AspiranteTipoType.php b/src/UBV/SurUbvBundle/Form/AspiranteTipoType.php new file mode 100644 index 0000000..a5aa72d --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/AspiranteTipoType.php @@ -0,0 +1,38 @@ +add('descripcion'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\AspiranteTipo' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_aspirantetipo'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/CandidatoCargaMasivaType.php b/src/UBV/SurUbvBundle/Form/CandidatoCargaMasivaType.php deleted file mode 100644 index 0ae8f71..0000000 --- a/src/UBV/SurUbvBundle/Form/CandidatoCargaMasivaType.php +++ /dev/null @@ -1,45 +0,0 @@ -add('aspiranteTipo', EntityType::class, array( - 'class' => 'UBVSurUbvBundle:AspiranteTipo', - 'label' =>"Tipos de Candidatos", - 'empty_data' => "0", - 'placeholder'=>"Seleccione...", - 'attr' => array('class' => 'form-control ','placeholder'=>''), - 'label_attr' => array('class' => 'control-label'), - )) - - ->add('file', FileType::class, array( - 'label'=>'Adjunte el Archivo', - 'attr' => array('class' => ''), - 'label_attr' => array('class' => 'control-label'), - )); - } - - /** - * @param OptionsResolver $resolver - */ -// public function configureOptions(OptionsResolver $resolver) -// { -// $resolver->setDefaults(array( -// 'data_class' => 'UBV\SurUbvBundle\Entity\Candidato' -// )); -// } -} diff --git a/src/UBV/SurUbvBundle/Form/CandidatoType.php b/src/UBV/SurUbvBundle/Form/CandidatoType.php index 5aac82e..73a73de 100644 --- a/src/UBV/SurUbvBundle/Form/CandidatoType.php +++ b/src/UBV/SurUbvBundle/Form/CandidatoType.php @@ -5,45 +5,319 @@ namespace UBV\SurUbvBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; - +use Symfony\Bridge\Doctrine\Form\Type\EntityType; +use UBV\SurUbvBundle\Form\PersonaNacionalidadType; +use Symfony\Component\Form\Extension\Core\Type\DateTimeType; +use Symfony\Component\Form\Extension\Core\Type\CollectionType; +use Symfony\Component\Validator\Constraints\NotBlank; +use Symfony\Component\Validator\Constraints\NotNull; +use Symfony\Component\Validator\Constraints\Length; +use Symfony\Component\EventDispatcher\EventSubscriberInterface; +use Symfony\Component\PropertyAccess\PropertyAccess; +use FOS\UserBundle\Util\LegacyFormHelper; +use UBV\SurUbvBundle\Form\EventListener\AddAmbienteFieldSubscriber; class CandidatoType extends AbstractType { /** - * @param FormBuilderInterface $builder - * @param array $options + * {@inheritdoc} */ public function buildForm(FormBuilderInterface $builder, array $options) { + + $builder - ->add('primer_nombre') - ->add('segundo_nombre') - ->add('primer_apellido') - ->add('segundo_apellido') - ->add('identificacion') - ->add('fecha_nacimiento', 'date') - ->add('telefono') - ->add('correo') - ->add('id_opsu') - ->add('ano_grado', 'date') - ->add('trabaja') - ->add('promedio_nota') - //->add('periodo_asignado') - ->add('aspiranteTipo') - ->add('aspiranteEstatus') - ->add('documentoIdentidadTipo') - ->add('genero') - ->add('estadoCivil') - ->add('telefonoCodigoArea') - ->add('estado') - ->add('etnia') - ->add('programa') - ->add('aldea') - ->add('convenio') - ; - } + + #->add('primer_nombre') + ->add('primer_nombre', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'Primer Nombre', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control'), + 'label_attr' => array('class' => 'control-label'), + )) + + + #->add('segundo_nombre') + ->add('segundo_nombre', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'Segundo Nombre', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'constraints' => new NotNull(), + 'attr' => array('class' => 'form-control','placeholder'=>'Maximo 250 Caracateres'), + 'label_attr' => array('class' => 'control-label'), + )) + + + #->add('primer_apellido') + ->add('primer_apellido', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'Primer Apellido', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'label'=>'Primer Apellido', + 'attr' => array('class' => 'form-control','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + + #->add('segundo_apellido') + ->add('segundo_apellido', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'Segundo Apellido', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('identificacion') + ->add('identificacion', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control'), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('fecha_nacimiento') + ->add('fecha_nacimiento', "Symfony\Component\Form\Extension\Core\Type\DateType", array( + 'disabled'=>false, + 'mapped'=>true, + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'widget' => 'single_text', + 'format' => 'dd-MM-yyyy', + 'label'=> 'Fecha de Nacimiento', + 'attr' => array('class' => 'datepicker-default form-control','data-date-format'=>"dd/mm/yyyy" ), + 'label_attr' => array('class' => 'control-label') + )) + + + #->add('telefono') + ->add('telefono', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=> 'Numero', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control'), + 'label_attr' => array('class' => 'control-label'), + )) + + + #->add('correo') + ->add('correo', LegacyFormHelper::getType('Symfony\Component\Form\Extension\Core\Type\EmailType'), array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=> 'Correo', + 'attr' => array('class' => 'form-control'), + 'label_attr' => array('class' => 'control-label'), + 'translation_domain' => 'FOSUserBundle' + + )) + + + + #->add('id_opsu') + ->add('id_opsu', null, array( + 'disabled'=>false, + 'constraints'=> new NotBlank(array('groups' => array('Pre-Grado'))), + 'label'=>'Codigo de OPSU', + 'attr' => array('class' => 'form-control','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + + + #->add('ano_grado') + ->add('ano_grado', DateTimeType::class, array( + 'widget' => 'single_text', + 'format' => 'yyyy', + 'label'=> 'Año de Graduación', + 'attr' => array('class' => 'datepicker-years form-control','data-date-format'=>"yyyy" ), + 'label_attr' => array('class' => 'control-label') + )) + + + + #->add('trabaja') + ->add('trabaja',null,array( + 'label'=>"¿Trabaja?" + )) + + + #->add('promedio_nota') + ->add('promedio_nota', null, array( + 'disabled'=>false, + 'constraints'=> new NotBlank(array('groups' => array('Pre-Grado'))), + 'label'=>'Promedio de Notas Bachillerato', + 'attr' => array('class' => 'form-control','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + + + #->add('aspiranteTipo') + ->add('aspiranteTipo', EntityType::class, array( + 'disabled'=>false, + 'class' => 'UBVSurUbvBundle:AspiranteTipo', + 'label' =>"Tipo de Aspirante", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + + #->add('aspiranteEstatus') + ->add('aspiranteEstatus', EntityType::class, array( + 'disabled'=>false, + 'class' => 'UBVSurUbvBundle:AspiranteEstatus', + 'label' =>"Tipo de Aspirante", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('documentoIdentidadTipo') + ->add('documentoIdentidadTipo', EntityType::class, array( + 'mapped'=>true, + 'disabled'=>false, + 'class' => 'UBVSurUbvBundle:DocumentoIdentidadTipo', + 'label' =>"", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control form-control-choice ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('genero') + ->add('genero', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:Genero', + 'label' =>"Genero", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control form-control-choice','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('estadoCivil') + ->add('estadoCivil', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:EstadoCivil', + 'label' =>"Estado Civil", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control form-control-choice','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('telefonoCodigoArea') + ->add('telefonoCodigoArea', null, array( + 'class' => 'UBVSurUbvBundle:TelefonoCodigoArea', + 'empty_data' => null, + 'empty_value' => 'Seleccione...', + 'label'=> 'Codigo de Area', + 'attr' => array('class' => 'form-control'), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('estado') + ->add('estado', null, array( + 'class' => 'UBVSurUbvBundle:Estado', + 'empty_data' => null, + 'empty_value' => 'Seleccione...', + 'label'=> 'Codigo de Area', + 'attr' => array('class' => 'form-control'), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('aldea') + ->add('aldea', null, array( + 'class' => 'UBVSurUbvBundle:Aldea', + 'empty_data' => null, + 'empty_value' => 'Seleccione...', + 'label'=> 'Codigo de Area', + 'attr' => array('class' => 'form-control'), + 'label_attr' => array('class' => 'control-label'), + )) + + + + #->add('etnia') + ->add('etnia', null, array( + 'class' => 'UBVSurUbvBundle:Etnia', + 'empty_data' => null, + 'empty_value' => 'Seleccione...', + 'label'=> 'Etnia', + 'attr' => array('class' => 'form-control'), + 'label_attr' => array('class' => 'control-label'), + )) + + + #->add('programa') + ->add('programa', null, array( + 'class' => 'UBVSurUbvBundle:Programa', + 'empty_data' => null, + 'empty_value' => 'Seleccione...', + 'label'=> 'Programa', + 'attr' => array('class' => 'form-control'), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('convenio') + ->add('convenio', null, array( + 'class' => 'UBVSurUbvBundle:Convenio', + 'empty_data' => null, + 'empty_value' => 'Seleccione...', + 'label'=> 'Convenio', + 'attr' => array('class' => 'form-control'), + 'label_attr' => array('class' => 'control-label'), + )) + + + #->add('correoTipo') + ->add('correoTipo', null, array( + 'class' => 'UBVSurUbvBundle:CorreoTipo', + 'empty_data' => null, + 'empty_value' => 'Seleccione...', + 'label'=> 'Tipo de Correo', + 'attr' => array('class' => 'form-control'), + 'label_attr' => array('class' => 'control-label'), + )) + + + + #->add('discapacidad') + ->add('discapacidad', null, array( + 'class' => 'UBVSurUbvBundle:Discapacidad', + 'empty_data' => null, + 'empty_value' => 'Seleccione...', + 'label'=> 'Discapacidad', + 'attr' => array('class' => 'form-control'), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('periodoAcademico'); + ->add('periodoAcademico', null, array( + 'class' => 'UBVSurUbvBundle:PeriodoAcademico', + 'empty_data' => null, + 'empty_value' => 'Seleccione...', + 'label'=> 'Periodo Academico', + 'attr' => array('class' => 'form-control'), + 'label_attr' => array('class' => 'control-label'), + )) + + +; + } /** - * @param OptionsResolver $resolver + * {@inheritdoc} */ public function configureOptions(OptionsResolver $resolver) { @@ -51,4 +325,14 @@ class CandidatoType extends AbstractType 'data_class' => 'UBV\SurUbvBundle\Entity\Candidato' )); } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_candidato'; + } + + } diff --git a/src/UBV/SurUbvBundle/Form/CargaAcademicaType.php b/src/UBV/SurUbvBundle/Form/CargaAcademicaType.php new file mode 100644 index 0000000..62d8c7e --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/CargaAcademicaType.php @@ -0,0 +1,38 @@ +add('ofertaAcademicaDetalle')->add('seccion')->add('ambienteEspacio')->add('docente'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\CargaAcademica' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_cargaacademica'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/CentroEstudioType.php b/src/UBV/SurUbvBundle/Form/CentroEstudioType.php new file mode 100644 index 0000000..7b2aa6e --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/CentroEstudioType.php @@ -0,0 +1,38 @@ +add('descripcion')->add('codigo')->add('areaConocimiento'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\CentroEstudio' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_centroestudio'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/ComunidadTipoType.php b/src/UBV/SurUbvBundle/Form/ComunidadTipoType.php new file mode 100644 index 0000000..f8294d8 --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/ComunidadTipoType.php @@ -0,0 +1,38 @@ +add('descripcion'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\ComunidadTipo' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_comunidadtipo'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/ComunidadType.php b/src/UBV/SurUbvBundle/Form/ComunidadType.php new file mode 100644 index 0000000..dd5da13 --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/ComunidadType.php @@ -0,0 +1,54 @@ +add('descripcion') + // Text suggestions + ->add('descripcion', 'genemu_jqueryautocomplete_entity', array( + 'class' => 'UBVSurUbvBundle:Comunidad', + 'property' => 'descripcion', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + ) + ) + + ->add('comunidadTipo') + + ; + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\Comunidad' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_comunidad'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/DocenteAldeaType.php b/src/UBV/SurUbvBundle/Form/DocenteAldeaType.php new file mode 100644 index 0000000..0d31151 --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/DocenteAldeaType.php @@ -0,0 +1,38 @@ +add('docente')->add('aldea'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\DocenteAldea' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_docentealdea'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/DocenteDedicacionType.php b/src/UBV/SurUbvBundle/Form/DocenteDedicacionType.php new file mode 100644 index 0000000..25f1c15 --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/DocenteDedicacionType.php @@ -0,0 +1,38 @@ +add('descripcion')->add('total_horas')->add('hora_docencia_minima')->add('hora_docencia_maxima'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\DocenteDedicacion' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_docentededicacion'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/DocenteEstatusType.php b/src/UBV/SurUbvBundle/Form/DocenteEstatusType.php new file mode 100644 index 0000000..ae4b10d --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/DocenteEstatusType.php @@ -0,0 +1,38 @@ +add('descripcion'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\DocenteEstatus' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_docenteestatus'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/DocenteProyectoType.php b/src/UBV/SurUbvBundle/Form/DocenteProyectoType.php new file mode 100644 index 0000000..b57cb25 --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/DocenteProyectoType.php @@ -0,0 +1,59 @@ +add('estatus') + + #->add('docente') + ->add('docente', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:DocenteProyecto', + 'label' =>"Docente", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + ->add('proyecto') + + ->add('vinculacionProyecto'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\DocenteProyecto' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_docenteproyecto'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/DocenteType.php b/src/UBV/SurUbvBundle/Form/DocenteType.php new file mode 100644 index 0000000..8ee5bb6 --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/DocenteType.php @@ -0,0 +1,38 @@ +add('programa')->add('centroEstudio')->add('persona')->add('ejeRegional')->add('docenteDedicacion')->add('docenteEstatus'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\Docente' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_docente'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/EventListener/AddAldeaFieldSubscriber.php b/src/UBV/SurUbvBundle/Form/EventListener/AddAldeaFieldSubscriber.php index e33ebca..9ca62cb 100755 --- a/src/UBV/SurUbvBundle/Form/EventListener/AddAldeaFieldSubscriber.php +++ b/src/UBV/SurUbvBundle/Form/EventListener/AddAldeaFieldSubscriber.php @@ -9,6 +9,7 @@ use Symfony\Component\Form\FormEvent; use Symfony\Component\Form\FormEvents; use Symfony\Component\PropertyAccess\PropertyAccess; + class AddAldeaFieldSubscriber implements EventSubscriberInterface { private $propertyPathToAldea; diff --git a/src/UBV/SurUbvBundle/Form/EventListener/AddEstadoFieldSubscriber.php b/src/UBV/SurUbvBundle/Form/EventListener/AddEstadoFieldSubscriber.php index c33e20b..c5f31ef 100755 --- a/src/UBV/SurUbvBundle/Form/EventListener/AddEstadoFieldSubscriber.php +++ b/src/UBV/SurUbvBundle/Form/EventListener/AddEstadoFieldSubscriber.php @@ -7,11 +7,13 @@ use Symfony\Component\Form\FormEvents; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\PropertyAccess\PropertyAccess; use Doctrine\ORM\EntityRepository; -//use UBV\SurUbvBundle\Entity\Pais; -//use UBV\SurUbvBundle\Entity\Estado; -//use UBV\SurUbvBundle\Entity\Municipio; -//use UBV\SurUbvBundle\Entity\Parroquia; +use UBV\SurUbvBundle\Entity\Pais; +use UBV\SurUbvBundle\Entity\Estado; +use UBV\SurUbvBundle\Entity\Municipio; +use UBV\SurUbvBundle\Entity\Parroquia; +use UBV\SurUbvBundle\Entity\Proyecto; use Symfony\Bridge\Doctrine\Form\Type\EntityType; +use Symfony\Component\Form\FormFactoryInterface; class AddEstadoFieldSubscriber implements EventSubscriberInterface { @@ -43,7 +45,7 @@ class AddEstadoFieldSubscriber implements EventSubscriberInterface { 'invalid_message' => 'Por favor seleccione un Estado', 'label_attr' => array('class' => 'control-label'), 'attr' => array( - 'class' => 'detallesSolicitudes_anadir estado_selector form-control', + 'class' => 'estado_selector form-control', ), 'query_builder' => function (EntityRepository $repository) use ($pais_id) { $qb = $repository->createQueryBuilder('estado') @@ -72,9 +74,8 @@ class AddEstadoFieldSubscriber implements EventSubscriberInterface { 'label' => 'Estado', 'invalid_message' => 'Por favor seleccione un Estado', 'label_attr' => array('class' => 'control-label'), - 'attr' => array( - 'class' => 'detallesSolicitudes_anadir estado_selector form-group form-control', - ), + 'attr' => array('class' => 'form-control ','placeholder'=>'ingrese el estado aqui'), + ); $data = $event->getData(); @@ -88,11 +89,12 @@ class AddEstadoFieldSubscriber implements EventSubscriberInterface { $accessor = PropertyAccess::createPropertyAccessor(); $aldea = $accessor->getValue($data, $this->propertyPathToAldea); + $parroquia = ($aldea) ? $aldea->getAmbiente()->getParroquia() : null; $municipio = ($parroquia) ? $parroquia->getMunicipio() : null; $estado = ($municipio) ? $municipio->getEstado() : null; - //$estado = $accessor->getValue($data, $this->propertyPathToAldea); + $estado = $accessor->getValue($data, $this->propertyPathToAldea); $pais_id = ($estado) ? $estado->getPais()->getId() : null; $this->addEstadoForm($form, $pais_id, $estado); } diff --git a/src/UBV/SurUbvBundle/Form/InstitucionEducativaType.php b/src/UBV/SurUbvBundle/Form/InstitucionEducativaType.php new file mode 100644 index 0000000..4e7805e --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/InstitucionEducativaType.php @@ -0,0 +1,67 @@ +add('descripcion') + ->add('descripcion', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:InstitucionEducativa', + 'label' =>"Institucion que Otorga el Titulo", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + + #->add('institucionTipo'); + ->add('institucionTipo', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:InstitucionTipo', + 'label' =>"Tipo de Institucion", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + +; + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\InstitucionEducativa' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_institucioneducativa'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/InstitucionType.php b/src/UBV/SurUbvBundle/Form/InstitucionType.php new file mode 100644 index 0000000..e07ab4e --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/InstitucionType.php @@ -0,0 +1,56 @@ +add('descripcion') + ->add('descripcion', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:Institucion', + 'label' =>"Institucion", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + ->add('pais') + + ->add('institucionTipo'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\Institucion' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_institucion'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/MetodologiaTipoType.php b/src/UBV/SurUbvBundle/Form/MetodologiaTipoType.php new file mode 100644 index 0000000..d9ae096 --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/MetodologiaTipoType.php @@ -0,0 +1,56 @@ +add('descripcion') + ->add('descripcion', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + + 'class' => 'UBVSurUbvBundle:MetodologiaTipo', + 'label' =>"Tipo de Metodologia", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + ; + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\MetodologiaTipo' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_metodologiatipo'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/MetodologiaType.php b/src/UBV/SurUbvBundle/Form/MetodologiaType.php new file mode 100644 index 0000000..aee3134 --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/MetodologiaType.php @@ -0,0 +1,49 @@ +add('descripcion') + + #->add('metodologiaTipo') + ->add('metodologiaTipo', new MetodologiaTipoType) + + + + ; + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\Metodologia' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_metodologia'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/ObjetivoNivelType.php b/src/UBV/SurUbvBundle/Form/ObjetivoNivelType.php new file mode 100644 index 0000000..844dc00 --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/ObjetivoNivelType.php @@ -0,0 +1,38 @@ +add('descripcion'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\ObjetivoNivel' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_objetivonivel'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/ObjetivoPlanPatriaType.php b/src/UBV/SurUbvBundle/Form/ObjetivoPlanPatriaType.php new file mode 100644 index 0000000..fd5da6b --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/ObjetivoPlanPatriaType.php @@ -0,0 +1,93 @@ +add('indice_objetivo') + ->add('indice_objetivo', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:ObjetivoPlanPatria', + 'choice_label' =>'getObjePlanPatria', + 'label' =>"Indice", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('descripcion') + ->add('descripcion', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:ObjetivoPlanPatria', + 'label' =>"Objetivo", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('objetivoNivel') + ->add('objetivoNivel', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:ObjetivoNivel', + 'label' =>"Objetivo Nivel", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + + #->add('objetivoPlanPatria') + ->add('objetivoPlanPatria', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:ObjetivoPlanPatria', + 'choice_label' =>'getObjePlanPatria', + 'label' =>"Objetivo", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + ->add('proyectos'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\ObjetivoPlanPatria' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_objetivoplanpatria'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/PersonaProyectoType.php b/src/UBV/SurUbvBundle/Form/PersonaProyectoType.php new file mode 100644 index 0000000..1213707 --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/PersonaProyectoType.php @@ -0,0 +1,107 @@ +add('identificacion') + ->add('identificacion', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'Numero de Cedula', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + #->add('nombre') + ->add('nombre', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'Nombre', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('apellido') + ->add('apellido', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'Apellido', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('correo') + ->add('correo', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'Correo Electronico', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('telefono') + ->add('telefono', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'Telefono', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('telefonoCodigoArea') + ->add('telefonoCodigoArea', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:TelefonoCodigoArea', + 'label' =>"Codigo de Area", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + + ; + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\PersonaProyecto' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_personaproyecto'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/ProgramaTipoType.php b/src/UBV/SurUbvBundle/Form/ProgramaTipoType.php new file mode 100644 index 0000000..dd696e3 --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/ProgramaTipoType.php @@ -0,0 +1,56 @@ +add('descripcion') + ->add('descripcion', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:ProgramaTipo', + 'label' =>"Tipo de Programa", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + ->add('codigo') + + ->add('programaNivel'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\ProgramaTipo' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_programatipo'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/ProyectoComunidadType.php b/src/UBV/SurUbvBundle/Form/ProyectoComunidadType.php new file mode 100644 index 0000000..b3125cb --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/ProyectoComunidadType.php @@ -0,0 +1,68 @@ +add('proyecto', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:Proyecto', + 'label' =>"Proyecto", + + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + ->add('comunidad') + + ->add('personaProyecto', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:PersonaProyecto', + 'label' =>"Vocero", + 'choice_label' =>'getVocero', + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + + ; + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\ProyectoComunidad' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_proyectocomunidad'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/ProyectoEtapaType.php b/src/UBV/SurUbvBundle/Form/ProyectoEtapaType.php new file mode 100644 index 0000000..533e4a6 --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/ProyectoEtapaType.php @@ -0,0 +1,55 @@ +add('descripcion') + ->add('descripcion', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'Nueva Etapa', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + ->add('proyecto') + ; + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\ProyectoEtapa' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_proyectoetapa'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/ProyectoPlanPatriaType.php b/src/UBV/SurUbvBundle/Form/ProyectoPlanPatriaType.php new file mode 100644 index 0000000..caae98e --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/ProyectoPlanPatriaType.php @@ -0,0 +1,38 @@ +add('objetivoPlanPatria')->add('proyecto'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\ProyectoPlanPatria' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_proyectoplanpatria'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/ProyectoType.php b/src/UBV/SurUbvBundle/Form/ProyectoType.php new file mode 100644 index 0000000..b616a16 --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/ProyectoType.php @@ -0,0 +1,482 @@ +addEventSubscriber(new AddPaisFieldSubscriber($propertyPathToAmbiente)) + ->addEventSubscriber(new AddEstadoFieldSubscriber($propertyPathToAmbiente)) + ->addEventSubscriber(new AddMunicipioFieldSubscriber($propertyPathToAmbiente)) + ->addEventSubscriber(new AddParroquiaFieldSubscriber($propertyPathToAmbiente)) + ->addEventSubscriber(new AddAmbienteFieldSubscriber($propertyPathToAmbiente)) + + + + + + #->add('titulo') + ->add('titulo', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'Titulo del Proyecto', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control','placeholder'=>'Maximo 250 Caracteres'), + 'label_attr' => array('class' => 'control-label'), + )) + + + #->add('objetivo_general') + ->add('objetivo_general', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'Objetivo General', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control','placeholder'=>'Maximo 350 Caracteres'), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('objetivoEspecifico') + ->add('objetivoEspecifico', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'Objetivos Especificos', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control','placeholder'=>'Maximo 150 Caracteres'), + 'label_attr' => array('class' => 'control-label'), + )) + #->add('descripcion') + ->add('descripcion', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'Descripcion del Proyecto', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control','placeholder'=>'Maximo 1500 Caracteres'), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('beneficiarios_directos') + ->add('beneficiarios_directos', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'Beneficiarios Directos', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control','placeholder'=>'Maximo 45 Caracteres'), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('beneficiarios_indirectos') + ->add('beneficiarios_indirectos', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'Beneficiarios Indirectos', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control','placeholder'=>'Maximo 45 Caracteres'), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('fecha_inicio') + ->add('fecha_inicio', "Symfony\Component\Form\Extension\Core\Type\DateType", array( + 'disabled'=>false, + 'mapped'=>true, + 'label'=>'Fecha de Inicio', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'widget' => 'single_text', + 'format' => 'dd-MM-yyyy', + 'label'=> 'Fecha de Inicio', + 'attr' => array('class' => 'datepicker-default form-control','data-date-format'=>"dd/mm/yyyy",'placeholder'=>'' ), + 'label_attr' => array('class' => 'control-label') + )) + + #->add('fecha_fin') + ->add('fecha_fin', "Symfony\Component\Form\Extension\Core\Type\DateType", array( + 'disabled'=>false, + 'mapped'=>true, + 'label'=>'Fecha de Finalizacion', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'widget' => 'single_text', + 'format' => 'dd-MM-yyyy', + 'label'=> 'Fecha de Finalizacion', + 'attr' => array('class' => 'datepicker-default form-control','data-date-format'=>"dd/mm/yyyy",'placeholder'=>'' ), + 'label_attr' => array('class' => 'control-label') + )) + + #->add('proyectocol') + ->add('proyectocol', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('direccion') + ->add('direccion', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'Direccion', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control','placeholder'=>'Direccion del Proyecto'), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('coordenada_latitud') + ->add('coordenada_latitud', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'Coordenadas de Latitud', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control','placeholder'=>'Sugerencia Consultar en Google Maps'), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('coordenada_longitud') + ->add('coordenada_longitud', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'Coordenadas de Longitud', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control','placeholder'=>'Sugerencia Consultar en Google Maps'), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('fecha_registro') + ->add('fecha_registro', "Symfony\Component\Form\Extension\Core\Type\DateType", array( + 'disabled'=>false, + 'mapped'=>true, + 'label'=>'Fecha del Registro', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'widget' => 'single_text', + 'format' => 'dd-MM-yyyy', + 'label'=> 'Fecha de Registro', + 'attr' => array('class' => 'datepicker-default form-control','data-date-format'=>"dd/mm/yyyy" ), + 'label_attr' => array('class' => 'control-label') + )) + + #->add('resumes_ruta') + ->add('resumes_ruta', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('metodologia') + ->add('metodologia', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:Metodologia', + 'label' =>"Metodologia", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + + + + + + + + + + + + + #->add('lineaInvestigacion') + ->add('lineaInvestigacion', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:LineaInvestigacion', + 'label' =>"Linea de Investigacion", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('ambito') + ->add('ambito', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:Ambito', + 'label' =>"Ambito de la Investigacion", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('ciudad') + ->add('ciudad', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:Ciudad', + 'label' =>"Ciudad", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('proyectoTipo') + ->add('proyectoTipo', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:ProyectoTipo', + 'label' =>"Tipo de Proyecto", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('proyectoEstatus') + ->add('proyectoEstatus', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:ProyectoEstatus', + 'label' =>"Estatus del Proyecto", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('resgistroEstatus') + ->add('resgistroEstatus', EntityType::class, array( + 'disabled'=>true, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:ResgistroEstatus', + 'label' =>"Estatus del Registro", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('nucleoAcademicoRelatedByNucleoAcademicoId1') + ->add('nucleoAcademicoRelatedByNucleoAcademicoId1', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:NucleoAcademico', + 'label' =>"Nucleo Academico", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + + #->add('comunidadTipo') + ->add('comunidadTipo', EntityType::class, array( + 'mapped'=>true, + 'disabled'=>false, + 'class' => 'UBVSurUbvBundle:ComunidadTipo', + 'label' =>"Tipo de Comunidad", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('comunidad') + ->add('comunidad', new ComunidadType) + + + #->add('institucionTipo') + ->add('institucionTipo', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:InstitucionTipo', + 'label' =>"Tipo de Institucion", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + + #->add('saberTipo') + ->add('saberTipo', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:SaberTipo', + 'label' =>"Tipo de Saberes", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + #->add('estado') + ->add('estado', EntityType::class, array( + 'disabled'=>false, + 'mapped'=>true, + 'class' => 'UBVSurUbvBundle:Estado', + 'label' =>"Estado", + 'empty_data' => "0", + 'placeholder'=>"Seleccione...", + 'attr' => array('class' => 'form-control ','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + + + + + + + #->add('docenteProyecto', new DocenteProyectoType) + + ->add('metodologiaTipo', new MetodologiaTipoType) + + + ->add('institucionEducativa', new InstitucionEducativaType) + + ->add('tutorInstitucionals', new TutorInstitucionalType) + + ->add('sabers', new SaberType) + + ->add('aporteInstitucions', new AporteInstitucionType) + + ->add('aporteTipo', new AporteTipoType) + + ->add('institucion', new InstitucionType) + + ->add('programaTipo', new ProgramaTipoType) + + ->add('personaProyecto', new PersonaProyectoType) + + ->add('proyectoEtapas', new ProyectoEtapaType) + + ->add('actividadEstatus', new ActividadEstatusType) + + ->add('actividadEtapa', new ActividadEtapaType) + + ->add('objetivoPlanPatrias', new ObjetivoPlanPatriaType) + + + ->add('nucleoAcademicoRelatedByNucleoAcademicoId') + + + + + ->add('vinculacion_plan_patria') + + + + ->add('proyectos_estrategicos') + + + + + #->add('aldeaPrograma') + + + + + ; +} + + + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\Proyecto' + + )); + } + + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_proyecto'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/SaberType.php b/src/UBV/SurUbvBundle/Form/SaberType.php new file mode 100644 index 0000000..73e7282 --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/SaberType.php @@ -0,0 +1,54 @@ +add('cantidad') + ->add('cantidad', null, array( + 'mapped'=>true, + 'disabled'=>false, + 'label'=>'Ingrese la Cantidad', + 'constraints' => new NotBlank(array('groups' => array('Default'))), + 'attr' => array('class' => 'form-control','placeholder'=>''), + 'label_attr' => array('class' => 'control-label'), + )) + + ->add('proyecto') + + ->add('saberTipo'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\Saber' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_saber'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/TutorEstudiosType.php b/src/UBV/SurUbvBundle/Form/TutorEstudiosType.php new file mode 100644 index 0000000..f3ff365 --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/TutorEstudiosType.php @@ -0,0 +1,50 @@ +add('año_grado') + + ->add('institucionEducativa') + + + + ->add('gradoAcademico') + + ->add('personaProyecto'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\TutorEstudios' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_tutorestudios'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Form/TutorInstitucionalType.php b/src/UBV/SurUbvBundle/Form/TutorInstitucionalType.php new file mode 100644 index 0000000..f52362b --- /dev/null +++ b/src/UBV/SurUbvBundle/Form/TutorInstitucionalType.php @@ -0,0 +1,52 @@ +add('carta_aceptacion_ruta') + + #->add('proyecto') + ->add('proyecto', new PersonaProyectoType) + + #->add('personaProyecto') + ->add('personaProyecto', new PersonaProyectoType) + + + ; + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'UBV\SurUbvBundle\Entity\TutorInstitucional' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'ubv_surubvbundle_tutorinstitucional'; + } + + +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/ActividadEstatusControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/ActividadEstatusControllerTest.php new file mode 100644 index 0000000..f3824f5 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/ActividadEstatusControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/actividadestatus/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /actividadestatus/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_actividadestatus[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_actividadestatus[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/ActividadEtapaControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/ActividadEtapaControllerTest.php new file mode 100644 index 0000000..0fbd032 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/ActividadEtapaControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/actividadetapa/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /actividadetapa/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_actividadetapa[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_actividadetapa[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/AldeaMallaCurriculaControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/AldeaMallaCurriculaControllerTest.php new file mode 100644 index 0000000..99a0126 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/AldeaMallaCurriculaControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/aldeamallacurricula/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /aldeamallacurricula/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_aldeamallacurricula[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_aldeamallacurricula[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/AldeaProgramaControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/AldeaProgramaControllerTest.php new file mode 100644 index 0000000..c4648ed --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/AldeaProgramaControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/aldeaprograma/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /aldeaprograma/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_aldeaprograma[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_aldeaprograma[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/AldeaTelefonoControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/AldeaTelefonoControllerTest.php new file mode 100644 index 0000000..10f2c7f --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/AldeaTelefonoControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/aldeatelefono/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /aldeatelefono/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_aldeatelefono[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_aldeatelefono[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/AmbienteDetalleControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/AmbienteDetalleControllerTest.php new file mode 100644 index 0000000..1b4a423 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/AmbienteDetalleControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/ambientedetalle/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /ambientedetalle/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_ambientedetalle[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_ambientedetalle[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/AmbienteEspacioControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/AmbienteEspacioControllerTest.php new file mode 100644 index 0000000..e892155 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/AmbienteEspacioControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/ambienteespacio/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /ambienteespacio/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_ambienteespacio[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_ambienteespacio[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/AmbitoControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/AmbitoControllerTest.php new file mode 100644 index 0000000..0edc44b --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/AmbitoControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/ambito/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /ambito/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_ambito[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_ambito[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/AporteInstitucionControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/AporteInstitucionControllerTest.php new file mode 100644 index 0000000..d6c4516 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/AporteInstitucionControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/aporteinstitucion/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /aporteinstitucion/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_aporteinstitucion[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_aporteinstitucion[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/AporteTipoControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/AporteTipoControllerTest.php new file mode 100644 index 0000000..dd2b548 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/AporteTipoControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/aportetipo/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /aportetipo/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_aportetipo[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_aportetipo[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/ArancelControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/ArancelControllerTest.php new file mode 100644 index 0000000..b653167 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/ArancelControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/arancel/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /arancel/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_arancel[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_arancel[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/AreaConocimientoControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/AreaConocimientoControllerTest.php new file mode 100644 index 0000000..9ccefc6 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/AreaConocimientoControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/areaconocimiento/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /areaconocimiento/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_areaconocimiento[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_areaconocimiento[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/AreaConocimientoOpsuControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/AreaConocimientoOpsuControllerTest.php new file mode 100644 index 0000000..27b507b --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/AreaConocimientoOpsuControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/areaconocimientoopsu/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /areaconocimientoopsu/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_areaconocimientoopsu[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_areaconocimientoopsu[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/AreaConocimientoUbvControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/AreaConocimientoUbvControllerTest.php new file mode 100644 index 0000000..b6d6ad3 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/AreaConocimientoUbvControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/areaconocimientoubv/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /areaconocimientoubv/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_areaconocimientoubv[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_areaconocimientoubv[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/AspiranteEstatusControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/AspiranteEstatusControllerTest.php new file mode 100644 index 0000000..6838088 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/AspiranteEstatusControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/aspiranteestatus/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /aspiranteestatus/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_aspiranteestatus[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_aspiranteestatus[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/AspiranteTipoControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/AspiranteTipoControllerTest.php new file mode 100644 index 0000000..5baece8 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/AspiranteTipoControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/aspirantetipo/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /aspirantetipo/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_aspirantetipo[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_aspirantetipo[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/CargaAcademicaControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/CargaAcademicaControllerTest.php new file mode 100644 index 0000000..9fb3348 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/CargaAcademicaControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/cargaacademica/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /cargaacademica/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_cargaacademica[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_cargaacademica[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/CentroEstudioControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/CentroEstudioControllerTest.php new file mode 100644 index 0000000..c6d9a81 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/CentroEstudioControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/centroestudio/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /centroestudio/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_centroestudio[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_centroestudio[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/ComunidadAjaxControllerControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/ComunidadAjaxControllerControllerTest.php new file mode 100644 index 0000000..7228e46 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/ComunidadAjaxControllerControllerTest.php @@ -0,0 +1,9 @@ +request('GET', '/comunidad/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /comunidad/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_comunidad[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_comunidad[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/ComunidadTipoControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/ComunidadTipoControllerTest.php new file mode 100644 index 0000000..8858c60 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/ComunidadTipoControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/comunidadtipo/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /comunidadtipo/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_comunidadtipo[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_comunidadtipo[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/DocenteAldeaControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/DocenteAldeaControllerTest.php new file mode 100644 index 0000000..6d9a709 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/DocenteAldeaControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/docentealdea/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /docentealdea/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_docentealdea[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_docentealdea[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/DocenteControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/DocenteControllerTest.php new file mode 100644 index 0000000..b0dc1cf --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/DocenteControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/docente/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /docente/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_docente[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_docente[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/DocenteDedicacionControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/DocenteDedicacionControllerTest.php new file mode 100644 index 0000000..1ebd02a --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/DocenteDedicacionControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/docentededicacion/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /docentededicacion/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_docentededicacion[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_docentededicacion[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/DocenteEstatusControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/DocenteEstatusControllerTest.php new file mode 100644 index 0000000..d116068 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/DocenteEstatusControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/docenteestatus/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /docenteestatus/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_docenteestatus[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_docenteestatus[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/DocenteProyectoControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/DocenteProyectoControllerTest.php new file mode 100644 index 0000000..5677d25 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/DocenteProyectoControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/docenteproyecto/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /docenteproyecto/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_docenteproyecto[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_docenteproyecto[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/InstitucionControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/InstitucionControllerTest.php new file mode 100644 index 0000000..e3a366b --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/InstitucionControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/institucion/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /institucion/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_institucion[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_institucion[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/InstitucionEducativaControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/InstitucionEducativaControllerTest.php new file mode 100644 index 0000000..68085c2 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/InstitucionEducativaControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/institucioneducativa/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /institucioneducativa/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_institucioneducativa[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_institucioneducativa[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/MetodologiaControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/MetodologiaControllerTest.php new file mode 100644 index 0000000..0ed9910 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/MetodologiaControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/metodologia/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /metodologia/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_metodologia[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_metodologia[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/MetodologiaTipoControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/MetodologiaTipoControllerTest.php new file mode 100644 index 0000000..e9e7d73 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/MetodologiaTipoControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/metodologiatipo/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /metodologiatipo/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_metodologiatipo[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_metodologiatipo[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/ObjetivoEspecificoControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/ObjetivoEspecificoControllerTest.php new file mode 100644 index 0000000..7b9308f --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/ObjetivoEspecificoControllerTest.php @@ -0,0 +1,9 @@ +request('GET', '/objetivonivel/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /objetivonivel/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_objetivonivel[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_objetivonivel[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/ObjetivoPlanPatriaControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/ObjetivoPlanPatriaControllerTest.php new file mode 100644 index 0000000..0073c43 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/ObjetivoPlanPatriaControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/objetivoplanpatria/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /objetivoplanpatria/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_objetivoplanpatria[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_objetivoplanpatria[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/PersonaProyectoControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/PersonaProyectoControllerTest.php new file mode 100644 index 0000000..5de1000 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/PersonaProyectoControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/personaproyecto/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /personaproyecto/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_personaproyecto[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_personaproyecto[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/ProgramaTipoControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/ProgramaTipoControllerTest.php new file mode 100644 index 0000000..6a5e812 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/ProgramaTipoControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/programatipo/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /programatipo/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_programatipo[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_programatipo[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/ProyectoComunidadControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/ProyectoComunidadControllerTest.php new file mode 100644 index 0000000..5e4cef5 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/ProyectoComunidadControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/proyectocomunidad/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /proyectocomunidad/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_proyectocomunidad[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_proyectocomunidad[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/ProyectoControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/ProyectoControllerTest.php new file mode 100644 index 0000000..19e74b0 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/ProyectoControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/proyecto/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /proyecto/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_proyecto[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_proyecto[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/ProyectoEtapaControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/ProyectoEtapaControllerTest.php new file mode 100644 index 0000000..7c7ce37 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/ProyectoEtapaControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/proyectoetapa/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /proyectoetapa/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_proyectoetapa[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_proyectoetapa[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/ProyectoPlanPatriaControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/ProyectoPlanPatriaControllerTest.php new file mode 100644 index 0000000..4079672 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/ProyectoPlanPatriaControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/proyectoplanpatria/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /proyectoplanpatria/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_proyectoplanpatria[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_proyectoplanpatria[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/SaberControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/SaberControllerTest.php new file mode 100644 index 0000000..7d5ac99 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/SaberControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/saber/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /saber/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_saber[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_saber[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/TutorEstudiosControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/TutorEstudiosControllerTest.php new file mode 100644 index 0000000..c34c172 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/TutorEstudiosControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/tutorestudios/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /tutorestudios/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_tutorestudios[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_tutorestudios[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} diff --git a/src/UBV/SurUbvBundle/Tests/Controller/TutorInstitucionalControllerTest.php b/src/UBV/SurUbvBundle/Tests/Controller/TutorInstitucionalControllerTest.php new file mode 100644 index 0000000..b908cd7 --- /dev/null +++ b/src/UBV/SurUbvBundle/Tests/Controller/TutorInstitucionalControllerTest.php @@ -0,0 +1,55 @@ +request('GET', '/tutorinstitucional/'); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /tutorinstitucional/"); + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); + + // Fill in the form and submit it + $form = $crawler->selectButton('Create')->form(array( + 'ubv_surubvbundle_tutorinstitucional[field_name]' => 'Test', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check data in the show view + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); + + // Edit the entity + $crawler = $client->click($crawler->selectLink('Edit')->link()); + + $form = $crawler->selectButton('Update')->form(array( + 'ubv_surubvbundle_tutorinstitucional[field_name]' => 'Foo', + // ... other fields to fill + )); + + $client->submit($form); + $crawler = $client->followRedirect(); + + // Check the element contains an attribute with value equals "Foo" + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); + + // Delete the entity + $client->submit($crawler->selectButton('Delete')->form()); + $crawler = $client->followRedirect(); + + // Check the entity has been delete on the list + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); + } + + */ +} -- 2.0.0