fix button text in createOrUpdatePetForm.html in case of new pet (issue #252)

This commit is contained in:
dastier 2017-07-09 23:45:42 +03:00 committed by Dave Syer
parent 4ab6a800c8
commit 3e65dee237

View file

@ -26,7 +26,7 @@
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button
th:with="text=${owner['new']} ? 'Add Pet' : 'Update Pet'"
th:with="text=${pet['new']} ? 'Add Pet' : 'Update Pet'"
class="btn btn-default" type="submit" th:text="${text}">Add
Pet</button>
</div>