This commit is contained in:
@@ -20,8 +20,8 @@
|
||||
<h2>Users</h2>
|
||||
<span th:each="user : ${users}">
|
||||
<strong th:if="${currentUser != null and currentUser == user.id()}" th:text="${user.name()}"></strong>
|
||||
<a th:unless="${currentUser != null and currentUser == user.id()}"
|
||||
th:href="@{/login(user=${user.id()})}" th:text="${user.name()}"></a>
|
||||
<a th:href="@{/login(user=${user.id()})}"
|
||||
th:text="${user.name()}" th:unless="${currentUser != null and currentUser == user.id()}"></a>
|
||||
</span>
|
||||
|
||||
<div th:if="${currentUser != null and currentUser > 0}">
|
||||
@@ -39,10 +39,10 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><label><input type="text" name="name" placeholder="Name"/></label></td>
|
||||
<td><label><input name="name" placeholder="Name" type="text"/></label></td>
|
||||
<td></td>
|
||||
<td><label><input type="number" name="target" placeholder="Target"/></label></td>
|
||||
<td><label><input type="number" name="weight" placeholder="Weight"/></label></td>
|
||||
<td><label><input name="target" placeholder="Target" type="number"/></label></td>
|
||||
<td><label><input name="weight" placeholder="Weight" type="number"/></label></td>
|
||||
<td><input type="submit" value="Create"/></td>
|
||||
</tr>
|
||||
<tr th:each="allowance : ${allowances}">
|
||||
@@ -66,7 +66,7 @@
|
||||
</form>
|
||||
|
||||
<h2>Tasks</h2>
|
||||
<form method="post" action="/createTask">
|
||||
<form action="/createTask" method="post">
|
||||
<table border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -91,10 +91,10 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label><input type="text" name="name" placeholder="Name"/></label></td>
|
||||
<td><label><input name="name" placeholder="Name" type="text"/></label></td>
|
||||
<td></td>
|
||||
<td><label><input type="number" name="reward" placeholder="Reward"/></label></td>
|
||||
<td><label><input type="text" name="schedule" placeholder="Schedule"/></label></td>
|
||||
<td><label><input name="reward" placeholder="Reward" type="number"/></label></td>
|
||||
<td><label><input name="schedule" placeholder="Schedule" type="text"/></label></td>
|
||||
<td><input type="submit" value="Create"/></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user