|
Lines 292-304
Patron attribute types › Administration › Koha
Link Here
|
| 292 |
[% IF attribute.class %] |
292 |
[% IF attribute.class %] |
| 293 |
<h4>[% attribute.lib | html %]</h4> |
293 |
<h4>[% attribute.lib | html %]</h4> |
| 294 |
[% END %] |
294 |
[% END %] |
| 295 |
<table class="patron_attributes_types"> |
295 |
<table class="patron_attributes_types" id="patron_attr[% attribute.class | html %]"> |
| 296 |
<thead> |
296 |
<thead> |
| 297 |
<tr> |
297 |
<tr> |
| 298 |
<th>Code</th> |
298 |
<th>Code</th> |
| 299 |
<th>Description</th> |
299 |
<th>Description</th> |
| 300 |
<th>Branches limitation</th> |
300 |
<th>Library limitation</th> |
| 301 |
<th class="noExport">Actions</th> |
301 |
<th>Authorized value category</th> |
|
|
302 |
<th>Mandatory</th> |
| 303 |
<th class="NoSort noExport">Actions</th> |
| 302 |
</tr> |
304 |
</tr> |
| 303 |
</thead> |
305 |
</thead> |
| 304 |
<tbody> |
306 |
<tbody> |
|
Lines 315-329
Patron attribute types › Administration › Koha
Link Here
|
| 315 |
[% END %] |
317 |
[% END %] |
| 316 |
<span title="[% branches_str | html %]"> |
318 |
<span title="[% branches_str | html %]"> |
| 317 |
[% IF libraries.count > 1 %] |
319 |
[% IF libraries.count > 1 %] |
| 318 |
[% libraries.count | html %] branches limitations |
320 |
[% libraries.count | html %] library limitations |
| 319 |
[% ELSE %] |
321 |
[% ELSE %] |
| 320 |
[% libraries.count | html %] branch limitation |
322 |
[% libraries.count | html %] library limitation |
| 321 |
[% END %] |
323 |
[% END %] |
| 322 |
</span> |
324 |
</span> |
| 323 |
[% ELSE %] |
325 |
[% ELSE %] |
| 324 |
No limitation |
326 |
No limitation |
| 325 |
[% END %] |
327 |
[% END %] |
| 326 |
</td> |
328 |
</td> |
|
|
329 |
<td> |
| 330 |
[% IF ( CAN_user_parameters_manage_auth_values ) %] |
| 331 |
<a href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=[% item.authorised_value_category | uri %]">[% item.authorised_value_category | html %]</a></td> |
| 332 |
[% ELSE %] |
| 333 |
[% item.authorised_value_category | html %] |
| 334 |
[% END %] |
| 335 |
<td> |
| 336 |
[% IF ( item.mandatory ) -%] |
| 337 |
Yes |
| 338 |
[% ELSE -%] |
| 339 |
No |
| 340 |
[% END %] |
| 341 |
</td> |
| 327 |
<td class="actions"> |
342 |
<td class="actions"> |
| 328 |
<a class="btn btn-default btn-xs" href="[% script_name | url %]?op=edit_attribute_type&code=[% item.code | uri %]"><i class="fa fa-pencil"></i> Edit</a> |
343 |
<a class="btn btn-default btn-xs" href="[% script_name | url %]?op=edit_attribute_type&code=[% item.code | uri %]"><i class="fa fa-pencil"></i> Edit</a> |
| 329 |
<a class="btn btn-default btn-xs" href="[% script_name | url %]?op=delete_attribute_type&code=[% item.code | uri %]"><i class="fa fa-trash"></i> Delete</a> |
344 |
<a class="btn btn-default btn-xs" href="[% script_name | url %]?op=delete_attribute_type&code=[% item.code | uri %]"><i class="fa fa-trash"></i> Delete</a> |
|
Lines 353-358
Patron attribute types › Administration › Koha
Link Here
|
| 353 |
|
368 |
|
| 354 |
[% MACRO jsinclude BLOCK %] |
369 |
[% MACRO jsinclude BLOCK %] |
| 355 |
[% Asset.js("js/admin-menu.js") | $raw %] |
370 |
[% Asset.js("js/admin-menu.js") | $raw %] |
|
|
371 |
[% INCLUDE 'datatables.inc' %] |
| 372 |
[% INCLUDE 'columns_settings.inc' %] |
| 356 |
<script> |
373 |
<script> |
| 357 |
$(document).ready(function() { |
374 |
$(document).ready(function() { |
| 358 |
if ( $("#branches option:selected").length < 1 ) { |
375 |
if ( $("#branches option:selected").length < 1 ) { |
|
Lines 366-371
Patron attribute types › Administration › Koha
Link Here
|
| 366 |
$("#opac_editable").attr('disabled', true).parent().attr('aria-disabled', 'true'); |
383 |
$("#opac_editable").attr('disabled', true).parent().attr('aria-disabled', 'true'); |
| 367 |
} |
384 |
} |
| 368 |
} ).change(); |
385 |
} ).change(); |
|
|
386 |
|
| 387 |
$(".patron_attributes_types").each(function(){ |
| 388 |
var tableid = $(this).attr("id"); |
| 389 |
KohaTable( tableid, { |
| 390 |
"bPaginate": false, |
| 391 |
'autoWidth': false, |
| 392 |
}, null ); |
| 393 |
}); |
| 369 |
}); |
394 |
}); |
| 370 |
</script> |
395 |
</script> |
| 371 |
[% END %] |
396 |
[% END %] |
| 372 |
- |
|
|