from django.core.urlresolvers import reverse_lazy from menu import Menu from apps.main.menus import ViewMenuItem # KA Lite kalite_children = ( ViewMenuItem("Rúbricas", reverse_lazy("rubrica_list"), weight=10, icon="fa-list"), ViewMenuItem("Tipos de visita", reverse_lazy("tipovisita_list"), weight=5, icon="fa-list", perm='kalite.add_tipovisita'), ViewMenuItem("Calendario", reverse_lazy("kalite_calendario"), weight=40, icon="fa-calendar"), ViewMenuItem("Informe", reverse_lazy("visita_kalite_informe"), weight=40, icon="fa-th"), ViewMenuItem("Gráficos", reverse_lazy("visita_kalite_dashboard"), weight=50, icon="fa-bar-chart"), ) Menu.add_item( "user",
from django.core.urlresolvers import reverse_lazy from menu import Menu from apps.main.menus import ViewMenuItem # Donantes` crm_children = (ViewMenuItem("Donantes", reverse_lazy("donante_list"), weight=12, icon="fa fa-user-o"), ViewMenuItem("Ofertas", reverse_lazy("oferta_list"), weight=12, icon="fa fa-recycle")) Menu.add_item( "user", ViewMenuItem("Donantes", reverse_lazy('donante_list'), weight=10, icon="fa fa-truck", group="crm", children=crm_children))
from django.core.urlresolvers import reverse_lazy from menu import Menu from apps.main.menus import ViewMenuItem # Dejando huella dh_children = (ViewMenuItem("Calendario", reverse_lazy("evento_dh_calendario"), weight=10, icon="fa-calendar"), ) Menu.add_item( "user", ViewMenuItem("Dejando Huella", '#', weight=10, icon="fa-heart", group="dejando_huella", children=dh_children))
from django.core.urlresolvers import reverse_lazy from menu import Menu from apps.main.menus import ViewMenuItem # Equipamiento tpe_children = ( ViewMenuItem("Lista de entregas", reverse_lazy("equipamiento_list"), weight=60, icon="fa-list"), ViewMenuItem("Informe de monitoreo", reverse_lazy("monitoreo_list"), weight=70, icon="fa-phone"), ViewMenuItem("Mapa de escuelas", reverse_lazy("equipamiento_map"), weight=80, icon="fa-map-o"), ViewMenuItem("Informe de entregas", reverse_lazy("equipamiento_informe"), weight=90, icon="fa-list-alt"), ViewMenuItem("Calendario", reverse_lazy("calendario_tpe"), weight=75, icon="fa-calendar"), ViewMenuItem("Evaluación", reverse_lazy("evaluacionmonitoreo_list"), weight=95, icon="fa-check"), )
from django.core.urlresolvers import reverse_lazy from menu import Menu from apps.main.menus import ViewMenuItem def prueba_externo(user): return not user.perfil.externo # Escuelas escuela_children = ( ViewMenuItem("Buscar escuela", reverse_lazy("escuela_buscar"), weight=11, icon="fa-search"), ViewMenuItem("Crear escuela", reverse_lazy("escuela_add"), weight=12, icon="fa-plus-square-o", perm='escuela.add_escuela'), ) Menu.add_item( "user", ViewMenuItem("Escuelas", reverse_lazy('escuela_crear'), weight=10, icon="fa-building-o", test=prueba_externo, children=escuela_children))
from django.core.urlresolvers import reverse_lazy from menu import Menu from apps.main.menus import ViewMenuItem # Nación Digital ie_children = ( ViewMenuItem( "Informe laboratorios", reverse_lazy("laboratorio_informe"), weight=10, icon="fa-desktop"), ViewMenuItem( "Informe validaciones", reverse_lazy("ie_validacion_informe"), weight=10, icon="fa-check"),) Menu.add_item( "user", ViewMenuItem( "Nación digital", '#', weight=40, icon="fa-cubes", group="nacion_digital", children=ie_children)) ie_admin = ( ViewMenuItem( "Versiones de validación", reverse_lazy("ie_versionvalidacion_add"),
from django.core.urlresolvers import reverse_lazy from menu import Menu from apps.main.menus import ViewMenuItem # Evaluación mye_children = ( ViewMenuItem("Cooperantes", reverse_lazy("cooperante_list"), weight=10, icon="fa-users"), ViewMenuItem("Proyectos", reverse_lazy("proyecto_list"), weight=20, icon="fa-object-group"), ViewMenuItem("Listado de solicitudes", reverse_lazy("solicitud_list"), weight=40, icon="fa-folder-open-o"), ViewMenuItem("Listado de validaciones", reverse_lazy("validacion_list"), weight=50, icon="fa-check-square-o"), ) Menu.add_item( "user", ViewMenuItem("Evaluación", '#', weight=10, icon="fa-search", group="mye",
from django.core.urlresolvers import reverse_lazy from menu import Menu from apps.main.menus import ViewMenuItem # --- CONTACTOS FUNDRAISINGS --- # contacto_children = ( ViewMenuItem( "Contactos", reverse_lazy("contacto_contactos"), weight=10, icon="fa-user"), ViewMenuItem( "Empresa", reverse_lazy("contacto_empresa"), weight=20, icon='fa-building-o'), ViewMenuItem( "Evento", reverse_lazy("contacto_evento"), weight=30, icon="fa-calendar"),) Menu.add_item( "user", ViewMenuItem( "Directorio", reverse_lazy('contacto_contactos'), weight=40, icon="fa-users", group="fr", children=contacto_children))
from django.core.urlresolvers import reverse_lazy from menu import Menu from apps.main.menus import ViewMenuItem # Naat naat_children = ( ViewMenuItem("Crear participante", reverse_lazy("participante_naat_add"), weight=20, icon="fa-user"), ViewMenuItem("Calendario", reverse_lazy("sesion_naat_calendar"), weight=10, icon="fa-calendar"), ) Menu.add_item( "user", ViewMenuItem("Naat", '#', weight=10, icon="fa-sun-o", group="naat", children=naat_children))
from django.core.urlresolvers import reverse_lazy from menu import Menu from apps.main.menus import ViewMenuItem # --- Publicación --- # publi_children = ( ViewMenuItem("Crear Publicación", reverse_lazy("create_post"), weight=30, icon="fa-bookmark"), ViewMenuItem("Editar Publicación", reverse_lazy("view_private_post"), weight=20, icon="fa-terminal "), ViewMenuItem("Vista de Usuarios", reverse_lazy("view_post"), weight=10, icon="fa-bookmark-o"), ) Menu.add_item( "user", ViewMenuItem("Publicaciones", reverse_lazy('view_post'), weight=100, icon="fa-book", group="u_valle", children=publi_children))
from django.core.urlresolvers import reverse_lazy from menu import Menu from apps.main.menus import ViewMenuItem # Menú de capacitación cyd_children = ( ViewMenuItem( "Cursos", reverse_lazy("curso_list"), weight=10, icon="fa-book"), ViewMenuItem( "Sedes", reverse_lazy("sede_list"), weight=10, icon="fa-map"), ViewMenuItem( "Grupos", reverse_lazy("grupo_list"), weight=10, icon="fa-users"),) cyd_calendario_children = ( ViewMenuItem( "Capacitación", reverse_lazy("cyd_calendario"), weight=10, icon="fa-calendar"),) cyd_participantes_children = ( ViewMenuItem(
from django.core.urlresolvers import reverse_lazy from menu import Menu from apps.main.menus import ViewMenuItem # Administración admin_children = ( ViewMenuItem( "Lista de perfiles", reverse_lazy("perfil_list"), weight=91, icon="fa-users", perm='users.add_user'), ViewMenuItem( "Crear nuevo usuario", reverse_lazy("perfil_add"), weight=92, icon="fa-user", perm='users.add_user'),) Menu.add_item( "user", ViewMenuItem( "Administración", reverse_lazy("perfil_list"), weight=90, icon="fa-key", children=admin_children, group='admin'))
from django.core.urlresolvers import reverse_lazy from django.urls import reverse from menu import Menu from apps.main.menus import ViewMenuItem # Inventario # Entrada entrada_children = ( ViewMenuItem( "Listado de Entradas", reverse_lazy('entrada_list'), weight=12, icon="fa-list", ), ViewMenuItem( "Agregar Entrada", reverse_lazy('entrada_add'), weight=12, perm="inventario.add_entrada", icon="fa-pencil-square-o", ), ) # Solicitudes de Movimiento solicitudes_children = ( ViewMenuItem( "Listado de Solicitudes", reverse_lazy('solicitudmovimiento_list'), weight=12, icon="fa-list-ul", ), ViewMenuItem(