|
@@ -0,0 +1,139 @@
|
|
|
|
|
+<!DOCTYPE html>
|
|
|
|
|
+<!--suppress XmlHighlighting -->
|
|
|
|
|
+<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
|
|
|
|
+<head>
|
|
|
|
|
+ <!-- Required meta tags -->
|
|
|
|
|
+ <meta charset="utf-8">
|
|
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
|
+
|
|
|
|
|
+ <!-- Bootstrap CSS -->
|
|
|
|
|
+ <!--suppress SpellCheckingInspection -->
|
|
|
|
|
+ <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
|
|
|
|
|
+ integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
|
|
|
|
|
+
|
|
|
|
|
+ <!--suppress SpellCheckingInspection -->
|
|
|
|
|
+ <script src="https://code.jquery.com/jquery-3.6.0.min.js"
|
|
|
|
|
+ integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|
|
|
|
|
+ <title>Grants - appendix images</title>
|
|
|
|
|
+
|
|
|
|
|
+</head>
|
|
|
|
|
+<body>
|
|
|
|
|
+<!--/*@thymesVar id="appendixImageCommand" type="scot.carricksoftware.grants.commands.images.AppendixImageCommand"*/-->
|
|
|
|
|
+<div th:insert="~{fragments/layout::banner}"></div>
|
|
|
|
|
+
|
|
|
|
|
+<div class="container border border-info rounded-3 text-center p-4">
|
|
|
|
|
+ <h3>Appendix Image Details</h3>
|
|
|
|
|
+ <form th:object="${appendixImageCommand}" th:action="@{/appendixImage}" method="post">
|
|
|
|
|
+ <div th:if="${#fields.hasErrors('*')}" class="alert alert-danger">
|
|
|
|
|
+ <p>Please Correct The Errors Below</p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <table style="width:100%;">
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td style="text-align: right;">
|
|
|
|
|
+ <label for="id"><span style="color: rgb(255,0,0);">*</span>Database Id : </label>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td style="text-align: left;">
|
|
|
|
|
+ <input class="form-control" id="id"
|
|
|
|
|
+ th:field="*{id}" type="text" readonly>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td style="text-align: right;">
|
|
|
|
|
+ <label for="image">Image : </label>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td style="text-align: left;">
|
|
|
|
|
+ <select id="image" name="image" th:field="*{image}">
|
|
|
|
|
+ <option th:value="${''}" th:text="${''}"></option>
|
|
|
|
|
+ <option th:each="image : ${images}"
|
|
|
|
|
+ th:value="${image.id}" th:text="${image.name}"></option>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ <div th:if="${#fields.hasErrors('image')}">
|
|
|
|
|
+ <ul class="text-danger">
|
|
|
|
|
+ <li th:each="err : ${#fields.errors('image')}" th:text="${err}"/>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td style="text-align: right;">
|
|
|
|
|
+ <label for="order">Order : </label>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td style="text-align: left;">
|
|
|
|
|
+ <input class="form-control" id="order"
|
|
|
|
|
+ th:field="*{order}" type="text">
|
|
|
|
|
+ <div th:if="${#fields.hasErrors('order')}">
|
|
|
|
|
+ <ul class="text-danger">
|
|
|
|
|
+ <li th:each="err : ${#fields.errors('order')}" th:text="${err}"/>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td style="text-align: right;">
|
|
|
|
|
+ <label for="level">Level : </label>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td style="text-align: left;">
|
|
|
|
|
+ <input class="form-control" id="level"
|
|
|
|
|
+ th:field="*{level}" type="text">
|
|
|
|
|
+ <div th:if="${#fields.hasErrors('level')}">
|
|
|
|
|
+ <ul class="text-danger">
|
|
|
|
|
+ <li th:each="err : ${#fields.errors('level')}" th:text="${err}"/>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td style="text-align: right;">
|
|
|
|
|
+ <label for="caption">Caption : </label>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td style="text-align: left;">
|
|
|
|
|
+ <input class="form-control" id="caption"
|
|
|
|
|
+ th:field="*{caption}" type="text">
|
|
|
|
|
+ <div th:if="${#fields.hasErrors('caption')}">
|
|
|
|
|
+ <ul class="text-danger">
|
|
|
|
|
+ <li th:each="err : ${#fields.errors('caption')}" th:text="${err}"/>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td style="text-align: right;">
|
|
|
|
|
+ <label for="width">Width : </label>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td style="text-align: left;">
|
|
|
|
|
+ <input class="form-control" id="width"
|
|
|
|
|
+ th:field="*{width}" type="text">
|
|
|
|
|
+ <div th:if="${#fields.hasErrors('width')}">
|
|
|
|
|
+ <ul class="text-danger">
|
|
|
|
|
+ <li th:each="err : ${#fields.errors('width')}" th:text="${err}"/>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td style="text-align: right;">
|
|
|
|
|
+ <label for="height">Height : </label>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td style="text-align: left;">
|
|
|
|
|
+ <input class="form-control" id="height"
|
|
|
|
|
+ th:field="*{height}" type="text">
|
|
|
|
|
+ <div th:if="${#fields.hasErrors('height')}">
|
|
|
|
|
+ <ul class="text-danger">
|
|
|
|
|
+ <li th:each="err : ${#fields.errors('height')}" th:text="${err}"/>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td> </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ </table>
|
|
|
|
|
+ <button type="submit" class="btn btn-primary">Commit</button>
|
|
|
|
|
+ <a class="btn btn-secondary" th:href="@{/appendixImages}" th:text="${'List all'}">List all</a>
|
|
|
|
|
+ <a class="btn btn-success" th:href="@{/}" th:text="${'Home'}">Home</a>
|
|
|
|
|
+ <h6><span style="color: rgb(255,0,0);">*</span><span> Cannot be edited</span></h6>
|
|
|
|
|
+ </form>
|
|
|
|
|
+</div>
|
|
|
|
|
+</body>
|
|
|
|
|
+</html>
|