Index: Prototype Application/Paw5/src/main/resources/templates/pet-details.html
===================================================================
--- Prototype Application/Paw5/src/main/resources/templates/pet-details.html	(revision 33b9f30f8d3cf434adca0001b56e8de3aba4f9ec)
+++ Prototype Application/Paw5/src/main/resources/templates/pet-details.html	(revision cadbec365d53b9fd751e0376b515ab382a1ef7b5)
@@ -67,5 +67,7 @@
     </tr>
 </table>
-<form method="POST" th:action="@{'/submit-adopton-{id}' (id=${session.pet.getId()})}" th:disabled="${session.disableAdoption}">
+<form method="POST"
+      th:action="@{'/submit-adopton-{id}' (id=${session.pet.getId()})}"
+      th:if="${session.pet.getAdoptionId()==null}">
     <button id="submit" type="submit">Adopt</button>
 </form>
