File tree Expand file tree Collapse file tree 6 files changed +15
-20
lines changed
src/Desymfony/DesymfonyBundle Expand file tree Collapse file tree 6 files changed +15
-20
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ security:
2222 in_memory :
2323 users :
2424 desymfony : { password: desymfony, roles: 'ROLE_ADMIN' }
25+ admin : { password: admin, roles: 'ROLE_ADMIN' }
2526 user_db :
2627 entity : { class: Desymfony\DesymfonyBundle\Entity\Usuario, property: email }
2728 encoders :
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ public function newAction()
2525 $ em = $ this ->get ('doctrine ' )->getEntityManager ();
2626
2727 $ ponencia = new Ponencia ();
28+ $ ponencia ->setFecha (new \DateTime ('now ' ));
29+ $ ponencia ->setHora (new \DateTime ('now ' ));
30+
2831 $ formulario = $ this ->get ('form.factory ' )->create (new PonenciaType ());
2932 $ formulario ->setData ($ ponencia );
3033
Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ header a {
151151 font-size : 18px ;
152152}
153153header h1 a {
154+ color : # FFF ;
154155 font-size : 28px ;
155156 line-height : 50px ;
156157 text-decoration : none;
Original file line number Diff line number Diff line change 1818 <tbody >
1919 {% for ponencia in ponencias %}
2020 <tr >
21- <td >{{ ponencia .fecha | date (' d/m/Y' ) }} {{ ponencia .hora | date (' H:i' ) }} </td >
21+ <td >{{ ponencia .fecha | date (' d/m/Y' ) }} {{ ponencia .hora | date (' H:i' ) }} </td >
2222 <td ><a href =" {{ path(' admin_ponencia_edit' , { ' id' : ponencia .id }) }}" >{{ ponencia .titulo }}</a ></td >
2323 <td >{{ idiomas [ponencia .idioma ] }}</td >
2424 <td >{{ ponencia .usuarios | length }}</td >
Original file line number Diff line number Diff line change 44{% block pageid ' admin' %}
55
66{% block body %}
7- <ul >
8- <li ><strong >Fecha</strong > {{ ponencia .fecha | date (' d/m/Y' ) }} {{ ponencia .hora | date (' H:i' ) }}</li >
9- <li ><strong >Ponente</strong > {{ ponencia .ponente .nombre }} {{ ponencia .ponente .apellidos }}</li >
10- <li ><strong >Duración</strong > {{ ponencia .duracion }}</li >
11- <li ><strong >Idioma</strong > {{ idiomas [ponencia .idioma ] }}</li >
12- </ul >
137
148<table >
159 <thead >
Original file line number Diff line number Diff line change 11{% extends " ::base.html.twig" %}
22
33{% block header %}
4- <header >
5- <div class =" container_16" >
6- <h1 class =" grid_4 alpha" ><a href =" {{ path(' admin_portada' ) }}" >Desymfony - Backend</a ></h1 >
4+ <h1 class =" grid_6 alpha" ><a href =" {{ path(' admin_portada' ) }}" >Gestión de deSymfony.com</a ></h1 >
75
8- <nav class =" grid_12 " >
9- <ul >
10- <li ><a href =" {{ path(' admin_ponencia_list' ) }}" >Ponencias</a ></li >
11- <li ><a href =" {{ path(' portada' ) }}" >Sitio web público</a ></li >
12- <li >Conectado como {{ app .user .username }} - <a href =" {{ path(' logoff' ) }}" >Desconectar </a ></li >
13- </ul >
14- </nav >
6+ <nav class =" grid_10 omega " >
7+ <ul >
8+ <li ><a href =" {{ path(' admin_ponencia_list' ) }}" >Ponencias</a ></li >
9+ <li ><a href =" {{ path(' portada' ) }}" >Sitio público</a ></li >
10+ <li >{{ app .user .username }} <a href =" {{ path(' logoff' ) }}" >salir </a ></li >
11+ </ul >
12+ </nav >
1513
16- <h1 >{{ block (' title' ) }}</h1 >
17- </div >
18- </header >
14+ <h1 >{{ block (' title' ) }}</h1 >
1915{% endblock %}
You can’t perform that action at this time.
0 commit comments