]> git.llucax.com Git - z.facultad/75.52/sercom.git/blobdiff - sercom/subcontrollers/enunciado/templates/new.kid
Usar bien mensajes flash().
[z.facultad/75.52/sercom.git] / sercom / subcontrollers / enunciado / templates / new.kid
index c7e0d4b516671f99524f003447d138b6bc34a2a4..340d46031ed7ac7d981c9dad11045d0c50dd952d 100644 (file)
@@ -4,15 +4,18 @@
 <head>
 <meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
 <title>new</title>
 <head>
 <meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
 <title>new</title>
+<script>
+    MochiKit.Signal.connect(window, 'onload', function() { $('form_nombre').focus(); });
+</script>
 </head>
 <body>
 
 <h1>Crear Nuevo <span py:replace="name">Objeto</span></h1>
 
 </head>
 <body>
 
 <h1>Crear Nuevo <span py:replace="name">Objeto</span></h1>
 
-<p py:replace="form(action='create', value=values, submit_text=_('Crear'))">Formulario</p>
+<p py:replace="form(action=tg.url('/enunciado/create'), value=values, submit_text=_('Crear'))">Formulario</p>
 
 <br/>
 
 <br/>
-<a href="list">Cancelar</a>
+<a href="${tg.url('/enunciado/list')}">Cancelar</a>
 
 </body>
 </html>
 
 </body>
 </html>