-
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.
Merge pull request #2 from ls1intum/sidebar-filter
New sidebar filter, fetch of mail status works properly
- Loading branch information
Showing
21 changed files
with
385 additions
and
70 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
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,34 @@ | ||
.base-component-container { | ||
position: relative; | ||
min-height: 100vh; | ||
width: 100%; | ||
} | ||
|
||
.sidebar-filter-container { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
bottom: 0; | ||
width: 240px; | ||
background-color: #fff; | ||
border-right: 1px solid var(--border-color); | ||
max-height: calc(100vh - 110px); | ||
overflow-y: auto; | ||
scrollbar-width: thin; | ||
box-sizing: border-box; | ||
} | ||
|
||
.child-main-content { | ||
margin-left: 240px; | ||
min-height: 100vh; | ||
display: block; | ||
box-sizing: border-box; | ||
overflow-y: auto; | ||
} | ||
|
||
.child-main-content-inner { | ||
width: 90%; | ||
margin: 0 auto; | ||
padding-top: 8px; | ||
box-sizing: border-box; | ||
} |
73 changes: 40 additions & 33 deletions
73
src/app/components/base-template/base-template.component.html
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 |
---|---|---|
@@ -1,43 +1,50 @@ | ||
<div> | ||
<!-- Page Header --> | ||
<h1 class="page-header">{{ headerText }}</h1> | ||
|
||
<!-- Action Row --> | ||
<div class="page-action-row"> | ||
<!-- Filter Button --> | ||
<app-study-program-filter | ||
[studyPrograms]="filterOptions" | ||
[selectedProgram]="selectedProgram" | ||
(programSelected)="onProgramSelected($event)" | ||
></app-study-program-filter> | ||
|
||
<!-- Add Button --> | ||
<app-add-button | ||
[text]="addButtonText" | ||
(click)="openAddOrEditDialog()" | ||
></app-add-button> | ||
</div> | ||
|
||
<!-- Table --> | ||
<app-main-table | ||
[dataSource]="displayedItems" | ||
[columns]="columns" | ||
[parentComponent]="this" | ||
[availableStudyPrograms]="availableStudyPrograms"> | ||
</app-main-table> | ||
|
||
<!-- Study Program Menu --> | ||
<div | ||
<div class="base-component-container" #containerRef> | ||
|
||
<!-- Sidebar (absolutely pinned to the left within this child) --> | ||
<aside class="sidebar-filter-container"> | ||
<app-sidebar-filter | ||
[studyPrograms]="filterOptions" | ||
[selectedProgram]="selectedProgram" | ||
(programSelected)="onProgramSelected($event)" | ||
> | ||
</app-sidebar-filter> | ||
</aside> | ||
|
||
<!-- Main content area (to the right of the sidebar) --> | ||
<div class="child-main-content"> | ||
<div class="child-main-content-inner"> | ||
<h1 class="page-header">{{ headerText }}</h1> | ||
|
||
<div class="page-action-row"> | ||
<app-add-button | ||
[text]="addButtonText" | ||
(click)="openAddOrEditDialog()" | ||
></app-add-button> | ||
</div> | ||
|
||
<app-main-table | ||
[dataSource]="displayedItems" | ||
[columns]="columns" | ||
[parentComponent]="this" | ||
[availableStudyPrograms]="availableStudyPrograms" | ||
></app-main-table> | ||
|
||
<!-- Study Program Menu --> | ||
<div | ||
class="study-program-menu" | ||
*ngIf="menuOpen" | ||
[style.top.px]="menuPosition.openUpwards ? undefined : menuPosition.top" | ||
[style.bottom.px]="menuPosition.openUpwards ? (documentHeight - menuPosition.top) : undefined" | ||
[style.left.px]="menuPosition.left"> | ||
<div | ||
[style.left.px]="menuPosition.left" | ||
> | ||
<div | ||
class="menu-item" | ||
*ngFor="let sp of studyProgramsToAdd" | ||
(click)="addStudyProgram(sp)"> | ||
(click)="addStudyProgram(sp)" | ||
> | ||
{{ sp.name }} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
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
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
Oops, something went wrong.