Ignore:
Timestamp:
02/03/24 17:15:01 (5 months ago)
Author:
Blazho <aleksandar.blazhevski@…>
Branches:
master
Children:
d4d8fb9
Parents:
501396e
Message:

Dodadeni se komentarite pod sekoj recept

File:
1 edited

Legend:

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

    r501396e raea04dd  
    1111            margin: 16px;
    1212            border-style: groove;
     13        }
     14        textarea{
     15            width: 70%;
    1316        }
    1417    </style>
     
    6770        </div>
    6871
     72        <form class="p-4 border" th:method="POST" th:action="@{'/komentar/{id}' (id=${recept.recId})}">
     73            <div class="pt-3">
     74                <label for="kom-ocena">Внеси оцена</label>
     75                <input id="kom-ocena" name="ocena" type="number" min="1" max="10" step="1" required>
     76            </div>
    6977
    70         <div class="mt-4">KOMENTARI TO DO</div>
     78            <div class="pt-3">
     79                <textarea name="komentar">Внеси коментар..</textarea>
     80            </div>
     81            <div class="pt-3">
     82                <label for="telefon">Избери телефон</label>
     83                <select id="telefon" name="telefon" required>
     84                    <option selected></option>
     85                    <option th:each="tel : ${telefoni}" th:text="tel" th:value="tel"></option>
     86                </select>
     87            </div>
     88            <div class="pt-3">
     89                <button>Submit</button>
     90            </div>
     91        </form>
     92
     93        <div class="mt-4">
     94            <div th:each="komentar : ${komentari}" class="border p-4">
     95                <p th:text="${komentar.imePrezime}">Ime Prezime</p>
     96                <p th:text="${komentar.getDataFormatirana()}">2022-12-09 18:25:58</p>
     97                <p th:text="${komentar.ocena}">8</p>
     98                <p th:text="${komentar.text}" class="border">text</p>
     99            </div>
     100        </div>
    71101    </div>
    72102
Note: See TracChangeset for help on using the changeset viewer.