Skip to content

Instantly share code, notes, and snippets.

@stefanozanella
Created January 12, 2021 09:41
Show Gist options
  • Save stefanozanella/ca41f07a75bbaffaf3c45da40ec7f7ca to your computer and use it in GitHub Desktop.
Save stefanozanella/ca41f07a75bbaffaf3c45da40ec7f7ca to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Add stock purchase</title>
</head>
<body>
<h2>Add a stock purchase</h2>
<form method="post" th:action="@{/stock_purchase}" th:object="${stockPurchase}">
<p>
<label for="ticker">Stock symbol</label>
<input type="text" id="ticker" th:field="*{ticker}">
<label for="purchaseDate">When was the stock purchased?</label>
<input type="date" id="purchaseDate" th:field="*{purchaseDate}">
</p>
<p>
<input type="submit" value="Add">
</p>
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment