/usr/lib/python2.7/dist-packages/schooltool/gradebook/browser/templates/layout_report_card.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 | <tal:define define="dummy view/update"/>
<html metal:use-macro="view/@@standard_macros/page" i18n:domain="schooltool.gradebook">
<head>
<title metal:fill-slot="title" i18n:translate="">Layout Report Card</title>
</head>
<body>
<metal:block metal:fill-slot="body">
<form method="post" class="standalone" style="width: 60em"
tal:attributes="action string:${context/@@absolute_url}/layout_report_card.html">
<input type="hidden" name="form-submitted" value="" />
<h3 i18n:translate="">Report Card Layout</h3>
<fieldset>
<legend><b i18n:translate="">Grid Columns</b></legend>
<table>
<tr>
<td></td>
<td align="center" i18n:translate="">Source</td>
<td align="center" i18n:translate="">Heading</td>
<td></td>
</tr>
<tal:block repeat="column view/columns">
<tr>
<td>
<label tal:attributes="for column/source_name"
tal:content="column/source_name" />
</td>
<td>
<select tal:attributes="id column/source_name; name column/source_name">
<tal:block repeat="choice view/column_choices">
<option tal:condition="python: choice['value'] == column['source_value']"
selected
tal:attributes="value choice/value"
tal:content="choice/name" />
<option tal:condition="python: choice['value'] != column['source_value']"
tal:attributes="value choice/value"
tal:content="choice/name" />
</tal:block>
</select>
</td>
<td align="center">
<input type="text"
tal:attributes="name column/heading_name; value column/heading_value" />
</td>
<td align="center">
<input type="submit" value="X" class="button-cancel"
tal:attributes="name string:delete_${column/source_name}" />
</td>
</tr>
</tal:block>
<tr>
<td>
<label for="new_source" i18n:translate="">New Column</label>
</td>
<td>
<select id="new_source" name="new_source">
<option selected value="" i18n:translate="">Choose a column to add</option>
<tal:block repeat="choice view/column_choices">
<option tal:attributes="value choice/value"
tal:content="choice/name" />
</tal:block>
</select>
</td>
<td style="padding-left: 1em">
<input type="submit" class="button-ok" name="ADD_COLUMN" value="Add"
i18n:attributes="value" />
</td>
</tr>
</table>
</fieldset>
<fieldset>
<legend><b i18n:translate="">Outline Activities</b></legend>
<table>
<tr>
<td></td>
<td align="center" i18n:translate="">Source</td>
<td align="center" i18n:translate="">Heading</td>
<td></td>
</tr>
<tal:block repeat="activity view/outline_activities">
<tr>
<td>
<label tal:attributes="for activity/source_name"
tal:content="activity/source_name" />
</td>
<td>
<select tal:attributes="id activity/source_name; name activity/source_name">
<tal:block repeat="choice view/activity_choices">
<option tal:condition="python: choice['value'] == activity['source_value']"
selected
tal:attributes="value choice/value"
tal:content="choice/name" />
<option tal:condition="python: choice['value'] != activity['source_value']"
tal:attributes="value choice/value"
tal:content="choice/name" />
</tal:block>
</select>
</td>
<td align="center">
<input type="text"
tal:attributes="name activity/heading_name; value activity/heading_value" />
</td>
<td align="center">
<input type="submit" value="X" class="button-cancel"
tal:attributes="name string:delete_${activity/source_name}" />
</td>
</tr>
</tal:block>
<tr>
<td>
<label for="new_activity_source" i18n:translate="">New Activity</label>
</td>
<td>
<select id="new_activity_source" name="new_activity_source">
<option selected value="" i18n:translate="">Choose an activity to add</option>
<tal:block repeat="choice view/activity_choices">
<option tal:attributes="value choice/value"
tal:content="choice/name" />
</tal:block>
</select>
</td>
<td style="padding-left: 1em">
<input type="submit" class="button-ok" name="ADD_ACTIVITY" value="Add"
i18n:attributes="value" />
</td>
</tr>
</table>
</fieldset>
<div class="controls">
<input type="submit" class="button-ok" name="OK" value="OK"
i18n:attributes="value" />
</div>
</form>
</metal:block>
</body>
</html>
|