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 21-28
function reorder_item(sid,rid,rank){
Link Here
|
21 |
var myurl = "routing.pl?subscriptionid="+[% subscriptionid %]+"&borrowernumber="+borrowernumber+"&op=add"; |
30 |
var myurl = "routing.pl?subscriptionid="+[% subscriptionid %]+"&borrowernumber="+borrowernumber+"&op=add"; |
22 |
window.location.href = myurl; |
31 |
window.location.href = myurl; |
23 |
} |
32 |
} |
24 |
|
|
|
25 |
//--> |
26 |
</script> |
33 |
</script> |
27 |
</head> |
34 |
</head> |
28 |
<body id="ser_routing" class="ser"> |
35 |
<body id="ser_routing" class="ser"> |
Lines 68-74
function reorder_item(sid,rid,rank){
Link Here
|
68 |
[% FOREACH member IN m_loop %] |
75 |
[% FOREACH member IN m_loop %] |
69 |
<tr><td>[% member.name %]</td> |
76 |
<tr><td>[% member.name %]</td> |
70 |
<td> |
77 |
<td> |
71 |
<select name="itemrank" onchange="reorder_item([%- subscriptionid -%], [%- member.routingid -%], this.value)"> |
78 |
<select name="itemrank" class="itemrank" data-subscriptionid="[% subscriptionid %]" data-routingid="[% member.routingid %]"> |
72 |
[% rankings = [1 .. m_loop.size] %] |
79 |
[% rankings = [1 .. m_loop.size] %] |
73 |
[% FOREACH r IN rankings %] |
80 |
[% FOREACH r IN rankings %] |
74 |
[% IF r == member.ranking %] |
81 |
[% IF r == member.ranking %] |
Lines 79-94
function reorder_item(sid,rid,rank){
Link Here
|
79 |
[% END %] |
86 |
[% END %] |
80 |
</select> |
87 |
</select> |
81 |
</td> |
88 |
</td> |
82 |
<td><a href="/cgi-bin/koha/serials/routing.pl?routingid=[% member.routingid %]&subscriptionid=[% subscriptionid %]&op=delete">Delete</a></td> |
89 |
<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> |
90 |
</tr> |
84 |
[% END %] |
91 |
[% END %] |
85 |
</table> |
92 |
</table> |
86 |
[% END %] |
93 |
[% END %] |
87 |
|
94 |
|
88 |
<p style="margin-left:10em;"> |
95 |
<p style="margin-left:10em;"> |
89 |
<input type="button" onclick="userPopup()" value="Add recipients" /> |
96 |
<a href="#" id="add_recipients"><i class="fa fa-plus"></i> Add recipients</a> |
90 |
[% IF memberloop %] |
97 |
[% IF memberloop %] |
91 |
<a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscriptionid %]&op=delete" class="button">Delete all</a> |
98 |
<a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscriptionid %]&op=delete"><i class="fa fa-trash"></i> Delete all</a> |
92 |
[% END %] |
99 |
[% END %] |
93 |
</p> |
100 |
</p> |
94 |
</li> |
101 |
</li> |
95 |
- |
|
|