From e40b04360d0bcae590d1d9df544d6a96ed1cb52a Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Mon, 26 Feb 2007 17:00:52 +0000 Subject: [PATCH] navigation bar temporal para poder cambiar entre controller comodamente --- sercom/controllers.py | 2 +- sercom/menu.py | 11 +++++++++++ sercom/static/css/style.css | 5 +++++ sercom/templates/master.kid | 10 ++++++++++ 4 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 sercom/menu.py 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 @@
+
-- 2.43.0