Added thymeleaf related buttons.

This commit is contained in:
2021-01-20 16:00:37 +01:00
parent d44fc2f7b2
commit ccce5d2bd0
8 changed files with 62 additions and 7 deletions

View File

@@ -60,18 +60,27 @@
<td>Value</td>
</tr>
<tr th:each="entry, stats : *{httpHeaders}">
<td><input type="text" name="value" th:value="${entry.key}"
<td><input type="text" name="value" class="headerName" th:value="${entry.key}"
disabled="disabled"/></td>
<td>
&#9;
<input type="text" name="value"
th:field="*{httpHeaders[__${entry.key}__]}"/>
<input type="text" name="value" class="headerField" th:field="*{httpHeaders[__${entry.key}__]}"/>
<button type="submit" name="removeHeader" th:value="${entry.key}">
<img src="/img/icons8-cancel-64.png" style="width: 20px;"/>
</button>
</td>
</tr>
</table>
<table id="nextHeaderTable">
<tr>
<td>
<input type="text" name="headerKey" id="headerKey" class="headerField" placeholder="next header"/>
</td>
<td>
<input type="text" name="headerValue" id="headerValue" class="headerField" placeholder="value"/>
<input type="image" name="addHeader" src="/img/icons8-plus-48.png" style="width: 20px;"/>
</td>
</tr>
</table>
</div>
<div id="history" style="display:none;"></div>
</div>