| <html xmlns:th="https://www.thymeleaf.org"> |
| <head> |
| <title>APP4MC Cloud Manager - Administration</title> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| </head> |
| <body> |
| |
| <div> |
| <h2>Configure available APP4MC Cloud services</h2> |
| </div> |
| <div> |
| <form action="#" th:action="@{/admin/save}" th:object="${dto}" method="POST"> |
| <fieldset> |
| <table> |
| <thead> |
| <tr> |
| <th>Service Name</th> |
| <th>Service Base URL</th> |
| <th>Service Description</th> |
| </tr> |
| </thead> |
| <tbody> |
| <tr th:each="service, stat : *{services}"> |
| <td><input th:field="*{services[__${stat.index}__].name}" /></td> |
| <td><input th:field="*{services[__${stat.index}__].baseUrl}" /></td> |
| <td><input th:field="*{services[__${stat.index}__].description}" /></td> |
| </tr> |
| </tbody> |
| </table> |
| <input type="submit" id="submitButton" th:value="Save"> |
| <input type="reset" id="resetButton" name="reset" th:value="Reset"/> |
| </fieldset> |
| </form> |
| </div> |
| <div> |
| <h2>Configure Proxy</h2> |
| </div> |
| <div> |
| <form action="/admin/saveProxy" method="POST"> |
| <fieldset> |
| <table> |
| <tr> |
| <td>Host:</td> |
| <td><input type="text" name="proxy_host" th:value="${proxy_host}"/></td> |
| </tr> |
| <tr> |
| <td>Port:</td> |
| <td><input type="text" name="proxy_port" th:value="${proxy_port}"/></td> |
| </tr> |
| <tr> |
| <td>User:</td> |
| <td><input type="text" name="proxy_user" th:value="${proxy_user}"/></td> |
| </tr> |
| <tr> |
| <td>Password:</td> |
| <td><input type="password" name="proxy_pwd" th:value="${proxy_pwd}"/></td> |
| </tr> |
| </table> |
| <input type="submit" id="submitButton" th:value="Save"> |
| <input type="reset" id="resetButton" name="reset" th:value="Reset"/> |
| </fieldset> |
| </form> |
| </div> |
| <div> |
| <a th:href="@{/}">Go back</a> |
| </div> |
| |
| </body> |
| </html> |