def get_context_data(self, **kwargs): kwargs['title'] = 'Permisos' kwargs['title_panel'] = 'Eliminar permiso' kwargs['breadcrumbs'] = convert_dict_breadcrums([ ('Inicio', reverse('index')), ('Usuarios', '#'), ('Permisos', reverse('users:lista_permisos')), ('Eliminar', '#') ]) return super(DeletePermisos, self).get_context_data(**kwargs)
def get_context_data(self, **kwargs): kwargs['title'] = 'Roles del sistema' kwargs['title_panel'] = 'Eliminar rol' kwargs['breadcrumbs'] = convert_dict_breadcrums([ ('Inicio', reverse('index')), ('Usuarios', '#'), ('Roles', reverse('users:lista_roles')), ('Eliminar', '#') ]) return super(DeleteRoles, self).get_context_data(**kwargs)
def get_context_data(self, **kwargs): kwargs['title'] = 'Permisos del sistema' kwargs['title_panel'] = 'Listado de permisos' kwargs['breadcrumbs'] = convert_dict_breadcrums([('Inicio', reverse('index')), ('Usuarios', '#'), ('Permisos', '#')]) kwargs['url_datatable'] = reverse('users:rest:lista_permisos') kwargs['options'] = self.request.user.has_perms( self.permissions.get('crear')) kwargs['crear_permiso'] = reverse('users:crear_permisos') return super(ListaPermisos, self).get_context_data(**kwargs)
def get_context_data(self, **kwargs): kwargs['title'] = 'Dashboard' kwargs['breadcrumbs'] = convert_dict_breadcrums([('Home', '#')]) return super(Index, self).get_context_data(**kwargs)