~schooltool-owners/schooltool.virginia/trunk

« back to all changes in this revision

Viewing changes to src/schooltool/virginia/browser/templates/competency_completion_by_class_table.pt

  • Committer: Douglas Cerna
  • Date: 2017-02-21 03:45:56 UTC
  • Revision ID: douglascerna@yahoo.com-20170221034556-o0l10nkufccblj3m
Added Name row to competency completion report

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
  <table class="competency-completion-by-class-report">
4
4
    <thead>
5
5
      <tr>
6
 
        <th i18n:translate="" class="label">Students</th>
 
6
        <th i18n:translate="" class="label">Student #</th>
7
7
        <tal:block repeat="student view/view/students">
8
 
          <th tal:attributes="title student/title">
 
8
          <th tal:attributes="title student/demographics_id"
 
9
              class="tooltip">
9
10
            <tal:block content="student/number" />
10
11
          </th>
11
12
        </tal:block>
12
 
        <th class="calculated" rowspan="2" i18n:translate="">% Comps Evaluated</th>
13
 
        <th class="calculated" rowspan="2" i18n:translate="">% Comps Competent (>=<tal:block content="view/view/passing_score" />)</th>
14
 
        <th class="calculated" rowspan="2" i18n:translate="">Avg. Comp. Rating</th>
 
13
        <th class="calculated" rowspan="3" i18n:translate="">% Comps Evaluated</th>
 
14
        <th class="calculated" rowspan="3" i18n:translate="">% Comps Competent (>=<tal:block content="view/view/passing_score" />)</th>
 
15
        <th class="calculated" rowspan="3" i18n:translate="">Avg. Comp. Rating</th>
15
16
      </tr>
16
17
      <tr>
17
18
        <th i18n:translate="" class="label">Max Score</th>
21
22
          </th>
22
23
        </tal:block>
23
24
      </tr>
 
25
      <tr>
 
26
        <th i18n:translate="" class="label">Name</th>
 
27
        <tal:block repeat="student view/view/students">
 
28
          <th tal:attributes="title student/title" class="tooltip">
 
29
            ?
 
30
          </th>
 
31
        </tal:block>
 
32
      </tr>
24
33
    </thead>
25
34
    <tbody>
26
35
      <tal:block repeat="worksheet view/view/worksheets">
32
41
          </th>
33
42
        </tr>
34
43
        <tr tal:repeat="skill worksheet/gradebook/activities">
35
 
          <td tal:attributes="title skill/title"
 
44
          <td class="label" tal:attributes="title skill/title"
36
45
              tal:content="skill/label" />
37
46
          <td tal:repeat="student view/view/students">
38
47
            <tal:block define="score python:view.view.getScore(worksheet, student, skill)" content="python:view.view.format_score(score)" />
47
56
          AVG SCORE
48
57
        </td>
49
58
        <tal:block repeat="student view/view/students">
50
 
          <td tal:content="python: view.view.student_average(student)" />
 
59
          <td class="average"
 
60
              tal:content="python: view.view.student_average(student)" />
51
61
        </tal:block>
52
62
        <td></td>
53
63
        <td></td>
55
65
      </tr>
56
66
    </tbody>
57
67
  </table>
 
68
  <script>
 
69
    $(document).ready(function() {
 
70
        var toggleHover = function(event) {
 
71
            var cell = $(event.target);
 
72
            var columnIndex = cell.index();
 
73
            $('thead').each(function(i, thead) {
 
74
                $('tr', thead).find('th').eq(columnIndex).toggleClass('hover');
 
75
            });
 
76
        };
 
77
        $('tr.average td.average').hover(toggleHover, toggleHover);
 
78
    });
 
79
  </script>
58
80
</tal:block>