Lines 44-57
Link Here
|
44 |
<h1>Edit routing list for <em>[% title | html %]</em></h1> |
44 |
<h1>Edit routing list for <em>[% title | html %]</em></h1> |
45 |
[% END %] |
45 |
[% END %] |
46 |
|
46 |
|
47 |
<form method="post" action="routing.pl"> |
|
|
48 |
[% INCLUDE 'csrf-token.inc' %] |
49 |
<input type="hidden" name="op" value="cud-save" /> |
50 |
<input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" /> |
51 |
<fieldset class="rows"> |
47 |
<fieldset class="rows"> |
52 |
<ol> |
48 |
<ol> |
53 |
<li><label for="date_selected">Issue: </label> |
49 |
<li><label for="date_selected">Issue: </label> |
54 |
<select name="date_selected" id="date_selected"> |
50 |
<select name="date_selected_top" id="date_selected_top" class="date_selected_top"> |
55 |
[% FOREACH date IN dates %] |
51 |
[% FOREACH date IN dates %] |
56 |
[% IF ( date.selected ) %] |
52 |
[% IF ( date.selected ) %] |
57 |
<option value="[% date.serialseq | html %] ([% date.publisheddate | html %])" selected="selected">[% date.serialseq | html %] ([% date.publisheddate | $KohaDates %])</option> |
53 |
<option value="[% date.serialseq | html %] ([% date.publisheddate | html %])" selected="selected">[% date.serialseq | html %] ([% date.publisheddate | $KohaDates %])</option> |
Lines 85-107
Link Here
|
85 |
[% END %] |
81 |
[% END %] |
86 |
</select> |
82 |
</select> |
87 |
</td> |
83 |
</td> |
88 |
<td><a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/routing.pl?routingid=[% member.routingid | html %]&subscriptionid=[% subscriptionid | html %]&op=delete"><i class="fa fa-trash-can"></i> Delete</a></td> |
84 |
<td> |
|
|
85 |
<form method="post" action="routing.pl"> |
86 |
[% INCLUDE 'csrf-token.inc' %] |
87 |
<input type="hidden" name="op" value="cud-delete" /> |
88 |
<input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" /> |
89 |
<input type="hidden" name="routingid" value="[% member.routingid | html %]" /> |
90 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-trash-can"></i> Delete</button> |
91 |
</form> |
92 |
</td> |
89 |
</tr> |
93 |
</tr> |
90 |
[% END %] |
94 |
[% END %] |
91 |
</table> |
95 |
</table> |
92 |
[% END %] |
96 |
[% END %] |
93 |
<input type="hidden" id="new_recipients" name="new_recipients" value=""> |
97 |
<input type="hidden" id="new_recipients" name="new_recipients" value=""> |
94 |
|
98 |
|
95 |
<p style="margin-left:10em;"> |
99 |
<form method="post" action="routing.pl"> |
96 |
<a href="#patron_search_modal" id="add_recipients" data-toggle="modal"><i class="fa fa-plus"></i> Add recipients</a> |
100 |
[% INCLUDE 'csrf-token.inc' %] |
97 |
[% IF memberloop %] |
101 |
<input type="hidden" name="op" value="cud-delete" /> |
98 |
<a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscriptionid | uri %]&op=delete"><i class="fa fa-trash-can"></i> Delete all</a> |
102 |
<input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" /> |
99 |
[% END %] |
103 |
<p style="margin-left:10em;"> |
100 |
</p> |
104 |
<a href="#patron_search_modal" id="add_recipients" data-toggle="modal"><i class="fa fa-plus"></i> Add recipients</a> |
|
|
105 |
[% IF memberloop %] |
106 |
<button type="submit" class="btn"><i class="fa fa-trash-can"></i> Delete all</button> |
107 |
[% END %] |
108 |
</p> |
109 |
</form> |
101 |
</li> |
110 |
</li> |
102 |
|
111 |
|
103 |
<li><label for="notes">Notes:</label><textarea name="notes" id="notes" rows="3" cols="50">[% routingnotes | html %]</textarea></li> |
112 |
<form method="post" action="routing.pl"> |
104 |
</ol> |
113 |
[% INCLUDE 'csrf-token.inc' %] |
|
|
114 |
<input type="hidden" name="op" value="cud-save" /> |
115 |
<input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" /> |
116 |
<input type="hidden" id="date_selected" name="date_selected" value="" /> |
117 |
|
118 |
<li><label for="notes">Notes:</label><textarea name="notes" id="notes" rows="3" cols="50">[% routingnotes | html %]</textarea></li> |
119 |
</ol> |
120 |
|
105 |
|
121 |
|
106 |
</fieldset> |
122 |
</fieldset> |
107 |
<fieldset class="action"><input type="submit" name="submit" class="btn btn-primary" value="Save" /></fieldset> |
123 |
<fieldset class="action"><input type="submit" name="submit" class="btn btn-primary" value="Save" /></fieldset> |
Lines 124-129
Link Here
|
124 |
var routingid = $(this).data("routingid"); |
140 |
var routingid = $(this).data("routingid"); |
125 |
reorder_item( subscriptionid, routingid, $(this).val()); |
141 |
reorder_item( subscriptionid, routingid, $(this).val()); |
126 |
}); |
142 |
}); |
|
|
143 |
$("#date_selected").val( $("#date_selected_top").find("option:selected").val() ); |
144 |
$(".date_selected_top").on("change",function(){ |
145 |
$("#date_selected").val( $(this).val() ); |
146 |
}); |
127 |
}); |
147 |
}); |
128 |
function reorder_item(sid,rid,rank){ |
148 |
function reorder_item(sid,rid,rank){ |
129 |
var mylocation = 'reorder_members.pl?subscriptionid='+sid+'&routingid='+rid+'&rank='+rank; |
149 |
var mylocation = 'reorder_members.pl?subscriptionid='+sid+'&routingid='+rid+'&rank='+rank; |