Ignore:
Timestamp:
03/08/23 17:43:21 (16 months ago)
Author:
SazdovaEkaterina <sazdovaekaterina@…>
Branches:
main
Children:
5dea0b7
Parents:
c03e53b
Message:

fix usages that got broken with the changes

Location:
Prototype Application/Paw5/src/main/resources/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Prototype Application/Paw5/src/main/resources/templates/list-posts-adoption.html

    rc03e53b re76c5a6  
    4747    <tr th:each = "post : ${posts}">
    4848        <td th:text = "${post.getId()}"></td>
    49         <td th:each = "pet : ${pets}" th:if="${post.getPetId()==pet.getId()}" th:text = "${pet.getName()}"></td>
    50         <td th:each = "pet : ${pets}" th:if="${post.getPetId()==pet.getId()}" th:text = "${pet.getSpecies()}"></td>
     49        <td th:text = "${post.getPet().getName()}"></td>
     50        <td th:text = "${post.getPet().getSpecies()}"></td>
    5151        <td>
    5252            <form th:action="@{'/pet-details-{id}' (id=${post.getId()})}"
  • Prototype Application/Paw5/src/main/resources/templates/pet-details.html

    rc03e53b re76c5a6  
    6868</table>
    6969<form method="POST"
    70       th:action="@{'/submit-adopton-{id}' (id=${pet.getId()})}"
    71       th:if="${pet.getAdoptionId()==null}">
     70      th:action="@{'/submit-adoption-{id}' (id=${pet.getId()})}"
     71      th:if="${pet.getAdoption==null}">
    7272    <button id="submit"
    7373            type="submit"
Note: See TracChangeset for help on using the changeset viewer.