Files
timetrack/src/main/resources/templates/projectmanagement/app/assign.html

63 lines
2.5 KiB
HTML

<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:sec="http://www.thymeleaf.org/extras/spring-security" layout:decorate="~{layout/main.html}">
<head>
<title>Projektmanagement</title>
</head>
<body>
<font layout:fragment="title">Projekt</font>
<ul layout:fragment="menu">
<li class="nav-item" sec:authorize="hasRole('timetrack_user')"><a class="nav-link btn btn-secondary btn-white-text" th:href="@{/projectmanagement}">zur Projektübersicht</a></li>
</ul>
<main layout:fragment="content">
<div class="container">
<div class="row">
<div class="col-2">Name</div>
<div class="col-10" th:text="${app.name}"></div>
<div class="col-2">Beschreibung</div>
<div class="col-10" th:text="${app.description}"></div>
<div class="col-2">Basisfunktion</div>
<div class="col-10" th:text="${app.basicFunctionality}"></div>
<div class="col-2">URL der Entwicklung</div>
<div class="col-10" th:text="${app.repositoryUrl}"></div>
<div class="col-2" th:if="${app.fkReplacedByApp}">Ersetzt durch andere App</div>
<div class="col-10" th:if="${app.fkReplacedByApp}">
<a th:href="@{/projectmanagement/app/{id}/assign(id=${app.fkReplacedByApp})}" th:text="${app.fkReplacedByApp}"></a>
</div>
<div class="col-2">Bundle</div>
<div class="col-10">
<th:block th:with="b=${bundleMap.get(app.fkBundle)}">
<div th:text="${b.name}"></div>
<div th:text="${b.description}"></div>
</h:block>
</div>
</div>
<div class="row">
<div class="col-12">
<table class="table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Beschreibung</th>
<th>Zuordnung</th>
</tr>
</thead>
<tbody>
<tr th:each="p : ${workpackages}">
<td>
<input type="checkbox" th:checked="${p.isIn(linked)}" /> <a th:href="@{/projectmanagement/workpackage/{w}/apps(w=${p.pkWorkpackage})}" th:text="${p.name}"></a>
</td>
<td th:text="${p.description}"></td>
<td>
<a th:href="@{/projectmanagement/workpackage/{w}/app/{a}/toggle(w=${p.pkWorkpackage},a=${app.pkApp})}" class="btn btn-outline-secondary">
<span th:if="${p.isIn(linked)}">rausschmeißen</span>
<span th:unless="${p.isIn(linked)}">zuweisen</span>
</a>
</td>
</tr>
</table>
</div>
</div>
</div>
</main>
</body>
</html>