-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
separates edit-mode from view-mode for instructors management in lear…
…ner group management.
- Loading branch information
1 parent
b55d4b0
commit d4d59dd
Showing
8 changed files
with
130 additions
and
101 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
24 changes: 24 additions & 0 deletions
24
packages/frontend/app/components/learner-group/instructors-list.hbs
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,24 @@ | ||
<div class="learner-group-instructors-list" data-test-learner-group-instructors-list ...attributes> | ||
<div class="detail-header"> | ||
<div class="title" data-test-title> | ||
{{t "general.defaultInstructors"}} | ||
({{@learnerGroup.allInstructors.length}}) | ||
</div> | ||
{{#if @canUpdate}} | ||
<button type="button" {{on "click" @manage}} data-test-manage> | ||
{{t "general.instructorsManageTitle"}} | ||
</button> | ||
{{/if}} | ||
</div> | ||
<div class="detail-content"> | ||
{{#if @learnerGroup.allInstructors.length}} | ||
<ul class="assigned-instructors"> | ||
{{#each (sort-by "fullName" @learnerGroup.allInstructors) as |instructor|}} | ||
<li data-test-assigned-instructor> | ||
<UserNameInfo @user={{instructor}} /> | ||
</li> | ||
{{/each}} | ||
</ul> | ||
{{/if}} | ||
</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
25 changes: 25 additions & 0 deletions
25
packages/frontend/app/styles/components/learner-group/instructors-list.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
@use "../../ilios-common/colors" as c; | ||
@use "../../ilios-common/mixins" as m; | ||
|
||
.learner-group-instructors-list { | ||
@include m.detail-container(c.$orange); | ||
border-top: 1px dotted c.$orange; | ||
|
||
.detail-header { | ||
@include m.detail-container-header; | ||
|
||
.title { | ||
@include m.detail-container-title; | ||
} | ||
|
||
.actions { | ||
@include m.detail-container-actions; | ||
} | ||
} | ||
|
||
.detail-content { | ||
.assigned-instructors { | ||
@include m.ilios-tag-list; | ||
} | ||
} | ||
} |