Ignore:
Timestamp:
03/05/23 17:31:10 (16 months ago)
Author:
SazdovaEkaterina <sazdovaekaterina@…>
Branches:
main
Children:
9358bff
Parents:
33b9f30
Message:

show adoption option only if not adopted yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Prototype Application/Paw5/src/main/resources/templates/pet-details.html

    r33b9f30 rcadbec3  
    6767    </tr>
    6868</table>
    69 <form method="POST" th:action="@{'/submit-adopton-{id}' (id=${session.pet.getId()})}" th:disabled="${session.disableAdoption}">
     69<form method="POST"
     70      th:action="@{'/submit-adopton-{id}' (id=${session.pet.getId()})}"
     71      th:if="${session.pet.getAdoptionId()==null}">
    7072    <button id="submit" type="submit">Adopt</button>
    7173</form>
Note: See TracChangeset for help on using the changeset viewer.