There is a link in the navbar when clicked on which the mod window opens. The window itself is written in a separate page and is connected with a fragment in the right places. There is also a controller that collects a simple modelView.

Question:

How to send a modelView from the controller to this window?

Yuzayu Spring Boot Spring Date Zamlif

<ul class="nav navbar-nav navbar-right"> <li><a data-toggle="modal" th:href="'#closeShiftModalId'">Закрытие смены</a></li> <li><a href="/logout">Выход</a></li> </ul> 

Modal window itself

 <div th:fragment="closeShift"> <div align="center" class="modal fade" th:id="'closeShiftModalId'"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">&times;</button> <h4 class="modal-title">Закрытие смены</h4> </div> <div class="modal-body"> <form action="/closeShift" method="POST" class="form-signin"> <h2 class="form-signin-heading">Заполните Поля</h2> <input type="text" class="form-control" placeholder="апро" required="" autofocus="" /> <br></br> <table class="table table-striped"> <tr> <th> Фамилия </th> <th></th> </tr> <tbody th:each="allWorker : ${allWorker}"> <tr> <td th:text="${allWorker.lastName}" ></td> </tr> </tbody> </table> <button class="btn btn-lg btn-primary btn-block" type="submit">!!!!!!!</button> </form> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Закрыть</button> </div> </div> </div> </div> 

  • "Spring Boot Spring Springs Date Zamlif" Lol - Alex78191
  • Create a controller for the page. - Alex78191

0