/usr/lib/python2.7/dist-packages/schooltool/gradebook/browser/templates/gradebook_overview.pt is in python-schooltool.gradebook 2.6.3-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 | <tal:tag condition="view/update" />
<html metal:use-macro="context/@@standard_macros/page"
i18n:domain="schooltool.gradebook">
<head>
<title metal:fill-slot="title" i18n:translate="">
Gradebook
</title>
<metal:block fill-slot="extrahead">
<script type="text/javascript" tal:attributes="src context/++resource++gradebook_overview.js">
</script>
<metal:block tal:replace="structure string:<script type="text/javascript">" />
var numstudents = <tal:block replace="python: len(view.students)"/>;
var students = new Array(numstudents);
<tal:loop repeat="row view/table">
students[<tal:block replace="repeat/row/index"/>] = '<tal:block replace="python: view.breakJSString(row['student']['id'])"/>';
</tal:loop>
var numactivities = <tal:block replace="python: len(view.scorableActivities())"/>;
var activities = new Array(numactivities);
<tal:loop repeat="activity view/activities">
activities[<tal:block replace="repeat/activity/index"/>] = '<tal:block replace="activity/hash"/>';
</tal:loop>
var numscores = <tal:block replace="python: len(view.scores)"/>;
var scores = new Object();
<tal:loop repeat="activity view/scores">
scores['<tal:block replace="activity" />'] = new Array(<tal:block replace="python: view.scores[activity]" />);
</tal:loop>
var numdescriptions = <tal:block replace="python: len(view.descriptions)"/>;
var descriptions = new Array(numdescriptions);
<tal:loop repeat="activity view/descriptions">
descriptions['<tal:block replace="activity/act_hash"/>'] = '<tal:block replace="activity/description"/>';
</tal:loop>
var edited = false;
var currentCell;
var currentDesc = '';
window.onload = onLoadHandler;
window.onunload = checkChanges;
warningText = '<tal:block replace="view/warningText" />';
<metal:block tal:replace="structure string:</script>" />
</metal:block>
</head>
<body>
<div metal:fill-slot="body">
<form method="post"
tal:attributes="action string:${context/@@absolute_url}">
<tal:if condition="python:not list(view.getSections())">
<b>Term:</b>
<span tal:content="view/getCurrentTerm" />
</tal:if>
<tal:if condition="python:list(view.getTerms())">
<label for="currentTerm" i18n:translate="">Term</label>
<select name="currentTerm"
onchange="this.form.submit()">
<tal:block repeat="term view/getTerms">
<option
tal:attributes="value term/form_id;
selected term/selected"
tal:content="term/title" />
</tal:block>
</select>
</tal:if>
<span> </span>
<tal:if condition="python:not list(view.getSections())">
<b>Section:</b>
<span tal:content="view/getCurrentSection" />
</tal:if>
<tal:if condition="python:list(view.getSections())">
<label for="currentSection" i18n:translate="">Section</label>
<select name="currentSection"
onchange="this.form.submit()">
<tal:block repeat="section view/getSections">
<option
tal:attributes="value section/form_id;
selected section/selected;"
tal:content="section/title" />
</tal:block>
</select>
</tal:if>
<tal:if condition="not: view/due_date_hide">
<span> </span>
<input type="checkbox" name="due_date:list"
tal:attributes="checked view/getDueDateFilter" />
<span i18n:translate="">show only activities due in past
<select name="num_weeks" i18n:name="num_weeks">
<tal:block repeat="weeks view/weeksChoices">
<option value="1"
tal:attributes="value weeks;
selected python:weeks==view.getCurrentWeeks()"
tal:content="weeks" />
</tal:block>
</select>
weeks</span>
</tal:if>
<div style="height: 5px;"></div>
<div class="message" style="color:red"
tal:condition="view/message"
tal:content="view/message">
Message
</div>
<br />
<table class="schooltool_gradebook">
<tr>
<tal:block repeat="worksheet view/worksheets">
<td class="active_tab">
<a tal:condition="not: worksheet/current"
tal:attributes="href worksheet/url"
tal:content="worksheet/title" />
<span style="font-weight: bold;"
tal:condition="worksheet/current"
tal:content="worksheet/title" />
</td>
</tal:block>
<tr>
</table>
<table class="schooltool_gradebook">
<tr>
<td id="description" class="gradebook_description"
tal:attributes="colspan python:len(view.descriptions) + view.apply_all_colspan" />
</tr>
<tr>
<th class="cell header">
<div>Name</div>
<a href="?sort_by=student" i18n:translate="">(sort)</a>
</th>
<th tal:condition="not: view/absences_hide" class="cell padded header">
<div tal:content="view/absences_label" />
</th>
<th tal:condition="not: view/tardies_hide" class="cell padded header">
<div tal:content="view/tardies_label" />
</th>
<th tal:condition="not: view/total_hide" class="cell padded header">
<div tal:content="view/total_label" />
</th>
<th tal:condition="not: view/average_hide" class="cell padded header">
<div tal:content="view/average_label" />
<a tal:condition="nothing" href="?sort_by=average" i18n:translate="">(sort)</a>
</th>
<th class="cell title header" tal:repeat="activity view/activities"
tal:attributes="onmouseover string:tempDescription('${activity/hash}');
onmouseout string:restoreDescription()">
<div class="padded">
<a href=""
tal:condition="activity/scorable"
tal:attributes="href
string:gradeActivity.html?activity=${activity/hash};
title activity/longTitle;"
tal:content="activity/shortTitle" />
<span
tal:condition="not: activity/scorable"
tal:content="activity/shortTitle" />
</div>
<a href="?sort_by="
tal:attributes="href
string:${request/URL}?sort_by=${activity/hash}"
i18n:translate="">
(sort)
</a>
<div tal:content="activity/max" />
</th>
</tr>
<tr>
<td tal:attributes="colspan view/apply_all_colspan"
class="cell padded fd_cell empty">Apply a grade for all students:</td>
<td class="cell padded fd_cell" tal:repeat="activity view/activities"
tal:attributes="id string:fd_${activity/hash}_cell">
<input type="text" size="4" class="data fd"
onkeydown="return spreadsheetBehaviour(event)"
tal:condition="activity/scorable"
tal:attributes="id string:fd_${activity/hash};
onkeyup string:checkFillDown('${activity/hash}');
onfocus string:handleCellFocus(this, '${activity/hash}')">
<input type="button"
style="display: none"
class="fdbtn"
value="Apply"
tal:condition="activity/scorable"
tal:attributes="id string:fdbtn_${activity/hash};
onclick string:performFillDown('${activity/hash}')">
</td>
</tr>
<tr tal:repeat="row view/table">
<metal:block tal:define="css_class python:repeat['row'].even() and 'even' or 'odd'">
<td tal:attributes="class string:cell padded ${css_class}" style="text-align: left">
<a href=""
tal:attributes="href row/student/url"
tal:content="row/student/title">
Tom Hoffman
</a>
<a href=""
tal:attributes="href row/student/gradeurl">
>
</a>
</td>
<td tal:condition="not: view/absences_hide"
tal:attributes="class string:cell padded ${css_class}">
<tal:if condition="row/absences|nothing">
<b><span tal:replace="row/absences" /></b>
</tal:if>
</td>
<td tal:condition="not: view/tardies_hide"
tal:attributes="class string:cell padded ${css_class}">
<tal:if condition="row/tardies|nothing">
<b><span tal:replace="row/tardies" /></b>
</tal:if>
</td>
<td tal:condition="not: view/total_hide"
tal:attributes="class string:cell padded ${css_class}">
<tal:if condition="row/total|nothing">
<b><span tal:replace="row/total" /></b>
</tal:if>
</td>
<td tal:condition="not: view/average_hide"
tal:attributes="class string:cell padded ${css_class}">
<tal:if condition="row/average|nothing">
<b><span tal:replace="row/average" /></b>
</tal:if>
</td>
<td tal:repeat="grade row/grades"
tal:attributes="id string:${grade/activity}_${row/student/id}_cell;
class string:cell ${css_class}">
<span tal:condition="not: grade/editable"
tal:content="grade/value" />
<input class="data" type="text" name="" value="" size="4"
tal:condition="grade/editable"
onkeydown="return spreadsheetBehaviour(event)"
tal:attributes="name string:${grade/activity}_${row/student/id};
id string:${grade/activity}_${row/student/id};
value grade/value;
onkeyup string:checkValid(event,'${grade/activity}_${row/student/id}');
onfocus string:handleCellFocus(this, '${grade/activity}')"/>
</td>
</metal:block>
</tr>
</table>
<div class="controls">
<input type="submit" class="button-ok" name="UPDATE_SUBMIT" value="Save"
onclick="setNotEdited()"
title="Shortcut: Alt-S" accesskey="S"
i18n:attributes="value; title; accesskey" />
</div>
</form>
</div>
</body>
</html>
|