Lines 8-14
$(document).ready(function() {
Link Here
|
8 |
$("#lettert:has(tbody tr)").tablesorter({ |
8 |
$("#lettert:has(tbody tr)").tablesorter({ |
9 |
widgets : ['zebra'], |
9 |
widgets : ['zebra'], |
10 |
sortList: [[0,0]], |
10 |
sortList: [[0,0]], |
11 |
headers: { 3: {sorter:false},4: { sorter: false }} |
11 |
headers: { 4: {sorter:false},5: { sorter: false },6: { sorter: false }} |
12 |
}); |
12 |
}); |
13 |
|
13 |
|
14 |
$('#branch').change(function() { |
14 |
$('#branch').change(function() { |
Lines 130-135
$(document).ready(function() {
Link Here
|
130 |
<div class="yui-b"> |
130 |
<div class="yui-b"> |
131 |
|
131 |
|
132 |
[% IF ( no_op_set ) %] |
132 |
[% IF ( no_op_set ) %] |
|
|
133 |
<h1>Notices and Slips</h1> |
133 |
<form method="get" action="/cgi-bin/koha/tools/letter.pl" id="selectlibrary"> |
134 |
<form method="get" action="/cgi-bin/koha/tools/letter.pl" id="selectlibrary"> |
134 |
<input type="hidden" name="searchfield" value="[% searchfield %]" /> |
135 |
<input type="hidden" name="searchfield" value="[% searchfield %]" /> |
135 |
[% UNLESS independant_branch %] |
136 |
[% UNLESS independant_branch %] |
Lines 143-152
$(document).ready(function() {
Link Here
|
143 |
</select> |
144 |
</select> |
144 |
</p> |
145 |
</p> |
145 |
[% END %] |
146 |
[% END %] |
146 |
<p> |
147 |
<div id="toolbar"> |
147 |
<input type="submit" id="newnotice" value="New Notice" /> |
148 |
<input type="submit" id="newnotice" value="New Notice" /> |
148 |
<input type="hidden" id="op" name="op" /> |
149 |
<input type="hidden" id="op" name="op" /> |
149 |
</p> |
150 |
</div> |
150 |
</form> |
151 |
</form> |
151 |
|
152 |
|
152 |
[% IF ( search ) %] |
153 |
[% IF ( search ) %] |
Lines 156-162
$(document).ready(function() {
Link Here
|
156 |
[% select_for_copy = BLOCK %] |
157 |
[% select_for_copy = BLOCK %] |
157 |
<select name="branchcode"> |
158 |
<select name="branchcode"> |
158 |
[% FOREACH branchloo IN branchloop %] |
159 |
[% FOREACH branchloo IN branchloop %] |
159 |
<option value="[% branchloo.value %]">[% branchloo.branchname %]</option> |
160 |
<option value="[% branchloo.value %]">Copy to [% branchloo.branchname %]</option> |
160 |
[% END %] |
161 |
[% END %] |
161 |
</select> |
162 |
</select> |
162 |
[% END %] |
163 |
[% END %] |
Lines 167-173
$(document).ready(function() {
Link Here
|
167 |
<th>Module</th> |
168 |
<th>Module</th> |
168 |
<th>Code</th> |
169 |
<th>Code</th> |
169 |
<th>Name</th> |
170 |
<th>Name</th> |
170 |
<th> </th> |
171 |
<th>Copy notice</th> |
171 |
<th> </th> |
172 |
<th> </th> |
172 |
<th> </th> |
173 |
<th> </th> |
173 |
</tr></thead> |
174 |
</tr></thead> |
Lines 184-194
$(document).ready(function() {
Link Here
|
184 |
<td>[% lette.code %]</td> |
185 |
<td>[% lette.code %]</td> |
185 |
<td>[% lette.name %]</td> |
186 |
<td>[% lette.name %]</td> |
186 |
<td> |
187 |
<td> |
187 |
[% IF can_edit %] |
|
|
188 |
<a href="/cgi-bin/koha/tools/letter.pl?op=add_form&branchcode=[% lette.branchcode %]&module=[% lette.module %]&code=[% lette.code %]">Edit</a> |
189 |
[% END %] |
190 |
</td> |
191 |
<td> |
192 |
[% IF !independant_branch || !lette.branchcode %] |
188 |
[% IF !independant_branch || !lette.branchcode %] |
193 |
<form method="post" action="/cgi-bin/koha/tools/letter.pl"> |
189 |
<form method="post" action="/cgi-bin/koha/tools/letter.pl"> |
194 |
<input type="hidden" name="op" value="copy" /> |
190 |
<input type="hidden" name="op" value="copy" /> |
Lines 203-208
$(document).ready(function() {
Link Here
|
203 |
<input type="submit" value="Copy" /> |
199 |
<input type="submit" value="Copy" /> |
204 |
</form> |
200 |
</form> |
205 |
[% END %] |
201 |
[% END %] |
|
|
202 |
</td> |
203 |
<td> |
204 |
[% IF can_edit %] |
205 |
<a href="/cgi-bin/koha/tools/letter.pl?op=add_form&branchcode=[% lette.branchcode %]&module=[% lette.module %]&code=[% lette.code %]">Edit</a> |
206 |
[% END %] |
206 |
</td> |
207 |
</td> |
207 |
<td> |
208 |
<td> |
208 |
[% IF !lette.protected && can_edit %] |
209 |
[% IF !lette.protected && can_edit %] |
Lines 217-223
$(document).ready(function() {
Link Here
|
217 |
|
218 |
|
218 |
|
219 |
|
219 |
[% IF ( add_form ) %] |
220 |
[% IF ( add_form ) %] |
220 |
|
221 |
<h1>[% IF ( modify ) %]Modify notice[% ELSE %]Add notice[% END %]</h1> |
221 |
<form action="?" name="Aform" method="post"> |
222 |
<form action="?" name="Aform" method="post"> |
222 |
<input type="hidden" name="op" id="op" value="add_validate" /> |
223 |
<input type="hidden" name="op" id="op" value="add_validate" /> |
223 |
<input type="hidden" name="checked" value="0" /> |
224 |
<input type="hidden" name="checked" value="0" /> |
Lines 227-233
$(document).ready(function() {
Link Here
|
227 |
<input type="hidden" name="add" value="1" /> |
228 |
<input type="hidden" name="add" value="1" /> |
228 |
[% END %] |
229 |
[% END %] |
229 |
<fieldset class="rows"> |
230 |
<fieldset class="rows"> |
230 |
<legend>[% IF ( modify ) %]Modify notice[% ELSE %]Add notice[% END %]</legend> |
|
|
231 |
<input type="hidden" name="oldbranchcode" value="[% branchcode %]" /> |
231 |
<input type="hidden" name="oldbranchcode" value="[% branchcode %]" /> |
232 |
[% IF independant_branch %] |
232 |
[% IF independant_branch %] |
233 |
<input type="hidden" name="branchcode" value="[% independant_branch %]" /> |
233 |
<input type="hidden" name="branchcode" value="[% independant_branch %]" /> |
234 |
- |
|
|