-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding all schools and managing access to the pages
- Loading branch information
1 parent
fd5a925
commit fbe7e85
Showing
9 changed files
with
341 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 83 additions & 0 deletions
83
src/main/java/pmgkn/pescores/pescores/domain/dto/view/SchoolViewDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
package pmgkn.pescores.pescores.domain.dto.view; | ||
|
||
import pmgkn.pescores.pescores.domain.entity.ClassEntity; | ||
import pmgkn.pescores.pescores.domain.entity.StudentEntity; | ||
import pmgkn.pescores.pescores.domain.entity.UserEntity; | ||
|
||
import java.util.List; | ||
import java.util.UUID; | ||
|
||
public class SchoolViewDto { | ||
|
||
private UUID id; | ||
|
||
private String schoolName; | ||
|
||
private String city; | ||
|
||
// private String schoolAdmin; | ||
|
||
|
||
private List<ClassEntity> classes; | ||
|
||
private List<StudentEntity> students; | ||
|
||
private List<UserEntity> teachers; | ||
|
||
public SchoolViewDto() { | ||
} | ||
|
||
public UUID getId() { | ||
return id; | ||
} | ||
|
||
public SchoolViewDto setId(UUID id) { | ||
this.id = id; | ||
return this; | ||
} | ||
|
||
public String getSchoolName() { | ||
return schoolName; | ||
} | ||
|
||
public SchoolViewDto setSchoolName(String schoolName) { | ||
this.schoolName = schoolName; | ||
return this; | ||
} | ||
|
||
public String getCity() { | ||
return city; | ||
} | ||
|
||
public SchoolViewDto setCity(String city) { | ||
this.city = city; | ||
return this; | ||
} | ||
|
||
public List<ClassEntity> getClasses() { | ||
return classes; | ||
} | ||
|
||
public SchoolViewDto setClasses(List<ClassEntity> classes) { | ||
this.classes = classes; | ||
return this; | ||
} | ||
|
||
public List<StudentEntity> getStudents() { | ||
return students; | ||
} | ||
|
||
public SchoolViewDto setStudents(List<StudentEntity> students) { | ||
this.students = students; | ||
return this; | ||
} | ||
|
||
public List<UserEntity> getTeachers() { | ||
return teachers; | ||
} | ||
|
||
public SchoolViewDto setTeachers(List<UserEntity> teachers) { | ||
this.teachers = teachers; | ||
return this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
.main-section-schools { | ||
padding: 5em; | ||
display: flex; | ||
background-color: #5d54c3; | ||
justify-content: center; | ||
min-height: 600px; | ||
} | ||
|
||
.buttons { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 0.5em; | ||
} | ||
|
||
.all-schools h2 { | ||
font-weight: 700; | ||
margin-bottom: 1em; | ||
margin-top: 1.5em; | ||
color: #5d54c3; | ||
} | ||
|
||
.all-schools { | ||
width: 35%; | ||
background-color: #d8d7fe; | ||
text-align: center; | ||
border-radius: 1em; | ||
box-shadow: -4px -3px 45px 21px rgba(0, 0, 0, 0.35); | ||
} | ||
|
||
.all-schools ul { | ||
list-style: none; | ||
color: #5d54c3; | ||
margin-bottom: 0.5em; | ||
display: flex; | ||
flex-direction: row; | ||
gap: 2em; | ||
justify-content: center; | ||
padding-bottom: 1em; | ||
border-bottom: 2px solid #5d54c3; | ||
} | ||
|
||
.all-schools li { | ||
margin-top: 1em; | ||
font-weight: 600; | ||
text-align: center; | ||
justify-content: center; | ||
} | ||
|
||
.className { | ||
text-decoration: none; | ||
font-size: 20px; | ||
padding: 0.2em 2em; | ||
color: #5d54c3; | ||
border: 0.5px solid #5d54c3; | ||
border-radius: 5px; | ||
} | ||
|
||
.className:hover { | ||
color: #d8d7fe; | ||
background-color: #5d54c3; | ||
border-radius: 5px; | ||
} | ||
|
||
.edit { | ||
color: #d8d7fe; | ||
background-color: #5d54c3; | ||
border-radius: 5px; | ||
padding: 0.5em 1em; | ||
text-decoration: none; | ||
font-size: 16px; | ||
font-weight: 500; | ||
border: 1px solid #5d54c3; | ||
} | ||
|
||
.delete { | ||
color: #d8d7fe; | ||
background-color: #5d54c3; | ||
border-radius: 5px; | ||
padding: 0.5em 1em; | ||
text-decoration: none; | ||
font-size: 15px; | ||
font-weight: 500; | ||
border-color: #5d54c3; | ||
} | ||
|
||
form { | ||
justify-content: center; | ||
} | ||
|
||
.edit:hover { | ||
color: #5d54c3; | ||
background-color: #d8d7fe; | ||
} | ||
|
||
.delete:hover { | ||
color: #5d54c3; | ||
background-color: #d8d7fe; | ||
border-color: #d8d7fe; | ||
} | ||
|
||
|
||
/*.classes-table{*/ | ||
/* width: 80%;*/ | ||
/* background-color: #d8d7fe;*/ | ||
/* border-radius:1em;*/ | ||
/* box-shadow: -4px -3px 45px 21px rgba(0,0,0,0.35);*/ | ||
/*}*/ | ||
|
||
/*.classes-table h2{*/ | ||
/* font-weight: 700;*/ | ||
/* margin-bottom: 1em;*/ | ||
/* margin-top: 1.5em;*/ | ||
/* color: #5d54c3;*/ | ||
/* text-align: center;*/ | ||
/*}*/ | ||
|
||
/*.classes-table table{*/ | ||
/* border: 3px solid #5d54c3;*/ | ||
/* margin: 0 auto;*/ | ||
/* border-collapse: collapse;*/ | ||
/* width: 90%;*/ | ||
/*}*/ | ||
|
||
/*.classes-table thead th{*/ | ||
/* padding: 0.5em;*/ | ||
/* font-weight: 400;*/ | ||
/* color: #5d54c3;*/ | ||
/* text-align: center;*/ | ||
/* border-bottom: 2px solid #5d54c3;*/ | ||
/* border-right: 2px solid #5d54c3;*/ | ||
/*}*/ | ||
|
||
/*.classes-table tbody td{*/ | ||
/* padding: 0.5em;*/ | ||
/* border-bottom: 2px solid #5d54c3;*/ | ||
/* border-right: 2px solid #5d54c3;*/ | ||
/*}*/ | ||
|
||
/*.classes-table tbody td input{*/ | ||
/* width: 98%;*/ | ||
/* background-color: #d8d7fe;*/ | ||
/* border: none;*/ | ||
/* outline: none;*/ | ||
/* font-weight: 400;*/ | ||
/* color: #5d54c3;*/ | ||
/* text-align: left;*/ | ||
/*}*/ |
Oops, something went wrong.