Changes in / [cb5debb:9eba1fb]


Ignore:
Location:
src/main
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/moviezone/repository/FilmRepository.java

    rcb5debb r9eba1fb  
    22
    33import com.example.moviezone.model.Film;
    4 import com.example.moviezone.model.procedures.FilmsReturnTable;
    54import org.springframework.data.jpa.repository.JpaRepository;
    65import org.springframework.data.jpa.repository.query.Procedure;
     
    109
    1110public interface FilmRepository extends JpaRepository<Film,Integer> {
    12     @Procedure("project.getFilmsFromCinema")
    13     List<FilmsReturnTable> getFilmsFromCinema(int id);
     11
    1412}
  • src/main/java/com/example/moviezone/web/HomeController.java

    rcb5debb r9eba1fb  
    3333private final ProjectionIsPlayedInRoomRepository projectionIsPlayedInRoomRepository;
    3434
    35 
    3635    public HomeController(FilmService filmService, UserService userService, ProjectionService projectionService, EventService eventService, TicketService ticketService, WorkerService workerService, CustomerRatesFilmService customerRatesFilmService, CinemaService cinemaService, CinemaOrganizesEventService cinemaOrganizesEventService, CinemaPlaysFilmService cinemaPlaysFilmService, ProjectionIsPlayedInRoomRepository projectionIsPlayedInRoomRepository) {
    37        
    3836        this.filmService = filmService;
    3937        this.userService = userService;
     
    130128    @GetMapping("/films")
    131129    public String getFilmsPage(Model model){
    132         model.addAttribute("cinemas",cinemaService.findAllCinemas());
    133130        model.addAttribute("films",filmService.findAllFilms());
    134131        model.addAttribute("bodyContent","films");
  • src/main/resources/templates/films.html

    rcb5debb r9eba1fb  
    194194        border-radius: 20px;
    195195    }
    196     .form-group{
    197         width: 200px;
    198     }
    199 
    200196</style>
    201 <div>
    202     <div class="form-group">
    203         <label style="color: white;font-size: 20px;font-weight: bold">Кино</label>
    204         <select name="cinemas" class="form-control">
    205             <option
    206                     th:selected="${cinemas.get(1)}"
    207                     th:each="cinema : ${cinemas}"
    208                     th:value="${cinema.getId_cinema()}"
    209                     th:text="${cinema.getName()}">
    210             </option>
    211         </select>
    212     </div>
    213 
    214 </div>
    215197<div xmlns:th="http://www.thymeleaf.org">
    216198    <div class="main">
Note: See TracChangeset for help on using the changeset viewer.