|
Lines 1-3
Link Here
|
|
|
1 |
[% USE KohaDates %] |
| 2 |
[% USE ColumnsSettings %] |
| 1 |
[% INCLUDE 'doc-head-open.inc' %] |
3 |
[% INCLUDE 'doc-head-open.inc' %] |
| 2 |
<title>Koha › Administration › Currencies & Exchange rates › |
4 |
<title>Koha › Administration › Currencies & Exchange rates › |
| 3 |
[% IF ( add_form ) %][% IF ( searchfield ) %]Modify currency '[% searchfield %]'[% ELSE %]New currency[% END %][% END %] |
5 |
[% IF ( add_form ) %][% IF ( searchfield ) %]Modify currency '[% searchfield %]'[% ELSE %]New currency[% END %][% END %] |
|
Lines 5-10
Link Here
|
| 5 |
[% IF ( delete_confirmed ) %]Currency deleted[% END %] |
7 |
[% IF ( delete_confirmed ) %]Currency deleted[% END %] |
| 6 |
[% IF ( else ) %]Currencies[% END %]</title> |
8 |
[% IF ( else ) %]Currencies[% END %]</title> |
| 7 |
[% INCLUDE 'doc-head-close.inc' %] |
9 |
[% INCLUDE 'doc-head-close.inc' %] |
|
|
10 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
| 11 |
[% INCLUDE 'datatables.inc' %] |
| 12 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.colvis.css" /> |
| 13 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.colvis.js"></script> |
| 14 |
[% INCLUDE 'columns_settings.inc' %] |
| 8 |
<script type="text/javascript"> |
15 |
<script type="text/javascript"> |
| 9 |
//<![CDATA[ |
16 |
//<![CDATA[ |
| 10 |
|
17 |
|
|
Lines 20-25
Link Here
|
| 20 |
} |
27 |
} |
| 21 |
|
28 |
|
| 22 |
$(document).ready(function() { |
29 |
$(document).ready(function() { |
|
|
30 |
columns_settings = [% ColumnsSettings.GetColumns( 'admin', 'currency', 'currencies-table', 'json' ) %] |
| 31 |
var issuest = KohaTable("#currencies-table", { |
| 32 |
"sDom": 'C<"clearfix">t', |
| 33 |
"aaSorting": [], |
| 34 |
"aoColumnDefs": [ |
| 35 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
| 36 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] } |
| 37 |
], |
| 38 |
"bPaginate": false, |
| 39 |
}, columns_settings); |
| 40 |
|
| 23 |
// prevents users to check active with a currency != 1 |
41 |
// prevents users to check active with a currency != 1 |
| 24 |
$("#rate").keyup(function() { |
42 |
$("#rate").keyup(function() { |
| 25 |
check_currency( $(this).val() ); |
43 |
check_currency( $(this).val() ); |
|
Lines 158-189
Link Here
|
| 158 |
You searched for [% searchfield %]</span> |
176 |
You searched for [% searchfield %]</span> |
| 159 |
[% END %] |
177 |
[% END %] |
| 160 |
|
178 |
|
| 161 |
<table> |
179 |
<table id='currencies-table'> |
|
|
180 |
<thead> |
| 162 |
<tr> |
181 |
<tr> |
| 163 |
<th>Currency</th> |
182 |
<th>Currency</th> |
| 164 |
<th>Rate</th> |
183 |
<th>Rate</th> |
| 165 |
<th>Symbol</th> |
184 |
<th>Symbol</th> |
| 166 |
<th>ISO code</th> |
185 |
<th>ISO code</th> |
| 167 |
<th>Last updated</th> |
186 |
<th class="title-string">Last updated</th> |
| 168 |
<th>Active</th> |
187 |
<th>Active</th> |
| 169 |
<th colspan="2">Actions </th> |
188 |
<th>Actions</th> |
| 170 |
</tr> |
189 |
</tr> |
|
|
190 |
</thead> |
| 191 |
<tbody> |
| 171 |
[% FOREACH loo IN loop %] |
192 |
[% FOREACH loo IN loop %] |
| 172 |
[% UNLESS ( loop.odd ) %] |
193 |
<tr> |
| 173 |
<tr class="highlight"> |
|
|
| 174 |
[% ELSE %] |
| 175 |
<tr> |
| 176 |
[% END %] |
| 177 |
<td>[% loo.currency %]</td> |
194 |
<td>[% loo.currency %]</td> |
| 178 |
<td>[% loo.rate %]</td> |
195 |
<td>[% loo.rate %]</td> |
| 179 |
<td>[% loo.symbol |html %]</td> |
196 |
<td>[% loo.symbol |html %]</td> |
| 180 |
<td>[% loo.isocode |html %]</td> |
197 |
<td>[% loo.isocode |html %]</td> |
| 181 |
<td>[% loo.timestamp %]</td> |
198 |
<td><span title="[% loo.timestamp %]">[% loo.timestamp | $KohaDates %]</span></td> |
| 182 |
<td style="color:green;">[% IF ( loo.active ) %]✓[% END %]</td> |
199 |
<td style="color:green;">[% IF ( loo.active ) %]✓[% END %]</td> |
| 183 |
<td><a href="[% loo.script_name %]?op=add_form&searchfield=[% loo.currency %]">Edit</a></td> |
200 |
<td> |
| 184 |
<td><a href="[% loo.script_name %]?op=delete_confirm&searchfield=[% loo.currency %]">Delete</a></td> |
201 |
<a href="[% loo.script_name %]?op=add_form&searchfield=[% loo.currency %]">Edit</a> |
| 185 |
</tr> |
202 |
| |
|
|
203 |
<a href="[% loo.script_name %]?op=delete_confirm&searchfield=[% loo.currency %]">Delete</a> |
| 204 |
</td> |
| 205 |
</tr> |
| 186 |
[% END %] |
206 |
[% END %] |
|
|
207 |
</tbody> |
| 187 |
</table> |
208 |
</table> |
| 188 |
<br /> |
209 |
<br /> |
| 189 |
|
210 |
|
| 190 |
- |
|
|