delete documents
This commit is contained in:
		| @@ -104,10 +104,10 @@ div { | ||||
|  | ||||
| .mainpage { | ||||
| 	background-color: rgba(255, 255, 255, 0.4); | ||||
| 	padding: 8px; | ||||
| 	padding: 16px; | ||||
| 	overflow: auto; | ||||
| 	width: 100%; | ||||
| 	height: calc(100vh - 60px); | ||||
| 	height: calc(100vh - 72px); | ||||
| 	/* 60 px is the current height of the headline; TODO: calculate it */ | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -76,13 +76,16 @@ | ||||
| 							<div class="col-sm-10"> | ||||
| 								<input type="submit" class="btn btn-success" value="Ok" /> | ||||
| 								<a th:href="@{/admin/document}" class="btn btn-outline-secondary">Abbrechen</a> | ||||
| 								<div class="dropdown" style="display: inline"> | ||||
| 									<button class="btn btn-outline-danger dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false"> | ||||
| 										<i class="fas fa-trash-alt"></i> | ||||
| 									</button> | ||||
| 									<ul class="dropdown-menu"> | ||||
| 										<li><a class="dropdown-item" th:href="@{/admin/document/delete/{id}(id=${bean.pk})}">Dokument endgültig löschen</a> | ||||
| 									</ul> | ||||
| 								</div> | ||||
| 							</div> | ||||
| 						</div> | ||||
| 						<!-- TODO: | ||||
|  | ||||
| 								delete from db th:if="${bean.pk}" | ||||
| 							--> | ||||
|  | ||||
| 					</div> | ||||
| 				</div> | ||||
| 			</form> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user