Ignore:
Timestamp:
02/08/23 12:10:11 (23 months ago)
Author:
milamihajlovska <mila.mihajlovska01@…>
Branches:
master
Children:
2a98e34
Parents:
afa6544
Message:

update i homeController for getFilmPage1 method

File:
1 edited

Legend:

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

    rafa6544 rc05cd97  
    200200</style>
    201201<div>
    202     <form th:action="@{'/home/getFilm/{id}' (id=${film.getId_film()})}"
    203           th:method="POST">
    204 
    205     <div class="form-group">
    206         <label style="color: white;font-size: 20px;font-weight: bold">Кино</label>
    207         <select name="cinemas" class="form-control" id="cinema">
    208             <option
    209                     th:selected="${cinemas.get(1)}"
    210                     th:each="cinema : ${cinemas}"
    211                     th:value="${cinema.getId_cinema()}"
    212                     th:text="${cinema.getName()}">
    213             </option>
     202<!--    <form th:action="@{'/home/getFilm/{id}' (id=${film.getId_film()})}"-->
     203<!--          th:method="POST">-->
     204
     205<!--    <div class="form-group">-->
     206<!--        <label style="color: white;font-size: 20px;font-weight: bold">Кино</label>-->
     207<!--        <select name="cinemas" class="form-control" id="cinema">-->
     208<!--            <option-->
     209<!--                    th:selected="${cinemas.get(1)}"-->
     210<!--                    th:each="cinema : ${cinemas}"-->
     211<!--                    th:value="${cinema.getId_cinema()}"-->
     212<!--                    th:text="${cinema.getName()}">-->
     213<!--            </option>-->
     214<!--        </select>-->
     215
     216<!--    </div>-->
     217<!--        <button class="button" type="submit">Filter</button>-->
     218<!--</form>-->
     219    <form id="filter-form">
     220
     221        <label for="f2">Cinema</label>
     222        <select name="id_cinema" id="f2">
     223            <option value="">All</option>
     224            <option th:each="cinema : ${cinemas}" th:value="${cinema.id_cinema}" th:text="${cinema.name}"> [course]</option>
    214225        </select>
    215 
    216     </div>
    217         <button class="button" type="submit">Filter</button>
    218 </form>
     226        <button id="filter" type="submit">Filter</button>
     227    </form>
    219228
    220229</div>
     
    225234            <div class="card">
    226235                <div class="imgBx">
    227                     <img th:src=""/>
     236                    <img th:src="@{${film.getUrl()}}"/>
    228237                </div>
    229238                <div class="contentBx">
Note: See TracChangeset for help on using the changeset viewer.