Commit 3e68fba6 authored by ericksho-ipre's avatar ericksho-ipre

justo antes de cambiar meet por event

parent a4a565b0
# asking
questioning for ing2030
# peerEvaluation
peer evaluation for 2030 courses
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
<?php
use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;
class AppCache extends HttpCache
{
}
<?php
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(),
new Symfony\Bundle\MonologBundle\MonologBundle(),
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new AppBundle\AppBundle(),
];
if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
$bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle();
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
if ('dev' === $this->getEnvironment()) {
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
$bundles[] = new Symfony\Bundle\WebServerBundle\WebServerBundle();
}
}
return $bundles;
}
public function getRootDir()
{
return __DIR__;
}
public function getCacheDir()
{
return dirname(__DIR__).'/var/cache/'.$this->getEnvironment();
}
public function getLogDir()
{
return dirname(__DIR__).'/var/logs';
}
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(function (ContainerBuilder $container) {
$container->setParameter('container.autowiring.strict_mode', true);
$container->setParameter('container.dumper.inline_class_loader', true);
$container->addObjectResource($this);
});
$loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml');
}
}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>{% block title %}AskIng{% endblock %}</title>
{% block stylesheets %}
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/>
<link href="{{ asset('css/main.css') }}" rel="stylesheet"/>
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.2-rc.1/css/select2.min.css" rel="stylesheet" />
<link href="{{ asset('css/star-rating.css') }}" media="all" rel="stylesheet" type="text/css" />
<LINK rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css">
<link href='https://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet'>
{% endblock %}
<link rel="icon" type="image/x-icon" href="https://ipre.investigacion.ing.uc.cl/wp-content/uploads/2018/01/icon.png" />
</head>
{% for flash_message in app.session.flashBag.get('notice') %}
<div class="alert alert-{{ flash_message.alert }} alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert">
<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
</button>
<strong>{{ flash_message.title }}</strong> {{ flash_message.message }}
</div>
{% endfor %}
<header>
<nav class="navbar navbar-default">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">AskIng</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul id="main-menu" class="nav navbar-nav">
{% if is_granted('ROLE_ADMIN') %}
<li><a href="{{path('user_index')}}">Usuarios</a></li>
<li><a href="{{path('meeting_index')}}">Meetings</a></li>
{% endif %}
{% if is_granted('ROLE_STUDENT') and not is_granted('ROLE_ADMIN') %}
{% endif %}
</ul>
<ul class="nav navbar-nav navbar-right">
{% if is_granted(['IS_AUTHENTICATED_FULLY', 'IS_AUTHENTICATED_REMEMBERED']) %}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ app.user.name }} {{ app.user.lastname }} <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{{ path('user_show', { 'id': app.user.id }) }}">Perfil</a></li>
<li role="separator" class="divider"></li>
<li><a href="{{path('logout')}}">Cerrar Sesión</a></li>
{% if is_granted('ROLE_PREVIOUS_ADMIN') %}
<li><a href="{{path('user_index', {'ditto': '_exit'})}}">Dejar de personificar</a></li>
{% endif %}
</ul>
</li>
{% else %}
<li><a href="{{path('login_route')}}">Iniciar Sesión</a></li>
{% endif %}
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
</header>
<body>
<div class="loader"></div>
{% block body %}
{% endblock %}
<script type="text/javascript">
window.addEventListener("load", function(evt) {
normalLinks();
if ( $( ".search-form" ).length ) {
document.getElementById("search-form").style.width = "115px";
}
$('<div class="col-md-12 text-center"><ul class="pagination " id="pagerSelector"></ul</div>').insertAfter($('#paginable').parent());
$('#paginable').pageMe({pagerSelector:'#pagerSelector',showPrevNext:true,hidePageNumbers:false,perPage:10});
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
$(".loader").fadeOut("slow");
})
function normalLinks()
{
var a = document.getElementsByTagName("a");
for (var i = a.length - 1; i >= 0; i--) {
if(!a[i].hasAttribute("class"))
{
a[i].setAttribute("class", "nclink");
}
}
};
</script>
{% block javascripts %}
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="{{ asset('js/main.js') }}"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.2-rc.1/js/select2.min.js"></script>
<script src="//cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/fixedcolumns/3.2.6/js/dataTables.fixedColumns.min.js"></script>
<script src="{{ asset('js/star-rating.js') }}" type="text/javascript"></script>
<script src="{{ asset('js/locales/es.js') }}"></script>
{% endblock %}
</body>
<footer>
<div class="panel-footer" style="position: fixed;bottom: 0px;width: 100%;left: 0px;text-align: center;">
<div class="footer-left">
<a href="https://www.ing.uc.cl/" target="_blank" > <img src="{{ asset('imagenes/logo_ing_blanco.png') }}"></a>
</div>
<div class="footer-text">
Dirección de Investigación e innovación
</div>
<div class="footer-right">
<div class="footer-row">
<a href="https://www.facebook.com/EscueladeIngenieriaUniversidadCatolica/" target="_blank" > <img src="{{ asset('imagenes/logo_fb.png') }}" >
Escuela Ingeniería UC</a>
</div>
<div class="footer-row">
<a href="https://www.instagram.com/explore/locations/318014448/escuela-de-ingenieria-uc/?hl=es" target="_blank" > <img src="{{ asset('imagenes/logo_instagram.png') }}">
Ing UC</a>
</div>
</div>
</div>
</footer>
</html>
\ No newline at end of file
{% extends 'base.html.twig' %}
{% block body %}
<center>
<h3>AskIng<h3>
</center>
<br>
<center>
<h4>Dirección de Investigación e Innovación<h4><br>
<br>
{% if not is_granted(['IS_AUTHENTICATED_FULLY', 'IS_AUTHENTICATED_REMEMBERED']) %}
<a href="/login" class="btn btn-info" role="button"><strong>Iniciar Sesión</strong></a>
{% endif %}
<br>
</center>
<script type="text/javascript">
</script>
{% endblock %}
\ No newline at end of file
{% extends 'base.html.twig' %}
{% block body %}
<h1>Meeting edit</h1>
{{ form_start(edit_form) }}
{{ form_widget(edit_form) }}
<input type="submit" value="Edit" />
{{ form_end(edit_form) }}
<ul>
<li>
<a href="{{ path('meeting_index') }}">Back to the list</a>
</li>
<li>
{{ form_start(delete_form) }}
<input type="submit" value="Delete">
{{ form_end(delete_form) }}
</li>
</ul>
{% endblock %}
{% extends 'base.html.twig' %}
{% block body %}
<h1>Meetingos</h1>
<table>
<thead>
<tr>
<th>Id</th>
<th>Name</th>
<th>Hashtag</th>
<th>Open</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for meeting in meetings %}
<tr>
<td><a href="{{ path('meeting_show', { 'id': meeting.id }) }}">{{ meeting.id }}</a></td>
<td>{{ meeting.name }}</td>
<td>{{ meeting.hashtag }}</td>
<td>{% if meeting.open %}Yes{% else %}No{% endif %}</td>
<td>
<ul>
<li>
<a href="{{ path('meeting_show', { 'id': meeting.id }) }}">show</a>
</li>
<li>
<a href="{{ path('meeting_edit', { 'id': meeting.id }) }}">edit</a>
</li>
</ul>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<ul>
<li>
<a href="{{ path('meeting_new') }}">Create a new meeting</a>
</li>
</ul>
{% endblock %}
{% extends 'base.html.twig' %}
{% block body %}
<h1>Nuevo evento</h1>
{{ form_start(form) }}
{{ form_widget(form) }}
<input type="submit" value="Crear" class="btn btn1 btn-primary" />
{{ form_end(form) }}
<a href="{{ path('meeting_index') }}" class="btn btn2 btn-primary">Listar Eventos</a>
{% endblock %}
{% extends 'base.html.twig' %}
{% block body %}
<h1>Meeting</h1>
<table>
<tbody>
<tr>
<th>Id</th>
<td>{{ meeting.id }}</td>
</tr>
<tr>
<th>Name</th>
<td>{{ meeting.name }}</td>
</tr>
<tr>
<th>Hashtag</th>
<td>{{ meeting.hashtag }}</td>
</tr>
<tr>
<th>Open</th>
<td>{% if meeting.open %}Yes{% else %}No{% endif %}</td>
</tr>
</tbody>
</table>
<ul>
<li>
<a href="{{ path('meeting_index') }}">Back to the list</a>
</li>
<li>
<a href="{{ path('meeting_edit', { 'id': meeting.id }) }}">Edit</a>
</li>
<li>
{{ form_start(delete_form) }}
<input type="submit" value="Delete">
{{ form_end(delete_form) }}
</li>
</ul>
{% endblock %}
{% extends 'base.html.twig' %}
{% block body %}
<h1>Question edit</h1>
{{ form_start(edit_form) }}
{{ form_widget(edit_form) }}
<input type="submit" value="Edit" />
{{ form_end(edit_form) }}
<ul>
<li>
<a href="{{ path('question_index') }}">Back to the list</a>
</li>
<li>
{{ form_start(delete_form) }}
<input type="submit" value="Delete">
{{ form_end(delete_form) }}
</li>
</ul>
{% endblock %}
{% extends 'base.html.twig' %}
{% block body %}
<h1>Questions list</h1>
<table>
<thead>
<tr>
<th>Id</th>
<th>Question</th>
<th>Asked</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for question in questions %}
<tr>
<td><a href="{{ path('question_show', { 'id': question.id }) }}">{{ question.id }}</a></td>
<td>{{ question.question }}</td>
<td>{% if question.asked %}{{ question.asked|date('Y-m-d') }}{% endif %}</td>
<td>
<ul>
<li>
<a href="{{ path('question_show', { 'id': question.id }) }}">show</a>
</li>
<li>
<a href="{{ path('question_edit', { 'id': question.id }) }}">edit</a>
</li>
</ul>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<ul>
<li>
<a href="{{ path('question_new') }}">Create a new question</a>
</li>
</ul>
{% endblock %}
{% extends 'base.html.twig' %}
{% block body %}
<h1>Question creation</h1>
{{ form_start(form) }}
{{ form_widget(form) }}
<input type="submit" value="Create" />
{{ form_end(form) }}
<ul>
<li>
<a href="{{ path('question_index') }}">Back to the list</a>
</li>
</ul>
{% endblock %}
{% extends 'base.html.twig' %}
{% block body %}
<h1>Question</h1>
<table>
<tbody>
<tr>
<th>Id</th>
<td>{{ question.id }}</td>
</tr>
<tr>
<th>Question</th>
<td>{{ question.question }}</td>
</tr>
<tr>
<th>Asked</th>
<td>{% if question.asked %}{{ question.asked|date('Y-m-d') }}{% endif %}</td>
</tr>
</tbody>
</table>
<ul>
<li>
<a href="{{ path('question_index') }}">Back to the list</a>
</li>
<li>
<a href="{{ path('question_edit', { 'id': question.id }) }}">Edit</a>
</li>
<li>
{{ form_start(delete_form) }}
<input type="submit" value="Delete">
{{ form_end(delete_form) }}
</li>
</ul>
{% endblock %}
{% extends 'base.html.twig' %}
{% block body %}
<h1>Editar Rol</h1>
{{ form_start(edit_form) }}
{{ form_widget(edit_form) }}
<input type="submit" value="Editar" class="btn btn-info btn1" />
{{ form_end(edit_form) }}
<a href="{{ path('role_index') }}" class="btn btn-info btn2">Listar Roles</a>
{{ form_start(delete_form) }}
<input type="submit" value="Eliminar" class="btn btn-info btn2" >
{{ form_end(delete_form) }}
{% endblock %}
{% extends 'base.html.twig' %}
{% block body %}
<h1>Roles</h1>
<table id="roles" class="table table-striped">
<thead>
<tr>
<th>Id</th>
<th>Rol</th>
<th>Texto</th>
<th></th>
</tr>
</thead>
<tbody>
{% for role in roles %}
<tr>
<td><a href="{{ path('role_show', { 'id': role.id }) }}">{{ role.id }}</a></td>
<td>{{ role.role }}</td>
<td>{{ role.text }}</td>
<td>
<ul>
<li>
<a href="{{ path('role_show', { 'id': role.id }) }}" class="btn btn-info btn-xs" >ver</a>
</li>
<li>
<a href="{{ path('role_edit', { 'id': role.id }) }}" class="btn btn-primary btn-xs" >editar</a>
</li>
</ul>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('role_new') }}" class="btn btn-primary" >Crear Rol</a>
<script type="text/javascript">
window.onload = function() {
$('.fixed-table-loading').hide();
$('#roles').DataTable({language: {url: 'https://cdn.datatables.net/plug-ins/1.10.16/i18n/Spanish.json'}});
};
</script>
{% endblock %}
{% extends 'base.html.twig' %}
{% block body %}
<h1>Crear Role</h1>
{{ form_start(form) }}
{{ form_widget(form) }}
<input type="submit" class="btn btn-primary btn1" role="button" value="Guardar" />
{{ form_end(form) }}
<a href="{{ path('role_index') }}" class="btn btn-primary btn2">Listar Roles</a>
{% endblock %}
{% extends 'base.html.twig' %}
{% block body %}
<h1>Rol</h1>
<table class="table" >
<tbody>
<tr>
<th>Id</th>
<td>{{ role.id }}</td>
</tr>
<tr>
<th>Role</th>
<td>{{ role.role }}</td>
</tr>
<tr>
<th>Texto</th>
<td>{{ role.text }}</td>
</tr>
</tbody>
</table>
<a href="{{ path('role_index') }}" class="btn btn-info btn1" >Listar Roles</a>
<a href="{{ path('role_edit', { 'id': role.id }) }}" class="btn btn-info btn2" >Editar</a>
{{ form_start(delete_form) }}
<input type="submit" value="Eliminar" class="btn btn-info btn2" >
{{ form_end(delete_form) }}
{% endblock %}
{% extends 'base.html.twig' %}
{% block body %}
<div class="col-md-4 col-md-offset-4">
<h4>Bienvenido a GestionIPre</h4>
Ingese su contraseña:
{{ form_start(reset_form) }}
{{ form_widget(reset_form) }}
</br>
<input type="submit" class="btn btn-primary btn1" role="button" value="Resetear Contraseña" onclick="return validatePassword();"/>
{{ form_end(reset_form) }}
</div>
<script type="text/javascript">
function validatePassword() {
if(document.getElementById("form_plainPassword_first").value != document.getElementById("form_plainPassword_second").value)
{
alert("Las contraseñas deben coincidir");
document.getElementById("form_plainPassword_first").style.borderColor = "#E34234";
document.getElementById("form_plainPassword_first").focus();
document.getElementById("form_plainPassword_second").style.borderColor = "#E34234";
return false;
}
return true;
}
</script>
{% endblock %}
\ No newline at end of file