Ignore:
Timestamp:
01/06/23 21:08:03 (23 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Children:
89865ae
Parents:
9dcbf44
Message:

Added all advanced reports, added bootstrap for every template

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/autopartz/controller/AdminController.java

    r9dcbf44 rcab5859  
    3737    public String getAllUsers(Model model){
    3838        List<User> pendingList = userService.findAllUsers().stream().filter(u->u.getAuthorities().contains(Role.ROLE_PENDING_DELIVERYMAN) || u.getAuthorities().contains(Role.ROLE_PENDING_WAREHOUSEMAN)).toList();
    39         model.addAttribute("users", pendingList);
     39        if(pendingList.size()==0){
     40            model.addAttribute("hasError",true);
     41        }
     42        else {
     43            model.addAttribute("hasError",false);
     44            model.addAttribute("users", pendingList);
     45        }
    4046        model.addAttribute("bodyContent", "viewUsers");
    4147        return "master-template";
Note: See TracChangeset for help on using the changeset viewer.