File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
dossierfacile-bo/src/main
java/fr/gouv/bo/controller Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 20
20
@ Controller
21
21
@ RequiredArgsConstructor
22
22
public class BOUserController {
23
+ private static final String EMAIL = "email" ;
23
24
private final UserService userService ;
24
25
25
26
@ GetMapping ("/bo/users" )
26
27
public String getBOUser (Model model ) {
28
+ model .addAttribute (EMAIL , new EmailDTO ());
27
29
model .addAttribute ("users" , userService .findAll ());
28
30
return "bo/users" ;
29
31
}
Original file line number Diff line number Diff line change 50
50
< div >
51
51
< div class ="container ">
52
52
< form th:method ="post " th:action ="@{/bo/users} " th:object ="${email} " >
53
- < label for ="name " class ="form-label " id =""> Email:</ label >
54
- < input required type ="text " name ="name " id ="name " placeholder ="on domain dossierfacile.fr ... "
53
+ < label for ="email " class ="form-label " id =""> Email:</ label >
54
+ < input required type ="text " name ="name " id ="email " placeholder ="on domain dossierfacile.fr ... "
55
55
oninput ="setCustomValidity('') " th:field ="*{email} "/>
56
56
< button style ="font-size: initial;float: right;padding: 10px 16px 11px; " type ="submit " name ='action ' value ='ROLE_ADMIN ' class ="btn btn-info "> create admin</ button >
57
57
< button style ="margin-right: 10px;font-size: initial;float: right;padding: 10px 16px 11px; " type ="submit " name ='action ' value ='ROLE_OPERATOR ' class ="btn btn-success "> create operator</ button >
You canβt perform that action at this time.
0 commit comments