Lines 38-55
function form_submit (f) {
Link Here
|
38 |
$(f).find('input:disabled').removeAttr("disabled"); |
38 |
$(f).find('input:disabled').removeAttr("disabled"); |
39 |
return true; |
39 |
return true; |
40 |
} |
40 |
} |
41 |
|
|
|
42 |
$(document).ready(function() { |
43 |
show_transport_cost_matrix([% IF UseTransportCostMatrix %]true[% ELSE %]false[% END %]); |
44 |
}); |
45 |
//]]> |
41 |
//]]> |
46 |
</script> |
42 |
</script> |
47 |
<style type="text/css"> |
43 |
<style type="text/css"> |
48 |
.disabled-transfer { |
44 |
.disabled-transfer { |
49 |
background-color: red; |
45 |
background-color: #FF8888; |
50 |
} |
|
|
51 |
.errors { |
52 |
color: red; |
53 |
} |
46 |
} |
54 |
</style> |
47 |
</style> |
55 |
|
48 |
|
Lines 69-98
$(document).ready(function() {
Link Here
|
69 |
Defining transport costs between libraries |
62 |
Defining transport costs between libraries |
70 |
</h1> |
63 |
</h1> |
71 |
[% IF ( WARNING_transport_cost_matrix_off ) %] |
64 |
[% IF ( WARNING_transport_cost_matrix_off ) %] |
72 |
<div class="dialog message">Because the "UseTransportCostMatrix" system preference is currently not enabled, Transport Cost Matrix is not being used. Go <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=UseTransportCostMatrix">here</a> if you wish to enable this feature.</div> |
65 |
<div class="dialog message">Because the "UseTransportCostMatrix" system preference is currently not enabled, the transport cost matrix is not being used. Go <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=UseTransportCostMatrix">here</a> if you wish to enable this feature.</div> |
73 |
[% END %] |
66 |
[% END %] |
74 |
|
67 |
|
75 |
<div class="container"> |
68 |
[% IF ( errors ) %]<div class="dialog alert"> |
76 |
<form method="post" action="?" onSubmit="return form_submit(this);"> |
69 |
<h4>There were problems with your submission</h4> |
|
|
70 |
<ul> |
71 |
[% FOR e IN errors %] |
72 |
<li>[% e %]</li> |
73 |
[% END %] |
74 |
</ul> |
75 |
</div>[% END %] |
76 |
|
77 |
<form method="post" action="?" onsubmit="return form_submit(this);"> |
77 |
<input type="hidden" name="op" value="set-cost-matrix" /> |
78 |
<input type="hidden" name="op" value="set-cost-matrix" /> |
78 |
<div id="transport-cost-matrix"> |
79 |
<fieldset id="transport-cost-matrix"> |
79 |
<div class="help"> |
80 |
<div class="help"> |
80 |
<p>Costs are decimal values 0 to some arbitrarymax value (1 or 100), 0 being minimum (no) cost.</p> |
81 |
<p>Costs are decimal values 0 to some arbitrarymax value (1 or 100), 0 being minimum (no) cost.</p> |
81 |
<p>Red cells signify no transfer allowed</p> |
82 |
<p>Red cells signify no transfer allowed</p> |
82 |
<p>Click on the cell to edit</p> |
83 |
<p>Click on the cell to edit</p> |
83 |
</div> |
84 |
</div> |
84 |
<ul class="errors" %]> |
85 |
|
85 |
[% FOR e IN errors %] |
|
|
86 |
<li>[% e %]</li> |
87 |
[% END %] |
88 |
</ul> |
89 |
<table> |
86 |
<table> |
90 |
<tr> |
87 |
<tr> |
91 |
<th>From \ To</th> |
88 |
<th>From \ To</th> |
92 |
[% FOR b IN branchloop %] |
89 |
[% FOR b IN branchloop %] |
93 |
<th>[% b.name %]</th> |
90 |
<th>[% b.name %]</th> |
94 |
[% END %] |
91 |
[% END %] |
95 |
<tr> |
92 |
</tr> |
96 |
[% FOR bf IN branchfromloop %] |
93 |
[% FOR bf IN branchfromloop %] |
97 |
<tr> |
94 |
<tr> |
98 |
<th>[% bf.name %]</th> |
95 |
<th>[% bf.name %]</th> |
Lines 118-129
$(document).ready(function() {
Link Here
|
118 |
</tr> |
115 |
</tr> |
119 |
[% END %] |
116 |
[% END %] |
120 |
</table> |
117 |
</table> |
121 |
</div> |
118 |
</fieldset> |
122 |
<input type="submit" value="Save" class="submit" /> |
119 |
<fieldset class="action"> |
|
|
120 |
<input type="submit" value="Save" class="submit" /> <a href="/cgi-bin/koha/admin/transport-cost-matrix.pl" class="cancel">Cancel</a> |
121 |
</fieldset> |
123 |
</form> |
122 |
</form> |
124 |
</div> |
123 |
</div> |
125 |
</div> |
124 |
</div> |
126 |
</div> |
|
|
127 |
<div class="yui-b"> |
125 |
<div class="yui-b"> |
128 |
[% INCLUDE 'admin-menu.inc' %] |
126 |
[% INCLUDE 'admin-menu.inc' %] |
129 |
</div> |
127 |
</div> |
130 |
- |
|
|