Skip to content
Snippets Groups Projects
Commit 8a045afe authored by Nachtkind's avatar Nachtkind
Browse files

Merge remote-tracking branch 'origin/master'

parents d80be922 e6806d8c
Branches TabelleAnpassung
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@
border-radius: 4px;
}
#faculties li:hover, #modules li:hover, #groups li:hover {
#faculties li:hover, #modules li:hover {
background-color: palegreen;
left: .1em;
}
......@@ -31,7 +31,7 @@
background-color: darkseagreen;
}
#faculties li.selected:hover, #modules li.selected.hover , #groups li.selected:hover {
#faculties li.selected:hover, #modules li.selected.hover {
background-color: darkseagreen;
}
......
......@@ -19,9 +19,7 @@
</div>
<div *ngIf="selectedModule">
<ul id="groups">Gruppen
<li *ngFor="let group of groups"
[class.selected]="group === selectedGroup"
(click)="onSelectGroup(group)">
<li *ngFor="let group of groups">
<span class="badge">{{group.id}}</span> {{'Gruppe'}}
</li>
</ul>
......
export class GroupDO {
private id: number;
private modulid: number;
private status: string;
private date: string;
id: number;
modulid: number;
status: string;
date: string;
constructor(private iD: number, private moduleId:
number, private statuS: string, datE: string) {
......
export class ModulesDO {
private id: number;
id: number;
titel: string;
get getId(): number {
......
package thinkTogether.groupManagement.controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import thinkTogether.groupManagement.model.Learninggroup;
import thinkTogether.groupManagement.repo.GroupRepository;
import java.time.LocalDate;
import java.util.List;
......@@ -32,6 +31,15 @@ public class GroupManagementController {
return groupRepository.findAll();
}
@PostMapping("/groups/new")
public Learninggroup save(@RequestBody Learninggroup group){
groupRepository.save(group) {
group.setDatum(LocalDate.now());
group.setStatus("open");
}
return group;
}
// /**
......
......@@ -9,6 +9,7 @@ import java.util.List;
//Erstellt Zwischenspeicher für die Datenentitäten? "DAO"???
public interface GroupRepository extends CrudRepository<Learninggroup, Long> {
public List<Learninggroup> findAll();
Learninggroup save(Learninggroup group);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment