예제 #1
0
파일: menu.py 프로젝트: eadomenech/agis
response.meta.generator = 'Web2py Web Framework'

## your http://google.com/analytics id
response.google_analytics_id = None

#########################################################################
## this is the main application menu add/remove items as required
#########################################################################

response.menu = list()
menu_lateral = MenuLateral(list())
menu_migas = MenuMigas()
menu_migas.append(Accion('Inicio', URL('default','index'), True))


menu.agregar_elemento(response.menu,
                        (T('Inicio'), False,URL('default', 'index'), []),)


menu.agregar_elemento(response.menu,
                        (T('Configuración'),False,'#',[] ),
                        roles=[myconf.take('roles.admin')])
menu.agregar_elemento(
        response.menu,
        ( T('Docentes'),False,'#',[] ),
        roles=[myconf.take('roles.admin'),
        myconf.take('roles.profesor'),
        myconf.take('roles.oexamen'), ])
menu.agregar_elemento(response.menu,
                        (T('Contabilidad'),
                        False,
                        URL('contabilidad', 'index'), []),
예제 #2
0
파일: menu.py 프로젝트: ybenitezf/agis
response.meta.generator = 'Web2py Web Framework'

## your http://google.com/analytics id
response.google_analytics_id = None

#########################################################################
## this is the main application menu add/remove items as required
#########################################################################

response.menu = list()
menu_lateral = MenuLateral(list())
menu_migas = MenuMigas()
menu_migas.append(Accion('Inicio', URL('default','index'), True))


menu.agregar_elemento(response.menu,
                        (T('Inicio'), False, URL('default', 'index'), []),)


# menu.agregar_elemento(response.menu,
#                         (T('Configuración'),False,'#',[] ),
#                         roles=[myconf.take('roles.admin')])
# menu.agregar_elemento(
#         response.menu,
#         ( T('Docentes'),False,'#',[] ),
#         roles=[myconf.take('roles.admin'),
#         myconf.take('roles.profesor'),
#         myconf.take('roles.oexamen'), ])
# menu.agregar_elemento(response.menu,
#                         (T('Contabilidad'),
#                         False,
#                         URL('contabilidad', 'index'), []),