Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 2868bb9a

Přidáno uživatelem Vojtěch Danišík před asi 4 roky(ů)

re #7871 Displaying list of assemblies + displaying result table of selected assembly.

Zobrazit rozdíly:

src/main/webapp/WEB-INF/templates/index.html
9 9
	</head>
10 10
	<body>
11 11
		<nav th:replace="fragments/headers :: nav"></nav>
12
		<div th:text="${message}"></div>
13
		<table>
14
			<tr th:each="contingencyTableRow : ${contingencyTableRows}">
15
				<div th:if="${contingencyTableRow.isHeader()}">
16
					<th th:each="contingencyTableRowCell : ${contingencyTableRow.getCells()}">
17
						<span th:text="${contingencyTableRowCell.getValue()}"></span>
18
					</th>
19
				</div>
20
				<div th:unless="${contingencyTableRow.isHeader()}">
21
					<td th:each="contingencyTableRowCell : ${contingencyTableRow.getCells()}">
22
						<span th:text="${contingencyTableRowCell.getValue()}"></span>
23
					</td>
24
				</div>
25
			</tr>
26
		</table>
12

  
13
		<form method="post" th:action="@{/}">
14
			<table>
15
				<tr th:each="iassembly : ${assemblies}">
16
					<div>
17
						<td>
18
							<span th:text="${iassembly.name}"></span>
19
							<button name="assemblyID" type="submit" th:value="${iassembly.id}">Select</button>
20
						</td>
21
					</div>
22
				</tr>
23
			</table>
24
		</form>
27 25
	</body>
28 26
</html>

Také k dispozici: Unified diff