-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into refactor-project-authoring-template-use-n…
…ode-icon-and-title
- Loading branch information
Showing
53 changed files
with
429 additions
and
692 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,6 @@ | |
z-index: 1; | ||
|
||
.mat-divider { | ||
margin: 8px 0; | ||
margin: 16px 0 8px 0; | ||
} | ||
} |
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,11 @@ | ||
.nav-controls { | ||
background-color: white; | ||
position: sticky; | ||
bottom: 0; | ||
padding-bottom: 8px; | ||
z-index: 1; | ||
|
||
.mat-divider { | ||
margin: 16px 0 8px 0; | ||
} | ||
} |
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
51 changes: 24 additions & 27 deletions
51
...structure/choose-structure.component.html → ...add-lesson-choose-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,37 +1,34 @@ | ||
<h5 i18n>Choose a Lesson Structure</h5> | ||
<p i18n> | ||
Based on our work with classroom teachers, we have developed several lesson structures that follow | ||
the | ||
<a href="https://wise.berkeley.edu/about#ki" target="_blank">Knowledge Integration</a> framework | ||
and help teachers productively integrate open educational resources (OERs) into their curricula. | ||
These structures have also proven useful for developing students' capacity for self-directed | ||
learning. We have made the structures very general, so that teachers can customize and incorporate | ||
them into any WISE unit to strengthen support for knowledge integration and self-directed | ||
learning. | ||
</p> | ||
<div fxLayout="row wrap" fxLayoutAlign="start stretch"> | ||
<mat-card *ngFor="let structure of structures" class="structure-card"> | ||
<h5 i18n>Start from scratch or choose a Lesson Structure*:</h5> | ||
<div fxLayout="row wrap" fxLayoutAlign="center" fxLayoutAlign.gt-sm="start"> | ||
<mat-card *ngFor="let template of templates" appearance="outlined"> | ||
<mat-card-title> | ||
<h6 class="center">{{ structure.label }}</h6> | ||
<h6 class="center"> | ||
<strong>{{ template.label }}</strong> | ||
</h6> | ||
</mat-card-title> | ||
<mat-card-content fxLayoutAlign="center center"> | ||
<mat-icon>{{ structure.icon }}</mat-icon> | ||
<mat-icon>{{ template.icon }}</mat-icon> | ||
</mat-card-content> | ||
<mat-card-actions fxLayout="column" fxLayoutAlign="start"> | ||
<button | ||
mat-raised-button | ||
color="primary" | ||
(click)="chooseStructure(structure)" | ||
aria-label="Choose Structure" | ||
i18n-aria-label | ||
i18n | ||
> | ||
<button mat-flat-button color="primary" (click)="chooseTemplate(template)" i18n> | ||
Select | ||
</button> | ||
</mat-card-actions> | ||
</mat-card> | ||
</div> | ||
<hr /> | ||
<button mat-button color="primary" routerLink="../.." aria-label="Cancel" i18n-aria-label i18n> | ||
Cancel | ||
</button> | ||
<p i18n> | ||
*Based on our work with classroom teachers, we have developed several lesson structures that | ||
follow the | ||
<a href="https://wise.berkeley.edu/about#ki" target="_blank">Knowledge Integration</a> framework | ||
and help teachers productively integrate open educational resources (OERs) into their curricula. | ||
These structures have also proven useful for developing students' capacity for self-directed | ||
learning. We have made the structures very general, so that teachers can customize and incorporate | ||
them into any WISE unit to strengthen support for knowledge integration and self-directed | ||
learning. | ||
</p> | ||
<div class="nav-controls"> | ||
<mat-divider></mat-divider> | ||
<div> | ||
<button mat-button color="primary" routerLink=".." i18n>Cancel</button> | ||
</div> | ||
</div> |
4 changes: 2 additions & 2 deletions
4
...structure/choose-structure.component.scss → ...add-lesson-choose-template.component.scss
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,4 +1,4 @@ | ||
.structure-card { | ||
mat-card { | ||
width: 280px; | ||
margin: 8px; | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...uthoringTool/addLesson/add-lesson-choose-template/add-lesson-choose-template.component.ts
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,45 @@ | ||
import { Component } from '@angular/core'; | ||
import { ActivatedRoute, Router } from '@angular/router'; | ||
|
||
@Component({ | ||
selector: 'add-lesson-choose-template', | ||
styleUrls: ['./add-lesson-choose-template.component.scss', '../../add-content.scss'], | ||
templateUrl: './add-lesson-choose-template.component.html' | ||
}) | ||
export class AddLessonChooseTemplateComponent { | ||
protected templates = [ | ||
{ | ||
label: $localize`Create Your Own`, | ||
icon: 'mode_edit', | ||
route: 'configure' | ||
}, | ||
{ | ||
label: $localize`Jigsaw`, | ||
icon: 'extension', | ||
route: 'structure/jigsaw' | ||
}, | ||
{ | ||
label: $localize`Self-Directed Investigation`, | ||
icon: 'contact_support', | ||
route: 'structure/self-directed-investigation' | ||
}, | ||
{ | ||
label: $localize`Peer Review & Revision`, | ||
icon: 'question_answer', | ||
route: 'structure/peer-review-and-revision' | ||
}, | ||
{ | ||
label: $localize`KI Lesson with OER`, | ||
icon: 'autorenew', | ||
route: 'structure/ki-cycle-using-oer' | ||
} | ||
]; | ||
|
||
constructor(private route: ActivatedRoute, private router: Router) {} | ||
|
||
protected chooseTemplate(template: any): void { | ||
this.router.navigate([...template.route.split('/')], { | ||
relativeTo: this.route | ||
}); | ||
} | ||
} |
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.