Ignore:
Timestamp:
08/24/23 03:31:06 (16 months ago)
Author:
DenicaKj <dkorvezir@…>
Branches:
master
Children:
4158cac
Parents:
1e7126f
Message:

filter for genre

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/resources/templates/films.html

    r1e7126f rbcb4acc  
    207207        <label style="color: white;font-size: 20px;font-weight: bold">Избери Кино:</label>
    208208        <select name="id_cinema" class="form-control" id="id_cinema">
     209            <option th:value="${null}" text="Please Select"></option>
    209210            <option
    210                     th:selected="${cinemas.get(1)}"
    211211                    th:each="cinema : ${cinemas}"
    212212                    th:value="${cinema.getId_cinema()}"
     
    218218        <div class="form-group">
    219219            <label style="color: white;font-size: 20px;font-weight: bold">Избери Жарн:</label>
    220             <select name="id_cinema" class="form-control" id="id_cinema">
     220            <select name="id_genre" class="form-control" id="id_genre">
     221                <option th:value="${null}" text="Please Select"></option>
    221222                <option
    222                         th:selected="${genres.get(1)}"
    223223                        th:each="genre : ${genres}"
    224                         th:value="${}"
    225                         th:text="${cinema.getName()}">
     224                        th:value="${genre.ordinal}"
     225                        th:text="${genre.name}">
    226226                </option>
    227227            </select>
Note: See TracChangeset for help on using the changeset viewer.