Add update/delete to the web-ui sample

Closes gh-4735
See gh-4733
This commit is contained in:
kozazz
2015-12-08 13:07:55 +09:00
committed by Phillip Webb
parent ffbdfc586b
commit 0de4b6ce63
5 changed files with 36 additions and 1 deletions

View File

@@ -26,6 +26,10 @@
Messages
</a>
</div>
<input type="hidden"
th:field="*{id}"
th:class="${#fields.hasErrors('id')} ? 'field-error'"
/>
<label for="summary">Summary</label>
<input type="text"
th:field="*{summary}"
@@ -35,7 +39,7 @@
th:field="*{text}"
th:class="${#fields.hasErrors('text')} ? 'field-error'"></textarea>
<div class="form-actions">
<input type="submit" value="Create"/>
<input type="submit" value="Save"/>
</div>
</form>
</div>

View File

@@ -37,6 +37,17 @@
A detailed message that is longer than the summary.
</dd>
</dl>
<div class="pull-left">
<a href="messages"
th:href="@{'/delete/' + ${message.id}}">
delete
</a>
|
<a href="form.html"
th:href="@{'/modify/' + ${message.id}}">
modify
</a>
</div>
</div>
</body>
</html>