Browse Source

Remove unneeded submit buttons and forms

Signed-off-by: Pekka Helenius <fincer89@hotmail.com>
v0.0.2-alpha
Pekka Helenius 4 years ago
parent
commit
6fda2ccd95
3 changed files with 8 additions and 15 deletions
  1. +4
    -6
      bookstore/src/main/resources/templates/bookadd.html
  2. +4
    -6
      bookstore/src/main/resources/templates/bookedit.html
  3. +0
    -3
      bookstore/src/main/resources/templates/booklist.html

+ 4
- 6
bookstore/src/main/resources/templates/bookadd.html View File

@ -184,12 +184,10 @@
<br>
<form action="#" th:action="@{__${listpage}__}" method="get">
<button class="btn btn-success" type="submit"
th:text="${#messages.msgOrNull('button.page.list.return')} ?: 'button.page.list.return'">
button.page.list.return
</button>
</form>
<a class="btn btn-success" th:href="@{../__${listpage}__}"
th:text="${#messages.msgOrNull('button.page.list.return')} ?: 'button.page.list.return'">
button.page.list.return
</a>
</div>
</body>


+ 4
- 6
bookstore/src/main/resources/templates/bookedit.html View File

@ -188,12 +188,10 @@
<br>
<form action="#" th:action="@{../__${listpage}__}" method="get">
<button class="btn btn-success" type="submit"
th:text="${#messages.msgOrNull('button.page.list.return')} ?: 'button.page.list.return'">
button.page.list.return
</button>
</form>
<a class="btn btn-success" th:href="@{../__${listpage}__}"
th:text="${#messages.msgOrNull('button.page.list.return')} ?: 'button.page.list.return'">
button.page.list.return
</a>
</div>
</body>


+ 0
- 3
bookstore/src/main/resources/templates/booklist.html View File

@ -93,9 +93,6 @@
<tr style="background-color: #FFF !important;">
<td>
<!-- We could use button + <form> here to have uniform styling for all buttons (CSS),
and maybe other benefits but since we don't submit any data here but use this element
only to access a href link, we keep this structure simple. Change if needed. -->
<a class="btn btn-info" th:href="@{__${apirefpage}__}"
th:text="${#messages.msgOrNull('button.page.apiref')} ?: 'button.page.apiref'">
button.page.apiref


Loading…
Cancel
Save