Add Enrolments by Authority to Enrol Dashboard

Issue #424 closed
Brian Lewis repo owner created an issue

as per #423, clone Enrol by District dashboard

Comments (2)

  1. Brian Lewis reporter

    feat(Enrolments Dashboards): Add Enrolments by Authority to Enrol Dashboard

    Hidden amongst all the copy paste programming are these modifications to the EnrolmentLevelByDistrict 'blueprint':

    λ diff Pineapples\Views\default\Dashboard\Component\EnrolmentLevelByAuthority.cshtml Pineapples\Views\default\Dashboard\Component\EnrolmentLevelByDistrict.cshtml 3c3 < Enrolment by {{'Authority'|vocab}}


    {{'District'|vocab}} Enrolment 13c13 < <th>Authority</th>


        <th>State</th>
    

    17,20c17,20 < <tr class="animated" ng-repeat="r in vm.grpAuthorityCode.all()" < ng-click="vm.dashboard.options.toggleSelectedAuthority(r.key)" < ng-class="{'selected':vm.dashboard.options.isSelectedAuthority(r.key)}"> < <td class="rowlabel">{{r.key| lookup:'authorities'}}</td>


    <tr class="animated" ng-repeat="r in vm.grpDistrictCode.all()"
        ng-click="vm.dashboard.options.toggleSelectedDistrict(r.key)"
        ng-class="{'selected':vm.dashboard.options.isSelectedDistrict(r.key)}">
      <td class="rowlabel">{{r.key| lookup:'districts'}}</td>
    

    λ diff Pineapples.Client\src\app\ts\features\Dashboard\Component\Enrolment.LevelByAuthority.Component.ts Pineapples.Client\src\app\ts\features\Dashboard\Component\Enrolment.LevelByDistrict.Component.ts 31c31 < public grpAuthorityCode: CrossFilter.Group<IxfData, string, number>;


    public grpDistrictCode: CrossFilter.Group<IxfData, string, number>;
    

    47c47 < this.grpAuthorityCode = this.dashboard.dimAuthorityCode.group().reduceSum(d => d.EnrolM + d.EnrolF);


      this.grpDistrictCode = this.dashboard.dimDistrictCode.group().reduceSum(d => d.EnrolM + d.EnrolF);
    

    65c65 < .component("enrolmentLevelByAuthority", new EnrolComponent(Controller, "EnrolmentLevelByAuthority"));


    .component("enrolmentLevelByDistrict", new EnrolComponent(Controller, "EnrolmentLevelByDistrict"));
    

    closes #424

    → <<cset c75e98b83225>>

  2. Log in to comment