/usr/share/pyshared/schooltool/lyceum/journal/browser/templates/f_journal.pt is in python-schooltool.lyceum.journal 2.1.0-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 | <div i18n:domain="schooltool.lyceum.journal"
tal:define="table view/table;
activities view/activities">
<tal:block replace="resource_library:schooltool.lyceum.journal.flourish" />
<div tal:condition="not:view/render_journal">
<h3 tal:condition="view/no_timetable" i18n:translate="">
This section is not scheduled for any term, to use the journal
you should add a timetable first.
</h3>
<h3 tal:condition="view/no_periods" i18n:translate="">
No periods have been assigned in timetables of this section.
</h3>
<h3 i18n:translate="">
You can manage timetables for this section here:
<a i18n:name="timetable_link"
tal:attributes="href string:${view/context/section/@@absolute_url}/schedule"
i18n:translate="">Schedule</a>
</h3>
</div>
<metal:block tal:replace="structure string:<script type="text/javascript">" />
var numstudents = <tal:block replace="python: len(view.members())"/>;
var students = new Array(numstudents);
<tal:loop repeat="row 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 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 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>" />
<form method="post" class="grid-form"
tal:condition="view/render_journal"
tal:attributes="action request/URL">
<input tal:condition="request/month|nothing"
type="hidden"
name="month"
tal:attributes="value request/month" />
<input tal:condition="request/event_id|nothing"
type="hidden"
name="event_id"
tal:attributes="value request/event_id" />
<input tal:condition="request/student|nothing"
type="hidden"
name="student"
tal:attributes="value request/student" />
<div class="gradebook">
<div class="students gradebook-part">
<table>
<thead>
<tr>
<th rowspan="2" class="name">
<ul class="popup_menu">
<li>
<span i18n:translate="">Name</span>
</li>
<li>
<a href="?sort_by=student" i18n:translate="">Sort by</a>
</li>
</ul>
<div>
<a class="popup_link" href="" i18n:translate="">Name</a>
</div>
</th>
<th i18n:translate="" class="activity-title">Day</th>
</tr>
<tr>
<th i18n:translate="">Period</th>
</tr>
</thead>
<tbody>
<tr tal:repeat="row table">
<td colspan="2">
<ul class="popup_menu">
<li>
<span tal:content="row/student/title" />
</li>
<li>
<a href="" i18n:translate="" i18n:domain="schooltool"
tal:attributes="href row/student/url">
Student
</a>
</li>
</ul>
<div>
<a class="popup_link"
tal:attributes="title row/student/title;
href row/student/url"
tal:content="row/student/title" />
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="grades gradebook-part">
<table>
<thead>
<tr>
<th tal:repeat="activity activities" class="activity-title">
<ul class="popup_menu">
<li>
<span tal:content="activity/longTitle" />
</li>
<li>
<a tal:attributes="href string:${request/URL}?sort_by=${activity/hash}"
i18n:translate="">Sort by</a>
</li>
</ul>
<div>
<a class="popup_link"
href=""
tal:attributes="title activity/longTitle;
href request/URL;"
tal:content="activity/shortTitle" />
</div>
</th>
<th class="placeholder"> </th>
</tr>
<tr>
<th tal:repeat="activity activities">
<div tal:content="activity/period" />
</th>
<th class="placeholder"> </th>
</tr>
</thead>
<tbody>
<metal:block tal:repeat="row table">
<tr>
<td tal:repeat="grade row/grades"
tal:attributes="id string:${grade/id}_cell">
<span tal:condition="not: grade/editable"
tal:content="grade/value" />
<input type="text" name="" value="" size="4"
tal:condition="grade/editable"
onkeydown="return spreadsheetBehaviour(event)"
tal:attributes="name string:${grade/id};
id string:${grade/id};
value grade/value;
onkeyup string:checkValid(event,'${grade/id}');
onfocus string:handleCellFocus(this, '${grade/id}')"/>
</td>
<td class="placeholder"> </td>
</tr>
</metal:block>
</tbody>
</table>
</div>
<div class="totals gradebook-part">
<table>
<thead>
<tr>
<th rowspan="2">
<ul class="popup_menu">
<li>
<span i18n:translate="">Abs.</span>
</li>
<li>
<a href="?sort_by=absences" i18n:translate="">Sort by</a>
</li>
</ul>
<div>
<a class="popup_link" href="" i18n:translate="">
Abs.
</a>
</div>
</th>
<th rowspan="2">
<ul class="popup_menu">
<li>
<span i18n:translate="">Trd.</span>
</li>
<li>
<a href="?sort_by=tardies" i18n:translate="">Sort by</a>
</li>
</ul>
<div>
<a class="popup_link" href="" i18n:translate="">
Trd.
</a>
</div>
</th>
<th rowspan="2">
<ul class="popup_menu">
<li>
<span i18n:translate="">Ave.</span>
</li>
<li>
<a href="?sort_by=average" i18n:translate="">Sort by</a>
</li>
</ul>
<div>
<a class="popup_link" href="" i18n:translate="">
Ave.
</a>
</div>
</th>
</tr>
<tr>
</tr>
</thead>
<tbody>
<tr tal:repeat="row table">
<td tal:content="row/absences" />
<td tal:content="row/tardies" />
<td tal:content="row/average" />
</tr>
</tbody>
</table>
</div>
</div>
<div class="gradebook-controls">
<div class="buttons">
<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>
<div class="buttons zoom-buttons">
<button type="button" class="button-neutral zoom-button" id="zoom-out"
title="Zoom Out" i18n:attributes="title">
<span class="ui-icon ui-icon-zoomout"></span>
</button>
<button type="button" class="button-neutral zoom-button" id="zoom-normal"
title="Zoom Normal" i18n:attributes="title">
<span class="ui-icon ui-icon-search"></span>
</button>
<button type="button" class="button-neutral zoom-button" id="zoom-in"
title="Zoom In" i18n:attributes="title">
<span class="ui-icon ui-icon-zoomin"></span>
</button>
</div>
</div>
</form>
</div>
|