The parameter "path" is added to the model
[demos/testing] / src / main / resources / templates / home.html
1 <!doctype html>
2 <html lang="en" xmlns:th="http://www.thymeleaf.org"  th:replace="~{layout :: pagelayout(~{:: title}, ~{:: h1}, ~{:: div.card-text})}">
3   <head>
4     <meta charset="utf-8">
5     <title>Shows Remote-Content</title>
6   </head>
7   <body>
8     <h1>Fetched Data</h1></div>
9     <div class="card-text">
10       <pre th:text="${text}">TEXT</pre>
11     </div>
12     <div class="card-text">
13       <form action="#" th:action="@{/}" method="get">
14         <div class="form-group">
15           <label for="path">Remote-Path to fetch:</label>
16           <input type="text" name="path" value="FOO" th:value="${path}" class="form-control" />
17         </div>
18         <button type="submit" class="btn btn-primary">Submit</button>
19       </form>
20     </div>
21   </body>
22 </html>