refactor vorerst fertig, bugsuche
This commit is contained in:
@ -2,11 +2,11 @@ DROP TABLE IF EXISTS event;
|
||||
|
||||
CREATE TABLE event
|
||||
(
|
||||
event_id INT PRIMARY KEY AUTO_INCREMENT,
|
||||
group_id VARCHAR(36) NOT NULL,
|
||||
group_version INT NOT NULL,
|
||||
exec_user_id VARCHAR(50) NOT NULL,
|
||||
target_user_id VARCHAR(50),
|
||||
event_type VARCHAR(32) NOT NULL,
|
||||
event_payload VARCHAR(2500) NOT NULL
|
||||
event_id INT PRIMARY KEY AUTO_INCREMENT,
|
||||
group_id VARCHAR(36) NOT NULL,
|
||||
group_version INT NOT NULL,
|
||||
exec_id VARCHAR(50) NOT NULL,
|
||||
target_id VARCHAR(50),
|
||||
event_type VARCHAR(32) NOT NULL,
|
||||
event_payload VARCHAR(2500) NOT NULL
|
||||
);
|
||||
|
||||
@ -44,7 +44,7 @@
|
||||
</div>
|
||||
|
||||
<!--Bearbeiten-Button-->
|
||||
<div class="mb-2" th:if="${group.isAdmin(user.getId())}">
|
||||
<div class="mb-2" th:if="${group.isAdmin(principal.getId())}">
|
||||
<form method="get"
|
||||
th:action="@{/gruppen2/details/{id}/edit(id=${group.getId()})}">
|
||||
<button class="btn btn-secondary btn-block">Gruppe verwalten</button>
|
||||
@ -56,7 +56,7 @@
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item d-flex justify-content-between"
|
||||
th:each="member : ${group.getMembers()}">
|
||||
<span th:text="${member}"></span>
|
||||
<span th:text="${member.format()}"></span>
|
||||
<span th:replace="~{fragments/groups :: userbadges}"></span>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@ -98,7 +98,7 @@
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item d-flex justify-content-between" th:each="member : ${group.getMembers()}">
|
||||
<div>
|
||||
<span th:text="${member.getGivenname() + ' ' + member.getFamilyname().charAt(0) + '.'}"></span>
|
||||
<span th:text="${member.format()}"></span>
|
||||
<span th:replace="~{fragments/groups :: userbadges}"></span>
|
||||
</div>
|
||||
|
||||
|
||||
@ -1,7 +1,12 @@
|
||||
<!DOCTYPE HTML>
|
||||
<!--suppress ALL -->
|
||||
<html lang="de" xmlns:th="http://www.thymeleaf.org">
|
||||
|
||||
<!--/*@thymesVar id="parent" type="mops.gruppen2.domain.model.group.Group"*/-->
|
||||
<!--/*@thymesVar id="group" type="mops.gruppen2.domain.model.group.Group"*/-->
|
||||
<!--/*@thymesVar id="member" type="mops.gruppen2.domain.model.group.User"*/-->
|
||||
<!--/*@thymesVar id="account" type="mops.gruppen2.domain.Account"*/-->
|
||||
<!--/*@thymesVar id="lectures" type="java.util.List<mops.gruppen2.domain.model.group.Group>"*/-->
|
||||
|
||||
<!--Meta-->
|
||||
<th:block th:fragment="meta">
|
||||
<!--Gruppentitel-->
|
||||
@ -14,6 +19,7 @@
|
||||
th:value="${group?.getTitle()}" required>
|
||||
</div>
|
||||
|
||||
|
||||
<!--Gruppenbeschreibung-->
|
||||
<div class="input-group"
|
||||
title="Eine kurze Gruppenbeschreibung zwischen 4 und 512 Zeichen. Die Beschreibung ist öffentlich.">
|
||||
|
||||
@ -1,6 +1,10 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="de" xmlns:th="http://www.thymeleaf.org">
|
||||
|
||||
<!--/*@thymesVar id="parent" type="mops.gruppen2.domain.model.group.Group"*/-->
|
||||
<!--/*@thymesVar id="group" type="mops.gruppen2.domain.model.group.Group"*/-->
|
||||
<!--/*@thymesVar id="member" type="mops.gruppen2.domain.model.group.User"*/-->
|
||||
|
||||
<!--Grouptype Badges-->
|
||||
<th:block th:fragment="badges">
|
||||
<span class="badge badge-pill private"
|
||||
@ -14,7 +18,7 @@
|
||||
th:if='${group.isLecture()}'>Veranstaltung</span>
|
||||
|
||||
<span class="badge badge-pill parent"
|
||||
th:if="${parent != null && parent?.getTitle() != null && parent?.getTitle() != ''}"
|
||||
th:if="${parent?.exists()}"
|
||||
th:title="${'Die Gruppe gehört zur Veranstaltung ' + parent.getTitle() + '.'}"
|
||||
th:text="${parent.getTitle()}">Parent</span>
|
||||
|
||||
@ -27,7 +31,7 @@
|
||||
<!--User Badges-->
|
||||
<th:block th:fragment="userbadges">
|
||||
<span class="badge badge-success align-self-start ml-2"
|
||||
th:if="${group.isAdmin(member.getUserid())}">Admin</span>
|
||||
th:if="${group.isAdmin(member.getId())}">Admin</span>
|
||||
</th:block>
|
||||
|
||||
<th:block th:fragment="groupcontent">
|
||||
@ -56,7 +60,7 @@
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<form method="post" th:action="@{/gruppen2/details/{id}/join(id = ${group.getGroupId()})}"
|
||||
<form method="post" th:action="@{/gruppen2/details/{id}/join(id = ${group.getId()})}"
|
||||
th:unless="${group.isFull()}">
|
||||
<button class="btn btn-success" type="submit">Gruppe beitreten.</button>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user