File tree Expand file tree Collapse file tree 2 files changed +50
-8
lines changed
DigitalLearningSolutions.Web
Styles/trackingSystem/delegates
Views/TrackingSystem/Delegates/Shared Expand file tree Collapse file tree 2 files changed +50
-8
lines changed Original file line number Diff line number Diff line change 2626 }
2727 }
2828}
29+
30+ .nhsuk-expander [open ] details .nhsuk-details [open ] .nhsuk-details__summary-text ::before {
31+ display : block ;
32+ width : 0 ;
33+ height : 0 ;
34+ border-style : solid ;
35+ border-color : transparent ;
36+ clip-path : polygon (0% 0% , 50% 100% , 100% 0% );
37+ border-width : 12.124px 7px 0 7px ;
38+ border-top-color : inherit ;
39+ }
40+
41+ .nhsuk-details [open ] .nhsuk-details .nhsuk-details__summary-text ::before {
42+ bottom : 0 ;
43+ content : " " ;
44+ left : 0 ;
45+ margin : auto ;
46+ position : absolute ;
47+ top : 0 ;
48+ display : block ;
49+ width : 0 ;
50+ height : 0 ;
51+ border-style : solid ;
52+ border-color : transparent ;
53+ clip-path : polygon (0% 0% , 100% 50% , 0% 100% );
54+ border-width : 7px 0 7px 12.124px ;
55+ border-left-color : inherit ;
56+ }
Original file line number Diff line number Diff line change 4545 <dd class =" nhsuk-summary-list__value" data-name-for-sorting =" complete-by-date" >
4646 @if (Model .Supervisors .Any ())
4747 {
48- @foreach ( var supervisor in Model .Supervisors .Take (3 ))
49- {
50- <p >@supervisor.SupervisorName , @supervisor.RoleName (@supervisor .CentreName )</p >
51- }
52- @if (Model .Supervisors .Count () > 3 )
53- {
54- <p >+ @( Model .Supervisors .Count () - 3 ) more </p >
55- }
48+ <details class =" nhsuk-details" >
49+ <summary class =" nhsuk-details__summary nhsuk-u-padding-0" >
50+ @{
51+ var supervisors = string .Join (" , " , new [] {
52+ new { Role = " Educator/Manager" , Count = Model .Supervisors .Count (x => x .RoleName == " Educator/Manager" ) },
53+ new { Role = " Assessor" , Count = Model .Supervisors .Count (x => x .RoleName == " Assessor" ) },
54+ new { Role = " Supervisor" , Count = Model .Supervisors .Count (x => x .RoleName == " Supervisor" ) }
55+ }
56+ .Where (x => x .Count > 0 )
57+ .Select (x => $" {x .Count } {x .Role }{(x .Count > 1 ? " s" : " " )}" ));
58+ }
59+ <span class =" nhsuk-details__summary-text nhsuk-u-padding-left-4" >@supervisors </span >
60+ </summary >
61+ <div class =" nhsuk-details__text nhsuk-u-margin-top-2" >
62+ <ul >
63+ @foreach ( var supervisor in Model .Supervisors )
64+ {
65+ <li >@supervisor.SupervisorName , @supervisor.RoleName (@supervisor .CentreName )</li >
66+ }
67+ </ul >
68+ </div >
69+ </details >
5670 }
5771 else
5872 {
You can’t perform that action at this time.
0 commit comments