|
Lines 2-9
Link Here
|
| 2 |
<title>Koha › Serials › [% title |html %] › [% IF ( op ) %]Create Routing List[% ELSE %]Edit routing list[% END %]</title> |
2 |
<title>Koha › Serials › [% title |html %] › [% IF ( op ) %]Create Routing List[% ELSE %]Edit routing list[% END %]</title> |
| 3 |
[% INCLUDE 'doc-head-close.inc' %] |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
| 4 |
<script type="text/javascript"> |
4 |
<script type="text/javascript"> |
| 5 |
<!-- |
5 |
$(document).ready(function(){ |
| 6 |
|
6 |
$("#add_recipients").on("click",function(e){ |
|
|
7 |
e.preventDefault(); |
| 8 |
userPopup(); |
| 9 |
}); |
| 10 |
$(".itemrank").on("change",function(){ |
| 11 |
var subscriptionid = $(this).data("subscriptionid"); |
| 12 |
var routingid = $(this).data("routingid"); |
| 13 |
reorder_item( subscriptionid, routingid, $(this).val()); |
| 14 |
}); |
| 15 |
}); |
| 7 |
function reorder_item(sid,rid,rank){ |
16 |
function reorder_item(sid,rid,rank){ |
| 8 |
var mylocation = 'reorder_members.pl?subscriptionid='+sid+'&routingid='+rid+'&rank='+rank; |
17 |
var mylocation = 'reorder_members.pl?subscriptionid='+sid+'&routingid='+rid+'&rank='+rank; |
| 9 |
window.location.href=mylocation; |
18 |
window.location.href=mylocation; |
|
Lines 68-74
function reorder_item(sid,rid,rank){
Link Here
|
| 68 |
[% FOREACH member IN m_loop %] |
77 |
[% FOREACH member IN m_loop %] |
| 69 |
<tr><td>[% member.name %]</td> |
78 |
<tr><td>[% member.name %]</td> |
| 70 |
<td> |
79 |
<td> |
| 71 |
<select name="itemrank" onchange="reorder_item([%- subscriptionid -%], [%- member.routingid -%], this.value)"> |
80 |
<select name="itemrank" class="itemrank" data-subscriptionid="[% subscriptionid %]" data-routingid="[% member.routingid %]"> |
| 72 |
[% rankings = [1 .. m_loop.size] %] |
81 |
[% rankings = [1 .. m_loop.size] %] |
| 73 |
[% FOREACH r IN rankings %] |
82 |
[% FOREACH r IN rankings %] |
| 74 |
[% IF r == member.ranking %] |
83 |
[% IF r == member.ranking %] |
|
Lines 79-94
function reorder_item(sid,rid,rank){
Link Here
|
| 79 |
[% END %] |
88 |
[% END %] |
| 80 |
</select> |
89 |
</select> |
| 81 |
</td> |
90 |
</td> |
| 82 |
<td><a href="/cgi-bin/koha/serials/routing.pl?routingid=[% member.routingid %]&subscriptionid=[% subscriptionid %]&op=delete">Delete</a></td> |
91 |
<td><a class="btn btn-mini" href="/cgi-bin/koha/serials/routing.pl?routingid=[% member.routingid %]&subscriptionid=[% subscriptionid %]&op=delete"><i class="fa fa-trash"></i> Delete</a></td> |
| 83 |
</tr> |
92 |
</tr> |
| 84 |
[% END %] |
93 |
[% END %] |
| 85 |
</table> |
94 |
</table> |
| 86 |
[% END %] |
95 |
[% END %] |
| 87 |
|
96 |
|
| 88 |
<p style="margin-left:10em;"> |
97 |
<p style="margin-left:10em;"> |
| 89 |
<input type="button" onclick="userPopup()" value="Add recipients" /> |
98 |
<a href="#" id="add_recipients"><i class="fa fa-plus"></i> Add recipients</a> |
| 90 |
[% IF memberloop %] |
99 |
[% IF memberloop %] |
| 91 |
<a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscriptionid %]&op=delete" class="button">Delete all</a> |
100 |
<a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscriptionid %]&op=delete"><i class="fa fa-trash"></i> Delete all</a> |
| 92 |
[% END %] |
101 |
[% END %] |
| 93 |
</p> |
102 |
</p> |
| 94 |
</li> |
103 |
</li> |
| 95 |
- |
|
|