Ignore:
Timestamp:
03/10/23 22:17:37 (16 months ago)
Author:
SazdovaEkaterina <sazdovaekaterina@…>
Branches:
main
Children:
4ab3aae
Parents:
56a6233
Message:

add approve functionality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Prototype Application/Paw5/src/main/resources/templates/approve-adopters.html

    r56a6233 r7aa3382  
    5050<div>
    5151  <h2>Adopters who are waiting for your approval</h2>
    52     <ul>
    53       <li
    54           th:each="adopter : ${needApproval}"
    55           th:text="${adopter.getName()}">
    56           <!--napravi tabela-->
    57       </li>
    58     </ul>
     52    <table>
     53        <tr>
     54            <td>Name</td>
     55            <td>Email Address</td>
     56            <td>Telephone Number</td>
     57            <td></td>
     58        </tr>
     59        <tr th:each="adopter : ${needApproval}">
     60            <td th:text="${adopter.getName()}"></td>
     61            <td th:text="${adopter.getEmail()}"></td>
     62            <td th:text="${adopter.getTelephone()}"></td>
     63            <td>
     64                <form method="POST"
     65                      th:action="@{'/submit-approval-{id}' (id=${adopter.getId()})}">
     66                    <button id="submit"
     67                            type="submit"
     68                            class="btn">Approve</button>
     69                </form>
     70            </td>
     71        </tr>
     72    </table>
    5973</div>
    6074</body>
Note: See TracChangeset for help on using the changeset viewer.