Add update/delete to the web-ui sample
Closes gh-4735 See gh-4733
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user