From: Ricardo Markiewicz Date: Mon, 26 Feb 2007 17:00:52 +0000 (+0000) Subject: navigation bar temporal para poder cambiar entre controller comodamente X-Git-Tag: pre-merge~81 X-Git-Url: https://git.llucax.com/software/sercom.git/commitdiff_plain/e40b04360d0bcae590d1d9df544d6a96ed1cb52a?hp=08a032b22c1fcbb789b18c8c78635265f1261fe8 navigation bar temporal para poder cambiar entre controller comodamente --- diff --git a/sercom/controllers.py b/sercom/controllers.py index 233d796..4edbe60 100644 --- a/sercom/controllers.py +++ b/sercom/controllers.py @@ -1,6 +1,6 @@ # vim: set et sw=4 sts=4 encoding=utf-8 : -from turbogears import controllers, expose, view +from turbogears import controllers, expose, view, url from turbogears import widgets as W, validators as V from turbogears import identity, redirect from cherrypy import request, response diff --git a/sercom/menu.py b/sercom/menu.py new file mode 100644 index 0000000..c85b817 --- /dev/null +++ b/sercom/menu.py @@ -0,0 +1,11 @@ + +from turbogears import url + +menu = [] +menu.append({'name': 'Alumnos', 'url':url('/alumno')}) +menu.append({'name': 'Docentes', 'url':url('/docente')}) +menu.append({'name': 'Grupos', 'url':url('/grupo')}) +menu.append({'name': 'Enunciados', 'url':url('/enunciado')}) +menu.append({'name': 'Ejercicios', 'url':url('/ejercicio')}) +menu.append({'name': 'Casos de Prueba', 'url':url('/caso_de_prueba')}) +menu.append({'name': 'Cursos', 'url':url('/curso')}) diff --git a/sercom/static/css/style.css b/sercom/static/css/style.css index 7ef1239..0b2027b 100644 --- a/sercom/static/css/style.css +++ b/sercom/static/css/style.css @@ -181,3 +181,8 @@ table.list td { background: #fec; } +#navbar { + position:float; + float:right; +} + diff --git a/sercom/templates/master.kid b/sercom/templates/master.kid index f050946..452e9d9 100644 --- a/sercom/templates/master.kid +++ b/sercom/templates/master.kid @@ -1,5 +1,6 @@ + @@ -33,6 +34,15 @@
+